Setting DocumentRoot for an application
771881Feb 9 2011 — edited Feb 9 2011Hi All,
Kindly help as our prod move is getting hampered.
I have one application deployed in stage and prod servers. After some code changes we have to move the code again to prod.
My dilemma is that the URL to access the application is different on Stage and Prod and I need it to remain so after code move.
The URL on STAGE is https://servername/<application context>/faces/
The URL on Prod is https://servername/welcome.html
My question is how on Prod it is working without /<application context>/faces/
I figured that in httpd.conf inside apache/conf we can create something as follows
NameVirtualHost sn:80
<VirtualHost sn:80>
ServerName sn
DocumentRoot /<absolute path to the directory containing welcome.html>
Port 80
</VirtualHost>
but even changing this is not working for me in stage. Is there any other file involved that needs to be changed.
Thanks in Advance.