热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在IIS7中使用myfakesite.com而不是localhost-usemyfakesite.cominsteadoflocalhostinIIS7

Ifollowedthissteps:我按照这个步骤:WhatIdidiseditthisfile:C:\Windows\System32\drivers\etc\ho

I followed this steps:

我按照这个步骤:

What I did is edit this file: C:\Windows\System32\drivers\etc\hosts

我所做的是编辑此文件:C:\ Windows \ System32 \ drivers \ etc \ hosts

I added a line: 127.0.0.1 myfakesite.com

我添加了一行:127.0.0.1 myfakesite.com

Then I went to the Facebook edit app page, specifically the "Web Site" setting and entered Site Url: http://myfakesite.com Domain: myfakesite.com

然后我去了Facebook编辑应用页面,特别是“网站”设置并进入了网站网址:http://myfakesite.com域名:myfakesite.com

Instead of running IIS Express, I had to run full IIS and enable myfakesite.com as one of the bindings. Here is how you do it: 1) Launch Internet Information Services Manager 2) Navigate to the "Default Web Site" 3) Right click on that node and choose "Edit Bindings" 4) In the dialog that opens click Add 5) Enter myfakesite.com in "Host Name" and click OK

我不得不运行IIS Express,而是运行完整的IIS并启用myfakesite.com作为其中一个绑定。以下是您的操作方法:1)启动Internet信息服务管理器2)导航到“默认网站”3)右键单击该节点并选择“编辑绑定”4)在打开的对话框中单击添加5)输入myfakesite .com在“主机名”中单击“确定”

编辑主机文件后,转到IIS管理器!在左侧面板中转到SITES,右键单击它,然后单击添加网站(如下图所示)http://up.vatandownload.com/images/1lchjhpzufkst5uljq.png

in new window fill all fields: http://up.vatandownload.com/images/hghvinst528tkww6svyf.png

在新窗口中填写所有字段:http://up.vatandownload.com/images/hghvinst528tkww6svyf.png

in picture I created new website test.hkh.com!
site name: a name just for your web site. it can be anything
physical Path: a folder on your hard disk
IP address: can be left with default
host name: the address you enter in address bar of your browser

在图片中我创建了新的网站test.hkh.com!站点名称:仅适用于您的网站的名称。它可以是任何物理路径:硬盘IP地址上的文件夹:可以保留默认主机名:您在浏览器地址栏中输入的地址

ok! now you have new site running!

好!现在你有新的网站运行!


Edit:If you want to add www.test.hkh.com to your server, there is no need to create new website! Just click on name of your site in left panel, then in right panel, click on Bindings, in this window click Add
in host name enter: www.test.hkh.com!
Click on Ok!

编辑:如果您想将www.test.hkh.com添加到您的服务器,则无需创建新网站!只需在左侧面板中单击您站点的名称,然后在右侧面板中单击Bindings,在此窗口中单击Add in host name,输入:www.test.hkh.com!点击确定!


推荐阅读
author-avatar
梦之舞的微薄极_922
这个家伙很懒,什么也没留下!
Tags | 热门标签
RankList | 热门文章
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有