httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "juanca" <jua...@sat.com.py>
Subject Re: [users@httpd] URL Redirection
Date Thu, 17 Apr 2003 01:30:37 GMT
What you have to do is following:

<VirtualHost www.something.com:80>
    ServerAdmin webmaster@something.com
    DocumentRoot /var/www/something.com
    User something.com
    Group something.com
    ServerName www.something.com
    ErrorLog /var/log/apache/something.com
-error.log
    CustomLog /var/log/apache/something.com
-access.log common
</VirtualHost>

this is for something else

<VirtualHost www.somethingelse.com:80>
    ServerAdmin webmaster@www.somethingelse.com
    DocumentRoot /var/www/something.com<-----------------------------start doing changes
from here 
    User something.com
    Group something.com
    ServerName www.somethingelse.com
    ErrorLog /var/log/apache/www.somethingelse.com-error.log
    CustomLog /var/log/apache/www.somethingelse.com-.log common
</VirtualHost>
Now if you use Bind or DJBDNS you have to add the zones as well, make sure of this 


Good luck
  ----- Original Message ----- 
  From: Chad M. Shellenbarger 
  To: users@httpd.apache.org 
  Sent: Wednesday, April 16, 2003 11:03 AM
  Subject: [users@httpd] URL Redirection


  I have www.something.com pointed to an apache webserver and its the main site.  I also have
www.somethingelse.com that needs to go to that some webserver.  How do I redirect it to another
host directory.


  Thanks
  Chad

Mime
View raw message