-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache.conf
69 lines (53 loc) · 2.3 KB
/
apache.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<VirtualHost raupulus.dev:80>
ServerName raupulus.dev
ServerAlias www.raupulus.dev
#Redirect permanent / https://raupulus.dev/
ServerAdmin raul@fryntiz.dev
DocumentRoot /var/www/public/www.raupulus.dev/.output/public
<Directory /var/www/public/www.raupulus.dev/.output/public>
Options +FollowSymLinks
IndexIgnore */*
AllowOverride All
RewriteEngine on
# Si el directorio o el archivo existe, entonces se usa directamente:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
#RewriteRule . index.html
RewriteRule . /index.html [L]
</Directory>
ErrorLog ${APACHE_LOG_DIR}/www.raupulus.dev_error.log
CustomLog ${APACHE_LOG_DIR}/www.raupulus.dev.log combined
RewriteCond %{SERVER_NAME} =www.raupulus.dev [OR]
RewriteCond %{SERVER_NAME} =raupulus.dev
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost raupulus.dev:443>
ServerName raupulus.dev
ServerAlias www.raupulus.dev
ServerAdmin public@raupulus.dev
DocumentRoot /var/www/public/www.raupulus.dev/.output/public
<Directory /var/www/public/www.raupulus.dev/.output/public>
Options +FollowSymLinks
IndexIgnore */*
AllowOverride All
Require all granted
RewriteEngine on
## Si el directorio o el archivo existe, entonces se usa directamente:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
## Otherwise forward it to index.php
#RewriteRule . index.html
RewriteRule . /index.html [L]
</Directory>
SSLEngine on
Include /etc/letsencrypt/options-ssl-apache.conf
#SSLCertificateFile /etc/letsencrypt/live/www.raupulus.dev/cert.pem
#SSLCertificateKeyFile /etc/letsencrypt/live/www.raupulus.dev/privkey.pem
#SSLCertificateChainFile /etc/letsencrypt/live/www.raupulus.dev/chain.pem
ErrorLog ${APACHE_LOG_DIR}/raupulus.dev_error-ssl.log
CustomLog ${APACHE_LOG_DIR}/raupulus.dev_access-ssl.log combined
SSLCertificateFile /etc/letsencrypt/live/raupulus.dev/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/raupulus.dev/privkey.pem
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet