[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] RaQ2--custom edits to httpd.conf
- Subject: RE: [cobalt-users] RaQ2--custom edits to httpd.conf
- From: "Neil J. Kemp" <neil@xxxxxxxxxx>
- Date: Fri Dec 17 10:50:26 1999
Sure. Here's the top part of my "extra.conf" file:
<VirtualHost 216.206.135.126>
ServerName www.mysteria.net
ServerAlias *.mysteria.net
ServerAdmin mysteria@xxxxxxxxxxxx
DocumentRoot /home/sites/site13/web
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
Alias /cobalt-images/ /usr/admserv/html/.cobalt/images/
Alias /error/ /usr/admserv/html/.cobalt/error/
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/admin/?$
http://www.mysteria.net:81/.cobalt/sysManage/index.html [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/siteadmin/?$
http://www.mysteria.net:81/.cobalt/siteManage/www.mysteria.net/index.h$
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/personal/?$
http://www.mysteria.net:81/.cobalt/personal/index.html [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/.cobalt/(.+)
http://www.mysteria.net:81/.cobalt/$1 [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/cgi-bin/.cobalt/(.+)
http://www.mysteria.net:81/cgi-bin/.cobalt/$1 [L,R]
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site13/users/$1/web/$3
ScriptAlias /_vti_bin/_vti_adm/ /home/sites/site13/web/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_adm/ /home/sites/site13/web/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /home/sites/site13/web/_vti_bin/
ScriptAlias /cgi-bin/ /home/sites/site13/web/cgi-bin/
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site13/users/$1/web/$3
</VirtualHost>
<VirtualHost 216.206.135.126>
ServerName ballyfarnonhouse.4quality.co.uk
ServerAlias *.ballyfarnonhouse.4quality.co.uk
DocumentRoot /home/sites/subdomains/4quality/ballyfarnonhouse/
</VirtualHost>
As you can see I've redefined a site already in the RaQ GUI (mysteria.net)
(added wildcarded subdomains) and also added another completly new site
(ballyfarnon) (although a very small entry as I don't care to log it etc)
--Neil
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of NetAdmin
Sent: 17 December 1999 17:36
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] RaQ2--custom edits to httpd.conf
Could you give me an example of an entry in the extra.conf file?
Do you just redefine the entire Virtual Host entry or just add the extra
directives you need?
Would you leave the orginal entry in the httpd.conf?
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Neil J. Kemp
Sent: Friday, December 17, 1999 4:52 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Cc: neil@xxxxxxxxxx
Subject: Re: [cobalt-users] RaQ2--custom edits to httpd.conf
Create a file called extra.conf (name can be changed) and then in your
/etc/httpd/conf/httpd.conf find the section:
#Listen 12.34.56.78:80
# VirtualHost: Allows the daemon to respond to requests for more than one
# server address, if your server machine is configured to accept IP
packets
# for multiple addresses. This can be accomplished with the ifconfig
# alias flag, or through kernel patches like VIF.
# Any httpd.conf or srm.conf directive may go into a VirtualHost command.
# See also the BindAddress entry.
#<VirtualHost host.some_domain.com>
#ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxx
#DocumentRoot /www/docs/host.some_domain.com
#ServerName host.some_domain.com
#ErrorLog logs/host.some_domain.com-error_log
#TransferLog logs/host.some_domain.com-access_log
#</VirtualHost>
Include /etc/httpd/conf/extra.conf
And add that last line in. (Include....)
In that file you can put custom Apache configurations and even redefine
existing domains if you want as I believe Apache reads it's config from
bottom to top and since all the other domains are below.... Well it works
for us! ;-)
Also that file will NOT get overwritten by the browser.Everything below it
in the httpd.conf will, but that line will stay. As usual backup files
first!
--Neil
On Thu, 16 Dec 1999, NetAdmin wrote:
> Date: Thu, 16 Dec 1999 23:54:49 -0600
> From: NetAdmin <isplists@xxxxxxxxxxxx>
> Reply-To: cobalt-users@xxxxxxxxxxxxxxx
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] RaQ2--custom edits to httpd.conf
>
> How does one make custom edits to the RaQ2 httpd.conf without them being
> wiped out the next time a new site is added?
> It not only wipes the additions but wiped out comment-out lines. I'm
> attempting to disable cgi-wrap on a site by site
> basis.
>
> Tony
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users