logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_rewrite and mod_ssl
Author
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Wed 19 Jul '06 22:45    Post subject: mod_rewrite and mod_ssl Reply with quote

I want all http requests on my apache 2.2.2 server to be served by https (mod_ssl)

This is what I've added to the conf file:

Code:
<IFModule rewrite_module>
ReWriteEngine On
ReWriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</IFModule>


This seems to be working for everything except the root home page.

That is still served by http. How can I make the home page served by https as well?
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Wed 19 Jul '06 23:04    Post subject: Reply with quote

This works fine for me:
http://www.blackdot.be/?inc=apache/forcessl.htm
Back to top
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Wed 19 Jul '06 23:10    Post subject: Reply with quote

Thanks! Seems to be working for me too
Back to top


Reply to topic   Topic: mod_rewrite and mod_ssl View previous topic :: View next topic
Post new topic   Forum Index -> Apache