[英]mapping 2 directories linux-server
I have a website mydomain.com. 我有一个网站mydomain.com。 The parent directory contains (among others) httpdocs and web_users. 父目录包含(除其他外)httpdocs和web_users。 web_users contains a folder myFolder. web_users包含一个文件夹myFolder。
I made a symbolic link (ln -s) to httpdocs, all went well. 我做了一个指向httpdocs的符号链接(ln -s),一切顺利。 But now, when I try to go to mydomain.com/myFolder, I get an error: 但是现在,当我尝试访问mydomain.com/myFolder时,出现了一个错误:
Forbidden You do not have permission to access this document. 禁止您无权访问此文档。
Web Server at mydomain.com 位于mydomain.com的Web服务器
How can I make this work? 我该如何进行这项工作? Do I have to adjust my .htaccess? 我是否需要调整.htaccess?
Regards, Tom 问候,汤姆
It seems like a file permission problem. 似乎是文件权限问题。 Be sure that your web server user(www-data or httpd usually) has read permissions on your myFolder directory. 确保您的Web服务器用户(通常为www-data或httpd)对myFolder目录具有读取权限。
1, Be sure to have enabled 1,确保已启用
Option FollowSymLinks
Docs : http://httpd.apache.org/docs/2.2/mod/core.html#Options 文件: http : //httpd.apache.org/docs/2.2/mod/core.html#Options
2, Be sure that apache process have read permissions to your directory, try to 2,确保apache进程对您的目录具有读取权限,请尝试
chmod 0777 myFolder
to your folder or 到您的文件夹或
chown [apacheuser] myFolder
this should fix it 这应该解决它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.