forked from dbwebb-se/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbwebb.se.conf
50 lines (37 loc) · 1.06 KB
/
dbwebb.se.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
Define site dbwebb.se
#Define pathSite /home/mos/htdocs/${site}
Define pathSite /app
ServerAdmin [email protected]
<VirtualHost *:80>
ServerName ${site}
ServerAlias local.${site}
DocumentRoot /app/htdocs
ServerSignature Off
Include ${pathSite}/config/apache-env
Include ${pathSite}/config/apache-redirects
Include ${pathSite}/config/apache-rewrites
<Directory />
#FallbackResource /index.php
# Rewrite to frontcontroller
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [NC,L]
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
Order allow,deny
Allow from all
Deny from env=spambot
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
<FilesMatch "\.(jpe?g|png|gif|js|css|svg|ttf|otf|eot|woff|woff2|ico)>
ExpiresActive On
ExpiresDefault "access plus 1 week"
</FilesMatch>
#LogLevel alert rewrite:trace6
# tail -f error.log | fgrep '[rewrite:'
ErrorLog ${pathSite}/log/error.log
CustomLog ${pathSite}/log/access.log combined
</VirtualHost>