[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] httpd.conf being OverWritten -- Still having problems
- Subject: RE: [cobalt-users] httpd.conf being OverWritten -- Still having problems
- From: "Tony" <isplists@xxxxxxxxxxxx>
- Date: Fri Sep 15 07:17:48 2000
Is this special include just for 1 domain?
It would help if you stated exactly what you want the site to do.
Why do you need an .exe file to load on a Linux machine?
.exe's are usually Windows executables, Perl likes to see .cgi and .pl for
cgi scripts.
If you're just adding directives for a single Virt site the Include
statement
would go INSIDE the VirtHost container:
NameVirtualHost 111.111.111.111
<VirtualHost 111.111.111.111>
Include /etc/httpd/conf/extra.conf
ServerName www.xxx.net
ServerAdmin home
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^111.111.111.111(:80)?$
RewriteCond %{HTTP_HOST} !^www.xxx.net(:80)?$
RewriteRule ^/(.*) http://ns1.gps.net/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
The format of the extra.conf file would be:
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ScriptAlias /cgi-bin/ /home/sites/home/cgi-bin/
ScriptAlias /cgi-share/ /home/sites/cgi-share/
Note: Do not include container brackets in the extra.conf file
What Apache does in this case as it reads the httpd.conf file is INCLUDE the
directives
of the external file with the directives that come between <VirtualHost
111.111.111.111>
and </VirtualHost>
The only time you would include <VirtualHost> brackets is when you want
GLOBAL directives
read when Apache starts. In this case you would put your Include statement
at the very top
right before your first <VirtualHost> definition:
========================================
<snip...
#ErrorLog logs/host.some_domain.com-error_log
#TransferLog logs/host.some_domain.com-access_log
#</VirtualHost>
Include /etc/httpd/conf/cnames.conf
NameVirtualHost 111.111.111.111
<VirtualHost 111.111.111.111>
....
========================================
The cname.conf file in this case has complete <VirtualHost> directives for
cname domains that we do not wish to set up through the GUI.
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of James Wade
Sent: Thursday, September 14, 2000 8:05 PM
To: 'cobalt-users@xxxxxxxxxxxxxxx'
Subject: [cobalt-users] httpd.conf being OverWritten -- Still having
problems
Tony,
I tried your suggestion and made an include
file, but when it loads I get and error
saying there is no Virtual Host defined
for 192.168.5.100:80, and the site won't
work. I just copied my defined lines from
the httpd.conf into extra.conf and then
added the include line at the bottom of the
httpd.conf file.
I removed: NameVirtualHost 192.168.5.100
from the top of the extra.conf file, and
I don't get the error, but it the site
still won't work (added .exe). Of course
if I just put the exe back in the standard
httpd.conf file, It works fine.
Also tried defining the Virtual host &
NameVirtualHost with the :80 on it
with still no luck.
Any help would be appreciated.
THanks...James
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Tony
Sent: Wednesday, September 13, 2000 9:57 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] httpd.conf being OverWritten
No need to modify the Cobalt Special Sauce scripts.
You need to put a Include statement above your virtual host container
section in httpd.conf
and include your custom edits in a seperate conf file.
ie:
Include /etc/httpd/conf/cnames.conf [or whatever you wish to call the file]
A search of the list archives for "custom httpd.conf" should bring up a few
dozen more detailed threads on this.
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of James Wade
Sent: Wednesday, September 13, 2000 9:38 PM
To: cobalt-users@xxxxxxxxxxxxx (E-mail)
Subject: [cobalt-users] httpd.conf being OverWritten
Hello All,
I have a raq2 and I am modifying the
file the httpd.conf file manually to add
additional funcitionality to the file.
Adding a *.exe for cgi scripts.
It works fine, but if you use the cobalt
web based interface to add a user to the
site or increase a users disk space,
the system rebuilds the httpd.conf file
and removes my *.exe input's.
Where do the cobalt scripts modify the
httpd conf file and how to I set it up
so that my modifications will stay?
Thanks...James
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users