The purpose of this article to help offer guidance on modifying the web root for an existing intranet site. Making our suggested changes will allow end-users to type 'http://[domain name]' instead of 'http://[domain name]/intranet' when looking to access the intranet site.
As well, please note that this article assumes that the reader has remote desktop access to the intranet web server.
The following steps will help you achieve the result described in the introduction above:
- Remote in to the intranet web server.
- Move the existing C:\Inetpub\wwwroot\WEB-INF\ directory into the C:\Inetpub\wwwroot\Intranet directory.
- If no web.config file exists under C:\inepub\wwwroot\Intranet, move the C:\Inetpub\wwwroot\web.config file in to the C:\Inetpub\wwwroot\Intranet\ directory.
If a web.config file exists under C:\inepub\wwwroot\Intranet, edit this file and add any handler mapping entries in the C:\Inetpub\wwwroot\web.config file.
- Restart Railo: Restart Railo Server service (if applicable) or terminate the java.exe process on the web server using Task Manager (this will take the site down).
- Open IIS Manager, expand the nodes in the left pane, right-click the Default Web Site node, click Manage Web Site > Advanced Settings. Change the Physical Path value to C:\Inetpub\wwwroot\Intranet.
- Restart site within IIS.
- Visit the Railo admin site by opening your browser and visiting http:\\[insert_new_domain_name_here]\railo-context/admin/web.cfm
- Configure your Railo Mappings under 'Archives & Resources' within Railo Admin what should look similar to this - note that the Virtual for '/Intranet' is now set to '/' and the '/Intranet' mapping has been removed:
- Visit the intranet using the new URL by typing 'http://[insert_domain_name_here]'.
- Navigate to admin > Setup > click 'update locations' to finalize this change.
Should you hit any issues, please email email@example.com
with information and/or screenshots related to the issue that you are encountering.