Forum Home
Press F1
 
Thread ID: 33693 2003-05-23 01:48:00 Linux - Apache serving nothing but 403s Clueless (181) Press F1
Post ID Timestamp Content User
146656 2003-05-23 01:48:00 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
Clueless (181)
146657 2003-05-23 02:29:00 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 .
bmason (508)
146658 2003-05-23 03:19:00 Yep, I think it will be set up with default security: no-one has access. Graham L (2)
146659 2003-05-23 03:20:00 Ooops, hit Post, whille thinking. It will be in the main configuration file for Apache. Graham L (2)
146660 2003-05-23 05:25:00 Can you access it from itself?

Must be permissions of some sort. Possibly locked to just 127.0.0.1 address.
-=JM=- (16)
146661 2003-05-24 01:19:00 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
Clueless (181)
146662 2003-05-24 02:33:00 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 :-)*
Chilling_Silently (228)
146663 2003-05-24 02:57:00 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
Clueless (181)
146664 2003-05-24 03:02:00 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.
Chilling_Silently (228)
146665 2003-05-24 04:48:00 Its fixed!
The problem was to do with permissions, i ticked the little boxes in "others" see example ( . 0 . 37 . 227/images/snapshot8 . png" target="_blank">202 . 0 . 37 . 227) 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
Clueless (181)
1