简体   繁体   English

尝试使用https连接时,在xampp linux中更改Web根目录将给出错误403

[英]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.

相关问题 尝试在 windows 上使用 XAMPP 安装 CodeIgniter 项目时出现 403 错误 - 403 error when trying to mount CodeIgniter project with XAMPP on windows 尝试访问服务器上的“ /”时,Apache给我403错误 - Apache Gives me 403 Error when trying to access “/” on server 强制Https RewriteRule .htaccess给出403错误 - forced Https RewriteRule .htaccess gives 403 error XAMPP localhost - 更改目录后拒绝访问错误 403 - XAMPP localhost - Access denied error 403 after changing directory 尝试使用TinyMCE上传图像时出现错误403 - Error 403 when trying to upload image using TinyMCE 我正在使用xampp服务器并尝试运行localhost但在connect.php中不断收到错误 - I am using xampp server and trying to run localhost but constantly getting an error in connect.php PHP 函数 getimagesize() 在尝试获取 https url 时给出“读取错误” - PHP function getimagesize() gives "Read error" when trying to get https url 尝试连接到SOAP Web服务(WSDL)时出错 - error when trying to connect to SOAP web service (WSDL) 尝试从 PC 浏览器访问 Raspberry Pi web 页面时出现错误 403 - Error 403 when trying to access Raspberry Pi web page from PC browser curl给出403错误? - curl gives 403 error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM