HTTP:// vs HTTPS://

Discussion in 'Server Operation' started by happz, Mar 21, 2011.

  1. happz

    happz New Member

    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
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. happz

    happz New Member

    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
     
  4. falko

    falko Super Moderator ISPConfig Developer

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

Share This Page