Forum Moderators: phranque

Message Too Old, No Replies

problem with httpd.conf?

help with settings

         

Ahni2

2:13 pm on Oct 23, 2006 (gmt 0)

10+ Year Member



Hey. I recently became the admin of a site, and for the past few days it's been down. I've contacted the hosts, with no luck. I had a look at the httpd.conf, because I could access ftp and the webmin, but not the site.

What I'm wondering, is if this looks right? Particularly the allow from none part. (I replaced the domain name and directories with *** for this post)

DocumentRoot "/var/www/***/html"
ServerName www.***.com
<Directory "/var/www/***/html">
allow from none
Options +Indexes
</Directory>
ErrorLog /var/www/***/logs/error_log
LogLevel emerg
TransferLog /var/www/***/logs/access_log
ServerAlias example.com www.***.com ***.com

[edited by: jdMorgan at 2:53 pm (utc) on Oct. 23, 2006]
[edit reason] Example.com [/edit]

Birdman

2:36 pm on Oct 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, it appeears that the previous admin may have shut you down. It should look something like this:

<Directory /var/www/*/html>
Order Deny,Allow
Allow from all
</Directory>

[httpd.apache.org...]

See the "Protect server files by default" section.

Ahni2

2:48 pm on Oct 23, 2006 (gmt 0)

10+ Year Member



hmm, that's what I thought. I will try this shortly, and see if it works (I'm sure it will, but I'm not familiar with webmin at all -- I think all I have to do is click "edit directives' then save it, and that's it?

Birdman

3:07 pm on Oct 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not familiar with webmin either, I usually edit the file in a text editor and then restart apache.

Ahni2

3:44 pm on Oct 23, 2006 (gmt 0)

10+ Year Member



what do you know, thie site is suddenly working again?! (and I didn't even have to do anything!) Thanks birdman for your help.

Birdman

4:11 pm on Oct 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Has the config file been changed?