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
|
<VirtualHost *:80>
ServerAdmin me@local
ServerName www.warsa.loc
DocumentRoot /home/dtv/warsa/web
DirectoryIndex index.php index.htm index.html
<Directory /home/admindtv/warsa/web>
AllowOverride None
Allow from All
</Directory>
Alias /sf /home/dtv/warsa/lib/vendor/symfony/data/web/sf
<Directory /home/dtv/warsa/lib/vendor/symfony/data/web/sf>
AllowOverride None
Allow from All
</Directory>
ErrorLog /var/log/apache2/error-warsa.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access-warsa.log combined
RewriteEngine On
#Activation des log de réécriture (A activé au besoin)
RewriteLog /var/log/apache2/rewrite-warsa.log
RewriteLogLevel 9
#suppression du path du reverse proxy
RewriteCond %{REQUEST_URI} ^/warsa(.+)$
RewriteRule ^/warsa(.+)?$ $1
#réécriture vers l'index
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -s [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -l [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]
</VirtualHost> |