[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Modifying httpd.conf
- Subject: Re: [cobalt-users] Modifying httpd.conf
- From: Hostmaster <hostmaster@xxxxxxxxxx>
- Date: Sat Apr 1 03:17:05 2000
on 3/31/00 4:29 PM, Paul Schreiber at cheesefactory@xxxxxxxxx wrote:
> --- Scott <scott@xxxxxxxxxx> wrote:
>> Does modifying httpd.conf mess up the RAQ2 in any way or are modifications
>> okay?
>
> Depends on what part of the file you modify. :-)
>
> Be *very* careful touching any <VirtualHost ...> parts.
>
> What are you trying to change/accomplish?
>
> Paul
Hi Paul,
I wanted to make sure that first of all it was possible as I'm used to
having complete control of the config file on my virtual server. One thing
which is strange is the use of the three config files instead of just the
one. This practice was done away with long ago at apache so I'm wondering if
I can combine them as is standard practice.
I've found the setup on the Cobalt unecessarily complex especially the
<VirtualHost> section. Take a look at a comparison below of my virtual
server compared to the Cobalt. Why on earth they would need to use
RewriteEngine directives for a standard Apache feature is beyond me but I'm
no expert.
Also, things like "AddHandler server-parsed .shtml" should be able to be
added once in the standard configuration and be inherited by all other
domains in name based hosting. Is the problem here that it's using IP based
hosting? If so, how do we change this in the UI?
Any and all thoughts would be most apreciated.
####################
Virtual Server
####################
# point www.mydomain.com to subdirectory mydomain
<VirtualHost www.mydomain.com mydomain.com>
ServerName www.mydomain.com
ServerAdmin admin@xxxxxxxxxxxx
DocumentRoot /usr/local/etc/httpd/vhosts/mydomain
ErrorLog vhosts/mydomain/logs/error_log
Alias /icons/ /usr/local/etc/httpd/icons/
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/
</VirtualHost>
####################
Cobalt
####################
<VirtualHost 216.98.132.117>
ServerName www.mydomain.com
ServerAdmin admin
ServerAlias mydomain.com
DocumentRoot /home/sites/site1/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^216.98.132.117(:80)?$
RewriteCond %{HTTP_HOST} !^www.mydomain.com(:80)?$
RewriteRule ^/(.*) http://www.mydomain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
--
Scott Crumpton, Publisher Moriah Mountain Publishing
mailto:scott@xxxxxxxxxx http://www.moriah.com/
"With God, All Things Are Possible. Without God, Nothing Is Possible."