[英]changing web root in xampp linux gives error 403 when trying to connect using https
I had a simple website lying inside a folder called test, so I was calling http://localhost/test
and I'm getting a Hello World!
我有一个简单的网站,位于一个名为test的文件夹中,所以我呼叫了
http://localhost/test
并且正在获取Hello World!
message. 信息。 I was getting also the same message when I call it in
HTTPS
mode: https://localhost/test
. 当我在
HTTPS
模式下调用它时,我也收到了相同的消息: https://localhost/test
。
The problem is that after I changed my Webroot htdocs directory from /opt/lampp/htdocs
to /home/ubuntu/www
, I'm still able to see the hello world message by calling the HTTP link, but when I call the HTTPS link, I'm getting: 问题是,在我将Webroot htdocs目录从
/opt/lampp/htdocs
更改为/home/ubuntu/www
,我仍然可以通过调用HTTP链接来查看hello world消息,但是当我调用HTTPS链接时, 我越来越:
Access forbidden!
You don't have permission to access the requested
directory. There is either no index document or the directory is
read-protected. If you think this is a server error, please contact
the webmaster. Error 403
解决方案是还修改/ etc / extra /中的httpd-ssl.conf文件,并将第86行的DocumentRoot“ / opt / lampp / htdocs”修改为新目录“ / home / ubuntu / www” ”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.