Ubuntu, Apache, virtualhost and Access forbidden

♀尐吖头ヾ 提交于 2019-12-13 07:41:43

问题


I made virtualhost like: here. My directory is in my home folder. When I try to enter my new domain or anywhere I get 403 error:/

What happened?


回答1:


You can give the details of the error in the log file

/var/log/apache2/error_log

apache probably need read access to the following documents:

/home/.htaccess
/home/user/.htacces
[...]
/home/user/path/to/project/.htaccess



回答2:


I answer this question in the case you are still stuck.

I presume that you have set the permissions the correct way. The next step is to check if your home folder is encrypted? If so this might be your problem. Put you files in an folder outside of the home folder and give the permissions needed to access the folder.



来源:https://stackoverflow.com/questions/8880258/ubuntu-apache-virtualhost-and-access-forbidden

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!