[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] editing httpd.conf
- Subject: Re: [cobalt-developers] editing httpd.conf
- From: "Steven Werby" <steven-lists@xxxxxxxxxxxx>
- Date: Mon Jul 10 11:33:18 2000
Brian Stevens <brian@xxxxxxxxxxxxxxx> wrote:
> I am new to using a cobalt server, but familiar needing to modify the
> httpd.conf file to do things like point multiple domain names to the
> same directory and create custom logs.
>
> Is there an easy way to do this on a raq3 as it seems pretty touchy
> doing this.
>
> I cant use ftp as the admin to modify it and when I logged (telnet) in
> as the su - and used pico apache didnt like it and crashed, then
> getting the original httpd.conf back was a nightmare as cant ftp to
> that directory (permission denied)
>
> So what is the best way to do this that is both easy and safe???
Here's what I do.
0. su -
1. cd /etc/httpd/conf/httpd.conf
2. cp -p httpd.conf bak.httpd.conf-`date +%Y-%m-%d` (those are tickmarks, usually
found above tab key)
3. pico -w httpd.conf (the -w flag turns line wrapping off and is a good idea when
editing any config files)
4. restart httpd (/etc/rc.d/init.d/httpd.init restart on RaQ2, /etc/rc.d/init.d/httpd
restart on RaQ3)
5. if no errors, pat myself on back
6. if errors copy backup file in step 2 to original location, proceed to step 4
It's easy and perfectly safe. I don't find any justification for shuffling the file
from my server to my pc back to my server. YMMV.
Steven Werby {steven-lists@xxxxxxxxxxxx}