Extranet : configuration

This commit is contained in:
Michael RICOIS 2017-02-20 10:58:34 +01:00
parent bdccfd1d0d
commit 73f1eda5c3
7 changed files with 38 additions and 8 deletions

View File

@ -1,9 +1,14 @@
<VirtualHost *:80>
ServerName PROJECT_DNS
SetEnv APPLICATION_ENV "PROJECT_ENV"
AddDefaultCharset utf-8
DirectoryIndex index.php
DocumentRoot PROJECT_DIR/current/public
AddDefaultCharset utf-8
UseCanonicalName On
UseCanonicalPhysicalPort On
ServerSignature Off
DirectoryIndex index.php
DocumentRoot PROJECT_DIR/current/public
<Directory PROJECT_DIR/current/public/>
EnableSendfile Off
Options -Indexes
@ -23,6 +28,13 @@
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
</Directory>
<Directory PROJECT_DIR/current/public/assets/>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
</Directory>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel error
ErrorLog ${APACHE_LOG_DIR}/extranet-error.log

View File

@ -1,10 +1,14 @@
<VirtualHost *:80>
ServerName PROJECT_DNS
SetEnv APPLICATION_ENV "PROJECT_ENV"
ServerSignature Off
AddDefaultCharset utf-8
DirectoryIndex index.php
DocumentRoot PROJECT_DIR/current/public
AddDefaultCharset utf-8
UseCanonicalName On
UseCanonicalPhysicalPort On
ServerSignature Off
DirectoryIndex index.php
DocumentRoot PROJECT_DIR/current/public
<Directory PROJECT_DIR/current/public/>
Options -Indexes
AllowOverride none
@ -22,7 +26,14 @@
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
</Directory>
</Directory>
<Directory PROJECT_DIR/current/public/assets/>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
</Directory>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
DeflateCompressionLevel 9

View File

@ -0,0 +1,7 @@
/home/vhosts/extranet/shared/log/*.log {
rotate 4
weekly
missingok
compress
notifempty
}