[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] How to add an extra line added to all new <Vir tualHost> blocks in the httpd.conf?
- Subject: RE: [cobalt-users] How to add an extra line added to all new <Vir tualHost> blocks in the httpd.conf?
- From: BSmith@xxxxxxxxxxx
- Date: Mon Mar 18 10:55:01 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
type:
find / -name Vsite.pm
go to that directory
page down a few pages, looking:
</VirtualHost>
Add whatever you want before that line ... I.E. your customer line
When you go to remove your virtual site, it should remove it also .. I did
NOT try. That is up to you to do!
I would make a copy of the file before messing with it first.
type:
tar cfvpz /root/cobalt_sauce.tgz .
That way incase you mess something up, you can fix it.
Just a HUGE FYI. If you do this, you do void your Cobalt Warranty :( But
you gotta do what you gotta do!
Good Luck!
Brian Smith
CCNA, NCSA
Network Support Engineer
SOLUSERVE
www.solunet.com
1571 Robert J. Conlan Blvd., Suite 110
Palm Bay, FL 32905
(888)449-5766
fax: (321)-308-7986
-----Original Message-----
From: JP Laguna
Sent: Monday, March 18, 2002 9:24 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] How to add an extra line added to all new
<VirtualHost> blocks in the httpd.conf?
I want an extra line added to all new <VirtualHost> blocks in the httpd.conf
For example, when I "Add a Virtual Site" from the GUI. It enters the normal
data, such as:
<VirtualHost 128.0.0.1>
ServerName server.domain.com
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^128.0.0.1(:80)?$
RewriteCond %{HTTP_HOST} !^server.domain.com(:80)?$
RewriteRule ^/(.*) http://server.domain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
MyCustomLine etc...
</VirtualHost>
Is there a configuration file that I can add another line to this, so all
new sites will have automatically have it?
Thanks!
:) jason