Certbot with Apache: Difference between revisions
Jump to navigation
Jump to search
Created page with "Simple Example (Interactive): certbot --apache Both of the above examples will do the following;" |
No edit summary |
||
Line 1: | Line 1: | ||
The environment for the following examples is: CentOS 7 and Apache | |||
Simple Example (Interactive): certbot --apache | Simple Example (Interactive): certbot --apache | ||
Line 4: | Line 6: | ||
Both of the above examples will do the following; | Both of the above examples will do the following; | ||
* Modify the /etc/http/conf/httpd.conf file by adding several items | |||
** Several "Rewrites" to the VirtualHost section for the web site | |||
** <blockquote>RewriteEngine on</blockquote><blockquote>RewriteCond %{SERVER_NAME} =www.astoundingpublications.com [OR]</blockquote><blockquote>RewriteCond %{SERVER_NAME} =www.AstoundingPublications.com</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 |
Revision as of 21:07, 29 December 2019
The environment for the following examples is: CentOS 7 and Apache
Simple Example (Interactive): certbot --apache
Both of the above examples will do the following;
- Modify the /etc/http/conf/httpd.conf file by adding several items
- Several "Rewrites" to the VirtualHost section for the web site
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.astoundingpublications.com [OR]
RewriteCond %{SERVER_NAME} =www.AstoundingPublications.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- an Include: Include /etc/httpd/conf/httpd-le-ssl.conf