Certbot with Apache: Difference between revisions
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
*Modifies the /etc/http/conf/httpd.conf file by adding several items with several "Rewrites" to the VirtualHost section for the web site; | *Modifies the /etc/http/conf/httpd.conf file by adding several items with several "Rewrites" to the VirtualHost section for the web site; | ||
< | <source lang="text"> | ||
RewriteEngine on</blockquote><blockquote>RewriteCond %{SERVER_NAME} =WhateEverWebSiteName [OR]</blockquote><blockquote>RewriteCond %{SERVER_NAME} =WhateEverWebSiteName | |||
RewriteRule ^ <nowiki>https://%{SERVER_NAME}%{REQUEST_URI}</nowiki> [END,NE,R=permanent] | |||
</source> | |||
*an Include: Include /etc/httpd/conf/httpd-le-ssl.conf | *an Include: Include /etc/httpd/conf/httpd-le-ssl.conf | ||
<blockquote>Include /etc/httpd/conf/httpd-le-ssl.conf</blockquote><br /> | <blockquote>Include /etc/httpd/conf/httpd-le-ssl.conf</blockquote><br /> | ||
<source lang="text"> | <source lang="text"> | ||
<IfModule mod_ssl.c> | <IfModule mod_ssl.c> | ||