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:
RewriteEngine On
RewriteBase /
RewriteRule ^/?(.*)     http://%{SERVER_NAME}/index.html [L,R=301]

Open in new window

which may not be correct at all.

Could someone help me figure this out?
LVL 1
MarkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

savoneCommented:
You have to configure apache to accept HTTPS (443) connections.  

It's a lot to type, but google is your friend.  Here is the first how to I came across, but there are plenty out there.  Google "configure apache for https".

https://beeznest.wordpress.com/2008/04/25/how-to-configure-https-on-apache-2/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
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.
0
savoneCommented:
@Dave Baldwin, he has to configure apache for https connections, no?
0
MarkAuthor Commented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.