PDA

View Full Version : 403 errors when using Apache Web Server..HELP!!




Cooncat
Apr 24, 2004, 04:14 PM
Hey guys, I'm trying to host some files using my computer as a web server...I turned on web sharing and put the files in the sites folder, and it seemed to work fine. However, I later noticed that only *some* of the files worked, and the others inexplicably gave me the "forbidden-you don't have permission to access ______ on this server"...I don't understand what's going on here...Help me I'm stupid!



superbovine
Apr 24, 2004, 04:25 PM
goto the directory that contain the html/php or whatever files you have in there.

right click or ctrl click -> get properties
Ownership & Permissions -> Details
they all should be read/write

from terminal if you a familar with unix
cd to the directory the files are in
then do a chmod 666 filename

Cooncat
Apr 24, 2004, 04:36 PM
that seemed to fix that...thanks!

Cooncat
Apr 24, 2004, 04:59 PM
Ok, everything seems to work on my end, but when other people try to access the files they get this error--
Internet explorer cannot download ****** from ***********

A connection with the server could not be established

What do I need to do to get this to work?

Westside guy
Apr 24, 2004, 07:32 PM
Ok, everything seems to work on my end, but when other people try to access the files they get this error--
Internet explorer cannot download ****** from ***********

Could be any number of issues. Are the other people on your local network, or are you trying to share to the world?

- Are you behind a firewall or router?

- Perhaps your ISP is blocking port 80? Most ISPs explicitly state that you're not supposed to run a server using their service, and some do block various ports.

- What happens when you go to your own server via a browser; either to "localhost" or else to the actual address that outsiders will use?

superbovine
Apr 25, 2004, 03:50 PM
this depends on your network setup as the previous poster eluded to.

there is a big difference ppl on your lan and your isp.

if you are using a broadband router and ppl are trying to connect through your dsl/cable there is some problems. a lot isp block port 80 (http) port. also you have to configure port forwarding on your router.

if you are just trying to connect from your lan or the outside for that matter, you could have your firewall enabled. the error you state means that something is stopping them establishing a connection to your mac.