LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Should I include srm.conf in httpd.conf in apache2? (http://www.linuxquestions.org/questions/linux-software-2/should-i-include-srm-conf-in-httpd-conf-in-apache2-413373/)

xpucto 02-09-2006 05:45 AM

Should I include srm.conf in httpd.conf in apache2?
 
Hi!
I've just mirrored an old server working with apache 1.3 to a new server working with apache2. Now I'm trying to take configuration elements from the old httpd.conf (apache 1.3) to put it in the httpd.conf of apache2. In apache1.3's http.conf there is a part called srm.conf. Can I just copy it in order to save time or should I copy each part (for example: Alias, Redirect, RedirectPermanent...) of it into the correct part of the new httpd.conf?

Transfering the infos from the old to the new httpd.conf is quite complicated because I've to be careful not to forget anything. Is there any easy to do it (when someone make an upgrade from apache1 to 2 for example)?

Thanks.

kg4ysy 02-10-2006 05:21 PM

When I reinstalled my system, I tried just copying the file directly into the new config file. Apache refused to run for me. I'm not saying that it won't work, it just didn't work for me. If you figure it out, I would really like to know.

dmusulin 02-10-2006 05:25 PM

some options are diffrent like php config of apache 1.3 and apache 2
(not sure but 50-50) so guess it won't work)

xpucto 02-16-2006 08:16 AM

Quote:

Originally Posted by kg4ysy
When I reinstalled my system, I tried just copying the file directly into the new config file. Apache refused to run for me. I'm not saying that it won't work, it just didn't work for me. If you figure it out, I would really like to know.

sorry I had a lot of problems with apache and couldn't make it run (but for some other reasons).

The include of srm.conf works. Here more explanations:
http://httpd.apache.org/docs/2.0/upgrading.html
Quote:

The AccessConfig and ResourceConfig directives no longer exist. Existing instances of these directives can be replaced with the Include directive which has equivalent functionality. If you were making use of the default values of these directives without including them in the configuration files, you may need to add Include conf/access.conf and Include conf/srm.conf to your httpd.conf. In order to assure that Apache reads the configuration files in the same order as was implied by the older directives, the Include directives should be placed at the end of httpd.conf, with the one for srm.conf preceding the one for access.conf.


All times are GMT -5. The time now is 02:36 PM.