Women in Technology

Hear us Roar



Article:
  Location, Location, Location: Tips for Storing Web Site Files
Subject:   more on the 403 error.
Date:   2003-07-18 06:04:35
From:   anonymous2
Great article! I tried to do this and it works if I put my website in the Sites folder:


<VirtualHost test.koen.com>
DocumentRoot /Users/koen/Sites/MyWeb
ServerName test.koen.com
</VirtualHost>



If I put it somewhere else, which is I guess the purpose of using virtual hosts, I get an 403 error:


<VirtualHost test.koen.com>
DocumentRoot /Users/koen/Documents/HTML/MyWeb
ServerName test.koen.com
</VirtualHost>


any ideas what might be the problem?



thanks,



- Koen.


Main Topics Newest First

Showing messages 1 through 1 of 1.

  • more on the 403 error.
    2003-07-28 13:01:27  anonymous2 [View]

    You have to remember that the web server is probably operating under it's own user account (like www or whatever it is -- try 'ps -ajx|grep http' to see). So, you need to let the webserver read your webpages. The Sites folder is set up for public access, but your Documents folder is not. Heck, you don't want a billion poeple looking at your docs. But if you do, you'll need to set the permissions correctly. Try 'chmod 755 MyWeb' from your HTML dir to give read access to the world (including the web server). Basically, you got a permissions problem. About 95% of Unix problems are permission problems.