Updating file include path to be relative, adding http conf files

This commit is contained in:
root 2022-04-04 10:33:03 +00:00
parent ccccf08013
commit b75ad8f08d
2 changed files with 46 additions and 0 deletions

24
pwtool.net-le-ssl.conf Normal file
View File

@ -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>

22
pwtool.net.conf Normal file
View File

@ -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>