PDA

View Full Version : Apache Config Problems - Access Forbidden


iFerret
2007-05-01, 03:24
So I run a webserver from home using Apache 2.2. It has always previously worked, but after reimaging the Windows PC Apache was running on, reinstalling Apache and associated things like PHP and MySQL (using the exact same configs as before for PHP and MySQL, and AFAIK the same config for Apache).

All of a sudden, whenever I try to access the site (from outside of my network) I get a forbidden message - something about the access control list. I understand that this means that there is a setting in the conf file that says that people can't access the site. I've checked the conf file and as far as I can see it's set to let people in.

So - could you test my site for me by going to www.cliq.co.nr or my IP which is 202.180.83.12 and see what happens for you. If you get the forbidden message, then I'll post the conf file up here so you guys can pick it apart.

:eek: Long post.
Thanks.

scratt
2007-05-01, 03:25
Yep. I get the forbidden message here.

iFerret
2007-05-01, 04:18
The ServerRoot is set to: ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
Apache is listening on port 80, port 80 is forwarded correctly on my router. The rest is mostly the standard config.
The server name is set to ServerName 10.1.1.2:80 which is my internal IP (which I have set-up to be static) and the DocRoot is set to what it should be. The bit about the directory settings is set like this :
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Satisfy all
</Directory>
which as far as I know is correct. This is NOT the default config. The default config is set to deny all, so I changed this. Could changing this be the problem?

Everything else from here is completely the default Apache setup.
BTW - I have rebooted both the hardware and the Apace software just now - whether that will help is a different story.

scratt
2007-05-01, 04:24
What is this?

http://202.180.83.6/vonzorro/

iFerret
2007-05-01, 04:35
That is a shitty excuse for a website - basically me mucking around with CSS and HTML from various places just to see what was possible.

EDIT:

Actually, my IP could be 124.197.16.128 - my router sez 124.197.16.128, a gadget on my Google homepage sez 202.180.83.12 you say 202.180.83.6 and whatismyip.com sez 124.197.16.128. zOMG!PONIES!heeeeeeeeeeeeeeeelp!ipmess!lolz!11!~on e!!!!!

Seriously though - that is an IP address mess.

EDIT 2:
What do you see when you go to the address you mentioned?

scratt
2007-05-01, 05:05
http://124.197.16.128/ This works. I can see your site. Well correction I can see an Index page.
You need to do some setup to get the index.html / index.php stuff to load automatically.
EDIT - Or do you? Perhaps your html is actually doing that 'index'?

Index of /

bodyimagepng.PNG
brumski/
cutenews/
googlehostedservice.html
index.htm
index.htm.txt
joomla/
jpc/
main/
notindexc.html
pers/
phpmyadmin/
school2/
secure/
smaj/
test.php
vonzorro/
wiki/
wordpress/

The other ones do not at all, and give forbidden messages.

Does that help any?

EDIT2 - http://124.197.16.128/index.htm

Gives me..

Hellooooooo!

Goooooooooooogle! (http://google.com)

Cool site! ;) :p

iFerret
2007-05-02, 02:18
Excellent - I got things working again.

The problem was that the domain (.co.nr) service was registering the wrong IP address - instead of taking my actual IP of 124.197.16.128 it was taking a different one (somehow?). I fixed it by editing the settings of the domain manually rather than the quick and lazy way.

So it wasn't a problem with Apache - it was a problem with the domain, hence why the site could be accessed at the IP but not the domain.

Thanks for your help Scratt. :)

scratt
2007-05-02, 02:22
Na worries bra. Glad to be of help. :)