简体   繁体   中英

Apache2 Redirect https to http with no certificate

I have read all the posts here regarding this, however none have worked.

My attempt has been to edit the 000-default and redirect port 443 to 80 with no success.

Any ideas thinking out the box would be great.

Thanks

in your /etc/apache2/sites-available/000-default.conf

<VirtualHost *:443>
        ServerName yourname.site.com
        ProxyPass         / http://127.0.0.1:80/
        ProxyPassReverse  / http://127.0.0.1:80/
</VirtualHost>

Don't forget to load your file a2ensite /etc/apache2/sites-available/000-default.conf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM