vhost file 443
This commit is contained in:
parent
51edaa3ede
commit
deff7c8727
@ -12,16 +12,27 @@
|
|||||||
|
|
||||||
ErrorLog /home/%user?/logs/%domain?/error.log
|
ErrorLog /home/%user?/logs/%domain?/error.log
|
||||||
CustomLog /home/%user?/logs/%domain?/access.log combined
|
CustomLog /home/%user?/logs/%domain?/access.log combined
|
||||||
|
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteCond %{SERVER_NAME} =%domain?
|
||||||
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName %domain?
|
ServerName %domain?
|
||||||
ServerAlias www.%domain? %domain?
|
ServerAlias www.%domain? %domain?
|
||||||
DocumentRoot /home/%user?/html/%domain?
|
DocumentRoot /home/%user?/html/%domain?
|
||||||
|
|
||||||
|
<Directory /home/%user?/html/%domain?>
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
AllowOverride all
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
ErrorLog /home/%user?/logs/%domain?/error.log
|
ErrorLog /home/%user?/logs/%domain?/error.log
|
||||||
CustomLog /home/%user?/logs/%domain?/access.log combined
|
CustomLog /home/%user?/logs/%domain?/access.log combined
|
||||||
|
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SSLCertificateFile /etc/letsencrypt/live/%domain?/cert.pem
|
SSLCertificateFile /etc/letsencrypt/live/%domain?/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/%domain?/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/%domain?/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/%domain?/fullchain.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
Loading…
x
Reference in New Issue
Block a user