PDA

View Full Version : Linux - Apache serving nothing but 403s



Clueless
23-05-2003, 01:48 PM
I have my web server back up and running sort of...
"sort of" being that one gets nothing but 403 error messages served:

"Forbidden You don't have permission to access /outdoorggg1.htm on this server.
Apache/1.3.23 Server at www.millerton.co.nz Port 80"

(www.millerton.co.nz currently comes from somewhere else. but i decided to call my server that as i plan to move the site here.)

I tried non exsistant files to get a 404 (as above) real image.gifs just incase it had taken exception to "index.htm" no joy, not allowed.
Error logs say "403". I had figured that.

Any one got any ideas what might be wrong with the set up?

Running SuSE8.0 on a slug

bmason
23-05-2003, 02:29 PM
I haven't used apache much but from what I remeber its a file ownership problem.

I think you need to set the files to be owned (or at least accessable) by guest/nobody or similar.

Graham L
23-05-2003, 03:19 PM
Yep, I think it will be set up with default security: no-one has access.

Graham L
23-05-2003, 03:20 PM
Ooops, hit Post, whille thinking. It will be in the main configuration file for Apache.

-=JM=-
23-05-2003, 05:25 PM
Can you access it from itself?

Must be permissions of some sort. Possibly locked to just 127.0.0.1 address.

Clueless
24-05-2003, 01:19 PM
JM,

Any one can access 403s on http://202.0.37.227 its just that 403s is all they get!

I went to true colors last night with D, and just got up. Am about to have a look at the permissions etc. Will see what is needed and get back here.

.Clueless

Chilling_Silently
24-05-2003, 02:33 PM
What happens if you connect from SAM to http://127.0.0.1 and see if you get authentication.

It takes me to your root folder, so Im guessing you needa specify the html file for apache to use :-)

should be the /etc/httpd.conf file :-)

Hope this helps

Cheers


Chill.

*BTW - When I setup Apache, all I had to do was specify the html file, in my case was located in /home/josiah/web/index.html where I placed it :-)*

Clueless
24-05-2003, 02:57 PM
I had a quick look through the .conf file, i even pointed it at some better places, but there must be something i have overlooked cause it still wants to go from "/"

http://127.0.0.1 does exactly the same. The problem is not accessing the server, but the way the server is(n't) accessing the files.

.Clueless

Chilling_Silently
24-05-2003, 03:02 PM
try copying your index.html (or equivalent) to a folder (You've made) called /web

then get into the command line and type this:

# chmod /web 777

then type:
#cd /web
#chmod index.html 777

That'll set permissions for that file to everybody.

Try that and post back :-)

Cheers


Chill.

Clueless
24-05-2003, 04:48 PM
Its fixed!
The problem was to do with permissions, i ticked the little boxes in "others" see example (http://202.0.37.227/images/snapshot8.png) and all was well!

Chill,
"/" in this case refered not to Sams root directory, but index.htm selected "/user/local/httpd/something" directory. This is exactly where the .conf file told apache to start from.

{yippy} now all i need to do is give it some fresh content! :p

.Clueless