[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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