Recherche

Langue:  
Rechercher:

  • Article for your preferred language does not exist. Below is international version of the article.
Traductions disponibles pour l'article:

How do I force all visitors of my website to use secure connection (HTTPS)? (Linux)

S'APPLIQUE A:
  • Parallels Plesk Panel for Linux/Unix

Question

How do I force all visitors of my website to use secure connection (HTTPS)?

Answer

1. Make sure that mod_rewrite Apache module is enabled:

~# httpd -t -D DUMP_MODULES | grep rewrite
Syntax OK
 rewrite_module (shared)


2. Create file .htaccess in document root of the domain and put following configuration inside:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]
</IfModule>

Web server restart is not required.

 




49af2da0f2dd4c81e962790bbbd0c2b4 5d735c0e028ee5b991e4fb80d34fb87f 56797cefb1efc9130f7c48a7d1db0f0c

FEEDBACK
Cet article vous-a-t-il aidé ?
Indiquez ce que nous pouvons améliorer.
Oui Non
 
 
 
 
 
 
Virtualisation de desktops
- Parallels Desktop 9 pour Mac
- Pour les entreprises
- Parallels Desktop pour Mac Enterprise Edition
- Parallels Management-Mac pour Microsoft SCCM
- Tous les Produits de virtualisation de desktops >>
Plates-formes d'automatisation cloud et d'hébergement
Parallels Plesk Panel Suite
- Parallels Plesk Panel
- Parallels Plesk Automation
- Parallels Web Presence Builder
Parallels Automation Suite
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
Parallels Virtualization Suite
- Parallels Cloud Server
- Parallels Virtuozzo Containers
- Parallels Virtual Automation
Services & Ressources
- Services Cloud Acceleration
- Services professionnels
- Services d'assistance
- Formation & Certification