dprundle
asked on
named and httpd.conf forward a subdomain to another directory on the server
I have the domain warcraftmmo.com and i'd like to forward gmail.warcraftmmo.com to another directory (http://www.warcraftmmo.com/gmail/).
This is my httpd.conf:
<VirtualHost 216.40.235.171>
ServerAdmin webmaster@warcraftmmo.wvut alk.com
DocumentRoot /home/dprundle/public_html /warcraftm mo
BytesLog domlogs/warcraftmmo.wvutal k.com-byte s_log
ServerName warcraftmmo.com
ServerAlias www.warcraftmmo.com
User dprundle
Group dprundle
CustomLog /usr/local/apache/domlogs/ warcraftmm o.wvutalk. com combined
ScriptAlias /cgi-bin/ /home/dprundle/public_html /warcraftm mo/cgi-bin /
</VirtualHost>
<VirtualHost 216.40.235.171>
ServerName gmail.warcraftmmo.com
DocumentRoot /home/dprundle/public_html /warcraftm mo/gmail
</VirtualHost>
This is my named:
mail IN CNAME warcraftmmo.com.
www IN CNAME warcraftmmo.com.
gmail 14400 IN A 216.40.235.171
www.gmail 14400 IN A 216.40.236.171
My problem is that gmail.warcraftmmo.com just forwards to www.warcraftmmo.com instead of www.warcraftmmo.com/gmail/
any help is appreciated.
This is my httpd.conf:
<VirtualHost 216.40.235.171>
ServerAdmin webmaster@warcraftmmo.wvut
DocumentRoot /home/dprundle/public_html
BytesLog domlogs/warcraftmmo.wvutal
ServerName warcraftmmo.com
ServerAlias www.warcraftmmo.com
User dprundle
Group dprundle
CustomLog /usr/local/apache/domlogs/
ScriptAlias /cgi-bin/ /home/dprundle/public_html
</VirtualHost>
<VirtualHost 216.40.235.171>
ServerName gmail.warcraftmmo.com
DocumentRoot /home/dprundle/public_html
</VirtualHost>
This is my named:
mail IN CNAME warcraftmmo.com.
www IN CNAME warcraftmmo.com.
gmail 14400 IN A 216.40.235.171
www.gmail 14400 IN A 216.40.236.171
My problem is that gmail.warcraftmmo.com just forwards to www.warcraftmmo.com instead of www.warcraftmmo.com/gmail/
any help is appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ouch, yup i totally missed that. you need to configure it for named based virutal hosts rather than ip based virtualhosts, or just give the box a new ip and make each of those virtualhosts unique ip's
or just put an index file in the root of the old domains site directory and put a meta redirect for it to go to the new site...
this will outline your options in detail.
http://www.webweaver.nu/html-tips/web-redirection.shtml