Apache 强制localhost使用https会导致403错误
我在一个php网站上工作。我正在使用Aptana和XAMPP来处理它。我最近更改了htaccess文件,以强制我的站点在本地主机上使用https。我还没有实现ssl证书。当我现在尝试访问一个网页时,我被引导到一个页面,上面写着:Apache 强制localhost使用https会导致403错误,apache,.htaccess,https,xampp,http-status-code-403,Apache,.htaccess,Https,Xampp,Http Status Code 403,我在一个php网站上工作。我正在使用Aptana和XAMPP来处理它。我最近更改了htaccess文件,以强制我的站点在本地主机上使用https。我还没有实现ssl证书。当我现在尝试访问一个网页时,我被引导到一个页面,上面写着: Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try
Object not found!
The requested URL was not found on this server. If you entered the URL
manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.10 (Unix) OpenSSL/1.0.1j PHP/5.6.3 mod_perl/2.0.8-dev Perl/v5.16.3
我找到了一些解决办法,但我真的想知道为什么会发生这种情况。我知道我可以更改httpd.conf文件来修复它,但我仍然不知道发生了什么。如果未配置HTTPS,即绑定到证书的端口,则HTTPS将无法工作。谢谢Alex。这回答了我的问题。