Updating file include path to be relative, adding http conf files
This commit is contained in:
parent
ccccf08013
commit
b75ad8f08d
|
|
@ -0,0 +1,24 @@
|
|||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerName pwtool.net
|
||||
ServerAlias www.pwtool.net pwtool.net
|
||||
# Redirect permanent / https://pwtool.net/
|
||||
#</VirtualHost>
|
||||
|
||||
#<VirtualHost *:443>
|
||||
# ServerName www.pwtool.net pwtool.net
|
||||
# SSLEngine on
|
||||
|
||||
DocumentRoot /var/www/pwtool/html
|
||||
LogLevel warn
|
||||
ErrorLog /var/log/httpd/https-pwtool.net-error_log
|
||||
CustomLog /var/log/httpd/https-pwtool.net-referer_log referer
|
||||
CustomLog /var/log/httpd/https-pwtool.net-agent_log agent
|
||||
CustomLog /var/log/httpd/https-pwtool.net-access_log combined
|
||||
|
||||
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
SSLCertificateFile /etc/letsencrypt/live/pwtool.net/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/pwtool.net/privkey.pem
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<VirtualHost *:80>
|
||||
ServerName pwtool.net
|
||||
ServerAlias www.pwtool.net pwtool.net
|
||||
# Redirect permanent / https://pwtool.net/
|
||||
#</VirtualHost>
|
||||
|
||||
#<VirtualHost *:443>
|
||||
# ServerName www.pwtool.net pwtool.net
|
||||
# SSLEngine on
|
||||
|
||||
DocumentRoot /var/www/pwtool/html
|
||||
LogLevel warn
|
||||
ErrorLog /var/log/httpd/https-pwtool.net-error_log
|
||||
CustomLog /var/log/httpd/https-pwtool.net-referer_log referer
|
||||
CustomLog /var/log/httpd/https-pwtool.net-agent_log agent
|
||||
CustomLog /var/log/httpd/https-pwtool.net-access_log combined
|
||||
|
||||
RewriteEngine on
|
||||
RewriteCond %{SERVER_NAME} =pwtool.net [OR]
|
||||
RewriteCond %{SERVER_NAME} =www.pwtool.net
|
||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||
</VirtualHost>
|
||||
Loading…
Reference in New Issue