Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory index forbidden by rule

Status
Not open for further replies.

mamboman

Technical User
Sep 16, 2002
4
GB
hi,
I am having problems accessing a directory using a symlink.

1. I have installed squirrelmail
2. I have created a symlink as follows ln -s /usr/share/squirrelmail /usr/files/websites/mambotech/webmail
3. I have chown and chgrp on all of the files and dir's to the usr of apache
4. When I go to the open the link I get Forbidden
You don't have permission to access /webmail/ on this server.
5. I check the error.log and find Directory index forbidden by rule : /usr/files/websites/mambotech/webmail

Please can anyone help me resolve this I have been working on it for a week now .....

Thanks Mark %-)
 
Apache is still thinking that your link is outside its webspace. You will need to define a directory container for it. Rather than use a symlink, I use Alias:

Alias /webmail/ "/usr/share/squirrelmail/"

<Directory &quot;/usr/share/squirrelmail&quot;>

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>

Now apache is happy and you can use /webmail as the path or as the URL.
 
Hi, RhythmAce

Thanks for that it worked fine....well I got the logon page, now I am having problem logging in. I returns page cannot be displayed when trying to access /webmail/src/redirect.php ? have you had this problem at all


Thanks Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top