We are excited to announce that the ASP.NET Forums are moving to the new Microsoft Q&A experience.
Learn more >
Web Hosting with IIS and ASP.NET (RETIRED)
Serving from Root
Re: Serving from Root
View Complete Thread
Re: Serving from Root
Jul 08, 2004 05:02 PM
There are a couple of different options you can take here. One is to have the administrator set up a separate IP address and DNS name for your website. Then build a new website with your virtualdirectory as it's root. This may not be an option for you depending on how/where your site is hosted. Another option is to use host headers. This involves setting up a new DNS record that points to the same IP address as www.website.com. This could be something like mysite.website.com or mysite.mydomain.com. Then have the server administrator set up a new website for your site, put in your new DNS record in the "Host Header" section of the config. Here is a paste from the documentation here: http://www.microsoft.com/resources/documentation/iis/6/all/proddocs/en-us/wsa_hmws_createmultsiteshh.mspx 1. In IIS Manager, expand the local computer, right-click the Web Sites directory, point to New, and then click Web Site. 2. Click Next. 3. In the Description box, type the name you have selected for the Web site, and then click Next. 4. In the Enter the IP address to use for this Web site box, click the IP address used by all sites on the server. 5. In the TCP port this Web site should use box, type the port number used by all sites on the server. 6. In the Host Header for this Web site (Default:None) box, type the host header name to identify the Web site. The host header name must containing the full name of the site, for example, www.microsoft.com. 7. If SSL encryption is not enabled on the server, the SSL port box does not appear. If SSL encryption is enabled on the server, type the SSL port number, and then click Next. 8. In the Path box, type or browse to the path of your Web site home directory. 9. To create a secured or private Web site, clear the Allow anonymous access to this Web site check box, and click Next. (Web sites are configured for anonymous access by default.) 10. In the Web Site Access Permissions box, set the permissions for the home directory. 11. Click Next, and then click Finish. Does this answer your question? Thanks
Technical Account Manager
Microsoft Communication Sector North America
This posting is provided "AS IS" with no warranties, and confers no rights. Script samples are subject to the terms at http://www.microsoft.com/info/cpyright.htm"