I have installed Apache and in httpd.conf have set the DocumentRoot to "c:\testweb" which is available via "http://localhost
".
How can I now enable it so that "http://localhost/web2
" goes to "c:\web2"?
I have installed Apache and in httpd.conf have set the DocumentRoot to "c:\testweb" which is available via "http://localhost
".
How can I now enable it so that "http://localhost/web2
" goes to "c:\web2"?
This works for me:
An example for a settings could be found at:
http://httpd.apache.org/docs/2.2/mod/mod_alias.html
http://www.nodans.com/index.cfm/2006/10/10/Apache-Directory-Aliases-and-Virtual-Directories
and in short you should add something like that to the httpd.conf:
All this assumes that you enabled mod_alias of apache.