PDA

View Full Version : httpd config files not correct



S2S-Robert
11-20-2003, 07:33 AM
There are some httpd.conf files not correct, some have duplicate records for 80 & 443, and some even lack the entire SSL support.

Now I can download the specific file, change it and reupload it, but then it'll get overwritten each time. I've tried removing it using the direct admin httpd conf editor, but that doesn't seem to work.

Is there a way to get the httpd.conf file rewritten (and hopefully correct) for a domain?

And if not, how do I set it myself that it won't get overwritten?

DirectAdmin Support
11-20-2003, 09:22 AM
Hello,

Can you provide an example of the duplicate? There will always be duplicate <VirutalHost 1.2.3.4:80> entried because there are many domains on the same ip/port.. the ServerName is what makes the entries unique.

John

S2S-Robert
11-20-2003, 11:03 AM
Nevermind this problem, I clearly wasn't paying attention when I looked into the config files. It does have a different servername.

The problem I was actually having was that <reseller domain>/config isn't working anymore. I now looked into the apache error log and this is what came up:



[Thu Nov 20 13:40:00 2003] [error] PHP Warning: Unknown(): open_basedir restriction in effect. File(/usr/local/directadmin/scripts/redirect.php) is not within the allowed path(s): (/home/<resellername>/:/tmp/:/var/www/:/usr/lib/php/) in Unknown on line 0
[Thu Nov 20 13:40:00 2003] [error] PHP Warning: Unknown(/usr/local/directadmin/scripts/redirect.php): failed to open stream: Operation not permitted in Unknown on line 0
[Thu Nov 20 13:40:00 2003] [error] PHP Warning: (null)(): Failed opening '/usr/local/directadmin/scripts/redirect.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

DirectAdmin Support
11-20-2003, 11:12 PM
Hello,

Yes, that will be fixed in the next release. I'll be moving the redirect.php script to /var/www/html and changing the /config alias to match.

John