which file is the config file of http server?
It seems the config file of http server is /etc/apache2/httpd.conf. for example, I changed the status(disable/enable) of some http server module at yast. the file /etc/apache2/sysconfig.d/loadmodule.conf is modifed, add or delete a line beginning with LoadModule. and /etc/apache2/sysconfig.d/loadmodule.conf is include at /etc/apache2/httpd.conf. But /etc/httpd/httpd.conf isn't be modified. So what is /etc/httpd/httpd.conf for?
pearly zhao wrote:
It seems the config file of http server is /etc/apache2/httpd.conf. for example, I changed the status(disable/enable) of some http server module at yast. the file /etc/apache2/sysconfig.d/loadmodule.conf is modifed, add or delete a line beginning with LoadModule. and /etc/apache2/sysconfig.d/loadmodule.conf is include at /etc/apache2/httpd.conf. But /etc/httpd/httpd.conf isn't be modified.
So what is /etc/httpd/httpd.conf for?
It was the config file of Apache 1. It is not used any more in current SUSE installations. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany
On Wednesday 01 November 2006 02:57, Joachim Schrod wrote:
pearly zhao wrote:
It seems the config file of http server is /etc/apache2/httpd.conf. for example, I changed the status(disable/enable) of some http server module at yast. the file /etc/apache2/sysconfig.d/loadmodule.conf is modifed, add or delete a line beginning with LoadModule. and /etc/apache2/sysconfig.d/loadmodule.conf is include at /etc/apache2/httpd.conf. But /etc/httpd/httpd.conf isn't be modified.
So what is /etc/httpd/httpd.conf for?
It was the config file of Apache 1. It is not used any more in current SUSE installations.
Joachim: Interesting. When I open /etc/httpd.conf, and put some random characters (like ads;lk/D) on the first line, save it and restart wich "rcapache2 restart", I get a syntax error on line 1. (OSL 10.1, apache2-2.2.0-21.7). So apparently it is critical. pearly zhao: leen@ws-03:/etc/apache2> grep '/sysconfig.d' * httpd.conf:Include /etc/apache2/sysconfig.d/loadmodule.conf httpd.conf:Include /etc/apache2/sysconfig.d/global.conf httpd.conf:Include /etc/apache2/sysconfig.d/include.conf I think this answers your question. ;) Cheers, Leen
Leendert Meyer wrote:
On Wednesday 01 November 2006 02:57, Joachim Schrod wrote:
pearly zhao wrote:
It seems the config file of http server is /etc/apache2/httpd.conf. for example, I changed the status(disable/enable) of some http server module at yast. the file /etc/apache2/sysconfig.d/loadmodule.conf is modifed, add or delete a line beginning with LoadModule. and /etc/apache2/sysconfig.d/loadmodule.conf is include at /etc/apache2/httpd.conf. But /etc/httpd/httpd.conf isn't be modified.
So what is /etc/httpd/httpd.conf for?
It was the config file of Apache 1. It is not used any more in current SUSE installations.
Joachim: Interesting. When I open /etc/httpd.conf, and put some random characters (like ads;lk/D) on the first line, save it and restart wich "rcapache2 restart", I get a syntax error on line 1. (OSL 10.1, apache2-2.2.0-21.7). So apparently it is critical.
Which http.conf did you open? In 10.0, there is no /etc/httpd.conf. There, the default is /etc/apache2/httpd.conf and can be changed in /etc/sysconfig/apache2. Is this a symlink that got introduced in 10.1? If your Apache2 really uses /etc/httpd/httpd.conf (please note the different directory, this is not in /etc/apache2!) then this is really strange. What does /etc/sysconfig/apache2 tell in the comments for APACHE_HTTPD_CONF; or what is the value of this variable? What does rpm -qf /etc/httpd/httpd.conf output? (Again, please note the directory, this is not in apache2.)
pearly zhao: leen@ws-03:/etc/apache2> grep '/sysconfig.d' * httpd.conf:Include /etc/apache2/sysconfig.d/loadmodule.conf httpd.conf:Include /etc/apache2/sysconfig.d/global.conf httpd.conf:Include /etc/apache2/sysconfig.d/include.conf
I think this answers your question. ;)
Why? Sorry, but I cannot see how your grep answers that question. It shows that the sysconfig.d files are included in /etc/apache2/httpd.conf -- but that was already mentioned by the OP, see above. So he knew that already. He (or she?) detected hat there is a *second* httpd.conf in his system, in the *neighbouring* directory httpd, and asked which httpd.conf was now really used. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany
On Wednesday 01 November 2006 09:59, Joachim Schrod wrote:
Leendert Meyer wrote:
On Wednesday 01 November 2006 02:57, Joachim Schrod wrote:
pearly zhao wrote:
It seems the config file of http server is /etc/apache2/httpd.conf. for example, I changed the status(disable/enable) of some http server module at yast. the file /etc/apache2/sysconfig.d/loadmodule.conf is modifed, add or delete a line beginning with LoadModule. and /etc/apache2/sysconfig.d/loadmodule.conf is include at /etc/apache2/httpd.conf.> Joachim
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany
But /etc/httpd/httpd.conf isn't be modified.
So what is /etc/httpd/httpd.conf for?
It was the config file of Apache 1. It is not used any more in current SUSE installations.
Joachim: Interesting. When I open /etc/httpd.conf, and put some random characters (like ads;lk/D) on the first line, save it and restart wich "rcapache2 restart", I get a syntax error on line 1. (OSL 10.1, apache2-2.2.0-21.7). So apparently it is critical.
Which http.conf did you open?
Typo, I meant: /etc/apache2/httpd.conf
pearly zhao: leen@ws-03:/etc/apache2> grep '/sysconfig.d' * httpd.conf:Include /etc/apache2/sysconfig.d/loadmodule.conf httpd.conf:Include /etc/apache2/sysconfig.d/global.conf httpd.conf:Include /etc/apache2/sysconfig.d/include.conf
I think this answers your question. ;)
Why? Sorry, but I cannot see how your grep answers that question. It shows that the sysconfig.d files are included in /etc/apache2/httpd.conf -- but that was already mentioned by the OP, see above. So he knew that already.
He (or she?) detected hat there is a *second* httpd.conf in his system, in the *neighbouring* directory httpd, and asked which httpd.conf was now really used.
Indeed. I'm baffled. 1st mail of the morning? Anyway, sorry. Leen
participants (3)
-
Joachim Schrod
-
Leendert Meyer
-
pearly zhao