Koozali.org: home of the SME Server

Making chages to httpd.conf

Johannes Frandsen

Making chages to httpd.conf
« on: July 21, 2002, 02:17:25 PM »
I'm running version 5.5

Well I found the file where it was suppose to be, but in the top it tell me not to mess with it and instead go look somewhere in the /e-smith kataloge. Now, I can't find any httpd.conf file in there just at katalog of the same name.

Question:

How du you make changes to your apache settings on esmith?

Right now the problem is adding new root document types like : index.php, default.php, home.php etc.

But in the long run i can se futher use for messing around in there.

All help appreciated

Joe

Lloyd Keen

Re: Making chages to httpd.conf
« Reply #1 on: July 21, 2002, 02:41:24 PM »
Try this
#mcedit /etc/e-smith/templates/etc/httpd/conf/httpd.conf/50DirectoryIndex00
or
#mcedit /etc/e-smith/templates/etc/httpd/conf/httpd.conf/50DirectoryIndex00PHP
Now if you want to make mods to httpd.conf you need to do something like this:
#mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
#mcedit /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/50DirectoryDefault00
and add the following line
DirectoryDefault   default.htm   default.html   default.shtml   default.cgi
Save and expand the template with
#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
If you have a look in /etc/httpd/conf/httpd.conf you should now see your new custom settings.

Abe Loveless

Re: Making chages to httpd.conf
« Reply #2 on: July 22, 2002, 11:27:17 PM »
After you expand the template, don't forget to restart apache to make your changes take affect.

"service httpd restart" is one way to restart the service.

Sterling

Re: Making chages to httpd.conf
« Reply #3 on: October 23, 2002, 10:01:58 PM »
How do I reverse this process? When trying to restart httpd I get the following:
----------
[root@cowley httpd.conf]# service httpd restart
Stopping httpd:                                            [   OK   ]
Starting httpd: Syntax error on line 375 of /etc/httpd/conf/httpd.conf:
Invalid command 'DirectoryDefault', perhaps mis-spelled or defined by a module not included in the server configuration
                                                           [ FAILED ]
----------
Thanks,
Sterling

Sterling

Re: Making chages to httpd.conf
« Reply #4 on: October 24, 2002, 08:17:00 PM »
This is what's happening. My httpd.conf keeps getting rebuilt with the DirectoryDefault command even though I've deleted the /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/50DirectoryDefault00 file and expanded the template again. This DirectoryDefault command causes httpd not to start. I can go manually delete the command out of /etc/httpd/conf/httpd.conf but it gets rebuilt a few minutes later httpd stops and won't start again. I can't figure out for the life of me where the DirectoryDefault command it is coming from. I've had to make /etc/httpd/conf/httpd.conf unwritable to keep my admin and web server running. Can somebody please give me a hint?

Thanks in advance,
Sterling