这是我的配置文件
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
Redirect permanent / https://www.mywebsite.co/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Run Code Online (Sandbox Code Playgroud)
当我输入浏览器mywebsite.co时,它成功地重定向了我https://mywebsite.co但是由于此错误(谷歌浏览器),内容不会在页面上呈现
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
Run Code Online (Sandbox Code Playgroud)
我有一个使用端口80来处理http请求的EC2实例和一个处理https请求的负载均衡器.我不知道该怎么办,我在网上找到的解决方案都没有.