HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   HTTP:// vs HTTPS:// (http://www.howtoforge.com/forums/showthread.php?t=51959)

happz 21st March 2011 03:11

HTTP:// vs HTTPS://
 
I want to use https rather than http for one website on my ispconfig3 server running debian. What do I need to think about or do to accomplish this?

thanks,
happz

falko 21st March 2011 15:31

http://kojiroh.wordpress.com/2007/02...tps-in-apache/

happz 21st March 2011 21:28

Thanks Falko
 
This seems simple enough. So say I want just one website to use https.

Would it look like this:

Before:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]


After:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{www.mysite.com}/$1 [L,R]

HappZ

falko 22nd March 2011 14:28

Try
Code:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]



All times are GMT +2. The time now is 14:00.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.