View Single Post
  #5   (View Single Post)  
Old 21st May 2008
businessgeeks businessgeeks is offline
New User
 
Join Date: May 2008
Posts: 9
Default

I usually get this when I setup another VirtualHost so i can host virtual domains on a single freeBSD box. So assuming youre in the same situation, you might want to check what i did.

first based on your pastebin output, i need you to look at line 359 to 364.

Code:
<Directory />
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>
This the section that says that you cannot access anything outside your current virtualhost documentroot. on the default apache 2.2 install in freebsd, it is indicated as:

Code:
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/www/data"
No issues here, actually thats good security measure. Now all you need to do is to add a directory tag in your virtualhost entry that allows you overied the above statement

Code:
<Directory />
    AllowOverride All
    Order Allow,Deny
    Allow from All
</Directory>
here is an example virtualhost entry to give you a better picture:

Code:
<Virtualhost 111.222.333.444:80>
     ServerName domain.com
     DocumentRoot /path/to/documentroot
     <Directory /path/to/documentroot>
        AllowOverride All
        Order Allow,Deny
        Allow from All
     </Directory>
</VirtualHost>
Hope this helps, let me know if you got it running! cheers!
Reply With Quote