PDA

View Full Version : httpd.conf keeps reverting to a wrong version



sdible
01-28-2009, 05:29 PM
I keep having this problem where any time that I make a change, or do an update, my httpd.conf file is being overwritten with an older one that has ProxyRequest and it causes apache not to restart. Here is what I see:



Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 50 of /usr/local/directadmin/data/users/username/httpd.conf:
Invalid command 'ProxyRequests', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]


This happens when I try to do an update with custombuild or do some other update.

Today I simply turned off safe mode for one of my domains (via the DA control panel) and it rewrote my httpd.conf files with the wrong one.

Every time this happens, I have to contact my VPS provider for help (they are very quick), but I would like to fix the root cause of the problem.

So.

1. How do I fix the problem short term?

2. How do I prevent the problem from happening again in the future?

Thanks for any ideas and/or help.

smtalk
01-29-2009, 05:13 AM
Try removing custom virtualhost templates: http://help.directadmin.com/item.php?id=2

sdible
01-29-2009, 07:05 AM
Try removing custom virtualhost templates: http://help.directadmin.com/item.php?id=2

I will have a look at that when I get home tonight.

sdible
01-29-2009, 07:17 PM
I went to that directory and used this command

grep "ProxyRequest" *.conf

None of the virtual host files has anything.

Could it be hiding some place else?

smtalk
01-30-2009, 04:23 AM
Admin level->Custom HTTPD Configurations

sdible
01-30-2009, 04:27 PM
I don't think that is it either.... I can't find anything about it there.

I'm really stumped on this one, but I'm tired of having to edit all my httpd.conf files every time I do something on the server.

sdible
01-30-2009, 04:34 PM
Try removing custom virtualhost templates: http://help.directadmin.com/item.php?id=2

My bad...

Your first advice was spot on.

I was looking in the ../templates directory and not the the ../templates/custom directory.

I think I have it fixed now.

:)