httpd config files not correct

S2S-Robert

Verified User
Joined
Jun 24, 2003
Messages
415
Location
The Netherlands
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?
 
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
 
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:

Code:
[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
 
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
 
Back
Top