简体   繁体   English

如何发布网站

[英]How to publish the Website

I have done a Web Application project in Visual Studio 2008, In Solution Explorer I click on publish Website . 我已经在Visual Studio 2008中完成了一个Web应用程序项目,在“解决方案资源管理器”中,单击“ 发布网站”

The published website is stored in the Location C:\\Users...\\Documents\\Visual Studio 2008\\Projects\\Online Registeration . 发布的网站存储在位置C:\\ Users ... \\ Documents \\ Visual Studio 2008 \\ Projects \\ Online Registration中

Now what should i do to access that application...? 现在我该怎么做才能访问该应用程序...?

I was totally confused, can i copy the Online Registeration project in to WWWROOT folder or anything else... 我完全感到困惑,我可以将在线注册项目复制到WWWROOT文件夹或其他任何文件中吗?

Could anybody tell me.... 谁能告诉我...

You need to host this website on a web server like IIS. 您需要在IIS之类的Web服务器上托管此网站。

Open IIS manager on your machine by typing inetmgr command in Run window 通过在“运行”窗口中键入inetmgr命令在计算机上打开IIS管理器

IIS 7 or above: Right click the server node on the left --> Add Web Site. IIS 7或更高版本:右键单击左侧的服务器节点->添加网站。 You need to set Physical path to where this site is published, probably inside wwwroot folder, because this folder has got all the permissions to run the website. 您需要将物理路径设置为该网站的发布位置,可能在wwwroot文件夹中,因为该文件夹具有运行该网站的所有权限。

IIS6: Server Node --> Web Sites --> New --> Website IIS6:服务器节点->网站->新建->网站

Set appropriate header in Host name and you'll be ready to access the site using this host header. 在主机名中设置适当的标头,您就可以使用该主机标头访问该网站。

There is an automatic way to publish whenever you build the site in visual studio 2008, follow this answer 每当您在Visual Studio 2008中构建网站时,都有一种自动发布的方法,请按照以下答案进行操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM