You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bill -Sx- Jones <sn...@mac.com> on 2002/03/04 18:06:02 UTC
re: Multiple Domains???
On 3/4/02 11:52 AM, "Mike Dewhirst" <De...@UCLES.org.uk> wrote:
> I've had a pretty good look at the httpd documentation, but cannot find
> what I need (what I need is not what I'm looking for?).
>
> We have several domains that we host on one box. How do we make requests
> for different domains go to different directories?
>
> Any help or pointers would be greatly appreciated.
>
> Mike
>
Maybe this example will help:
Listen 207.203.47.7:81
Listen 207.203.47.170:80
Listen 207.203.47.175:80
# Hmmmm... Do not use in this vhost situation...
#NameVirtualHost 207.203.47.7
#....................................................................
# Default Server @ webmaster.fccj.org:81...
<VirtualHost 207.203.47.7:81>
ServerAdmin wcjones@fccj.org
DocumentRoot /drv4/Apache/apache_1.3.3/htdocs
ServerName www.fccj.org
RewriteEngine On
RewriteOptions inherit
RewriteLog logs/rewrite_log
RewriteLogLevel 0
# Redirect end-user '~/usrID' page requests to main WWW server...
RewriteRule ^/~(.+) http://www.fccj.org/~$1 [L]
#RewriteCond %{REQUEST_URI} !-U
#RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
#RewriteRule ^/(.+) http://www.fccj.org/$1 [L]
#ProxyRequests On
#ProxyPass / insecurity.org/
#ProxyPassReverse / insecurity.org/
</VirtualHost>
#....................................................................
# www.techteam.fccj.org
<VirtualHost 207.203.47.170>
ServerAdmin webmaster@fccj.org
DocumentRoot /drv4/TechTeam
ServerName www.techteam.fccj.org
ErrorLog logs/www.techteam.fccj.org-error_log
TransferLog logs/www.techteam.fccj.org-access_log
RewriteEngine On
RewriteOptions inherit
RewriteLog logs/rewrite_log
RewriteLogLevel 0
# Redirect end-user '~/usrID' page requests to main WWW server...
RewriteRule ^/~(.+) http://www.fccj.org/~$1 [L]
</VirtualHost>
# For Reference: /etc/hosts
#127.0.0.1 localhost
#207.203.47.7 astro.fccj.cc.fl.us astro www loghost
#207.203.47.170 www.techteam.fccj.org
#207.203.47.172 www.distancelearning.org
#207.203.47.173 www.opencampus.org
#207.203.47.174 www.teachlearn.org
#207.203.47.175 www.teachlearncenter.org
#207.203.47.180 www.tis.edu
-Sx- :]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org