Certbot with Apache: Difference between revisions
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
Both of the above examples will do the following; | Both of the above examples will do the following; | ||
* | *Modifies the /etc/http/conf/httpd.conf file by adding several items with several "Rewrites" to the VirtualHost section for the web site; | ||
**<blockquote>RewriteEngine on</blockquote><blockquote>RewriteCond %{SERVER_NAME} =WhateEverWebSiteName [OR]</blockquote><blockquote>RewriteCond %{SERVER_NAME} =WhateEverWebSiteName </blockquote><blockquote>RewriteRule ^ <nowiki>https://%{SERVER_NAME}%{REQUEST_URI}</nowiki> [END,NE,R=permanent]</blockquote> | **<blockquote>RewriteEngine on</blockquote><blockquote>RewriteCond %{SERVER_NAME} =WhateEverWebSiteName [OR]</blockquote><blockquote>RewriteCond %{SERVER_NAME} =WhateEverWebSiteName </blockquote><blockquote>RewriteRule ^ <nowiki>https://%{SERVER_NAME}%{REQUEST_URI}</nowiki> [END,NE,R=permanent]</blockquote> | ||
**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> | **<blockquote>Include /etc/httpd/conf/httpd-le-ssl.conf</blockquote> | ||