Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Setting up an alias for DocumentRoot


JohnKelly - 12:47 am on Jan 12, 2011 (gmt 0)


I have a site that has been moved from one server to another. The directory structure on the new server is different, and rather than change hundreds of files I would like to try to set up an alias for DocumentRoot.

The path contained in my files is:
/home/httpd/vhosts/domain.com/httpdocs/

The DocumentRoot in the vhost.conf on my server is:
DocumentRoot /srv/www/domain.com/public_html/

Is there a way to alias /home/httpd/vhosts/domain.com/httpdocs/ to /srv/www/domain.com/public_html/?

I have tried the Alias directive, but it didn't work, perhps I had the syntax wrong.


Thread source:: http://www.webmasterworld.com/apache/4252164.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com