| Which version of IIS you are using?
For IIS6 follow the procedure below
1. In IIS Manager, expand the local computer node (which might be indicated by your computer name), expand Web Sites, and then click Default Web Site.
2. On the Action menu, click New, and then click Virtual Directory.
3. In the Virtual Directory Creation Wizard, click Next.
4. In the Alias box, type the name that you want for your new application, and then click Next.
5. In the Path box, type the physical directory that you created to prepare for this walkthrough, C:\WebApp, and then click Next.
6. Alternatively, you can click the Browse button to browse to your directory.
7. On the Access Permissions page, make sure that the Read and Run scripts check boxes are selected, and then click Next.
8. Click Finish.
One more thing you can do it in the IIS setting instead of localhost, you can give the IP address of the machine which is hosting the website. | |