Mark
asked on
Force apache 443 to port 80
I've installed a Raspian/Debian webserver. It works fine when I browse to http://98.102.63.nnn/, but when I browse to https://98.102.63.nnn/ I get "This page can’t be displayed". I've used IP tables to forward port 443 to 80 and I have $DOCUMENT_ROOT/.htaccess set to:
Could someone help me figure this out?
RewriteEngine On
RewriteBase /
RewriteRule ^/?(.*) http://%{SERVER_NAME}/index.html [L,R=301]
which may not be correct at all.Could someone help me figure this out?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
When you try to connect with 'https', a secure connection is requested. If you have not installed an SSL/TLS certificate, the connection will not be made which means that you can not redirect from port 443 to port 80.
@Dave Baldwin, he has to configure apache for https connections, no?
ASKER
Well I was hoping to avoid all that, but I guess I cannot. I'm used to apache on Slackware which configures a bit different. Your link gave me a good howto for Debian. I copied in and configured my ssl files and things are working.
Dave Baldwin - thanks for you response, but it didn't add substantially to savone's comment.
Dave Baldwin - thanks for you response, but it didn't add substantially to savone's comment.