[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Using include.conf file with httpd.conf changed the default site
- Subject: [cobalt-users] Using include.conf file with httpd.conf changed the default site
- From: Chris Bell <chris@xxxxxxxxxxxxxxx>
- Date: Wed Apr 17 19:22:06 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I wanted to configure some virtual web servers pointing to a subdirectory
of an existing site.
At 08:43 AM 10/11/2001 -0500, Dan Kriwitsky wrote:
In the httpd.conf for that virtual domain you created there. I prefer to not
modify the httpd.conf and use an include.conf for this.
http://list.cobalt.com/pipermail/cobalt-users/2000-October/024470.html
Ummm... i followed these instructions and it worked great, but now my
default site is the first one listed in the include.conf file:
http://216.234.186.121
Here's my include.conf file (I copied the VirtualHost settings from a site
in httpd.conf and commented some stuff out, although that doesn't seem to
be related to the problem):
<VirtualHost 216.234.186.121>
ServerName www.massindustry.com
ServerAdmin admin
DocumentRoot /home/sites/site127/web/massindustry.com
ServerAlias massindustry.com
#RewriteEngine on
#RewriteCond %{HTTP_HOST} !^216.234.186.121(:80)?$
#RewriteCond %{HTTP_HOST} !^www.massindustry.com(:80)?$
#RewriteRule ^/(.*) http://www.massindustry.com/$1 [L,R]
#RewriteOptions inherit
#AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site127/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
</VirtualHost>
<VirtualHost 216.234.186.121>
ServerName www.sexscenefromphil.com
ServerAdmin admin
DocumentRoot /home/sites/site127/web/sexscenefromphil.com
ServerAlias sexscenefromphil.com
#RewriteEngine on
#RewriteCond %{HTTP_HOST} !^216.234.186.121(:80)?$
#RewriteCond %{HTTP_HOST} !^www.sexscenefromphil.com(:80)?$
#RewriteRule ^/(.*) http://www.sexscenefromphil.com/$1
[L,R]
#RewriteOptions inherit
#AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site127/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
</VirtualHost>
in httpd.conf I put the Include directive before NameVirtualHost (as per
the instructions linked to above). Would it help if I put it somewhere
different?
Include /etc/httpd/conf/include.conf
NameVirtualHost 216.234.186.121
<VirtualHost 216.234.186.121>
ServerName www.blueskyhost.com
ServerAdmin admin
DocumentRoot /home/sites/home/web
ServerAlias blueskyhost.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^216.234.186.121(:80)?$
RewriteCond %{HTTP_HOST} !^www.blueskyhost.com(:80)?$
RewriteRule ^/(.*) http://www.blueskyhost.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
# AddHandler chiliasp .asp
# AddHandler chiliasp .asa
Alias /caspclient /home/chiliasp/caspsamp/friendship/client/content
Alias /caspagent /home/chiliasp/caspsamp/friendship/agent/content
Alias /casp401k /home/chiliasp/caspsamp/401K/content
Alias /caspsamp /home/chiliasp/caspsamp
Alias /caspdoc /home/chiliasp/caspdoc
</VirtualHost>
etc.
thanks
cb