Update all manager-apache*.conf
This commit is contained in:
parent
5ad7f6c988
commit
7c3ce2fc32
|
@ -8,7 +8,34 @@
|
|||
# Manager virtual host (manager.__DNSDOMAIN__)
|
||||
<VirtualHost __VHOSTLISTEN__>
|
||||
ServerName manager.__DNSDOMAIN__
|
||||
LogLevel notice
|
||||
#ErrorLog ${APACHE_LOG_DIR}/lm_err.log
|
||||
#CustomLog ${APACHE_LOG_DIR}/lm.log combined
|
||||
|
||||
RewriteEngine on
|
||||
RewriteRule "^/$" "/psgi/manager-server.fcgi/$1" [L]
|
||||
RewriteCond "%{REQUEST_FILENAME}" "!^/(?:static|doc|fr-doc|lib).*"
|
||||
RewriteRule "^/(.*)$" "/psgi/manager-server.fcgi/$1" [L]
|
||||
|
||||
# Note: this example uses mod_fastcgi
|
||||
FastCgiServer __MANAGERDIR__/psgi/manager-server.fcgi
|
||||
|
||||
<Location />
|
||||
Require all granted
|
||||
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css
|
||||
SetOutputFilter DEFLATE
|
||||
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
||||
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
||||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
||||
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
|
||||
</IfModule>
|
||||
<IfModule mod_headers.c>
|
||||
Header append Vary User-Agent env=!dont-vary
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
# DocumentRoot
|
||||
DocumentRoot __MANAGERDIR__
|
||||
<Directory __MANAGERSTATICDIR__>
|
||||
|
@ -33,35 +60,5 @@
|
|||
Options +FollowSymLinks
|
||||
</Directory>
|
||||
|
||||
# Perl script
|
||||
# Note: to increase performance, you can avoid manager stay in memory
|
||||
# by using "SetHandler cgi-script" instead of Plack framework
|
||||
<Location />
|
||||
Require all granted
|
||||
Options +ExecCGI
|
||||
SetHandler perl-script
|
||||
PerlResponseHandler Plack::Handler::Apache2
|
||||
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
|
||||
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css
|
||||
SetOutputFilter DEFLATE
|
||||
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
||||
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
||||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
||||
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
|
||||
</IfModule>
|
||||
<IfModule mod_headers.c>
|
||||
Header append Vary User-Agent env=!dont-vary
|
||||
</IfModule>
|
||||
</Location>
|
||||
<LocationMatch ^/(static|doc|lib|fr-doc)>
|
||||
SetHandler none
|
||||
Options -ExecCGI
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 month"
|
||||
</IfModule>
|
||||
</LocationMatch>
|
||||
</VirtualHost>
|
||||
|
||||
|
|
|
@ -8,7 +8,34 @@
|
|||
# Manager virtual host (manager.__DNSDOMAIN__)
|
||||
<VirtualHost __VHOSTLISTEN__>
|
||||
ServerName manager.__DNSDOMAIN__
|
||||
LogLevel notice
|
||||
#ErrorLog ${APACHE_LOG_DIR}/lm_err.log
|
||||
#CustomLog ${APACHE_LOG_DIR}/lm.log combined
|
||||
|
||||
RewriteEngine on
|
||||
RewriteRule "^/$" "/psgi/manager-server.fcgi/$1" [L]
|
||||
RewriteCond "%{REQUEST_FILENAME}" "!^/(?:static|doc|fr-doc|lib).*"
|
||||
RewriteRule "^/(.*)$" "/psgi/manager-server.fcgi/$1" [L]
|
||||
|
||||
# Note: this example uses mod_fastcgi
|
||||
FastCgiServer __MANAGERDIR__/psgi/manager-server.fcgi
|
||||
|
||||
<Location />
|
||||
Require all granted
|
||||
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css
|
||||
SetOutputFilter DEFLATE
|
||||
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
||||
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
||||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
||||
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
|
||||
</IfModule>
|
||||
<IfModule mod_headers.c>
|
||||
Header append Vary User-Agent env=!dont-vary
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
# DocumentRoot
|
||||
DocumentRoot __MANAGERDIR__
|
||||
<Directory __MANAGERSTATICDIR__>
|
||||
|
@ -36,35 +63,5 @@
|
|||
Options +FollowSymLinks
|
||||
</Directory>
|
||||
|
||||
# Perl script
|
||||
# Note: to increase performance, you can avoid manager stay in memory
|
||||
# by using "SetHandler cgi-script" instead of Plack framework
|
||||
<Location />
|
||||
Require all granted
|
||||
Options +ExecCGI
|
||||
SetHandler perl-script
|
||||
PerlResponseHandler Plack::Handler::Apache2
|
||||
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
|
||||
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css
|
||||
SetOutputFilter DEFLATE
|
||||
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
||||
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
||||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
||||
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
|
||||
</IfModule>
|
||||
<IfModule mod_headers.c>
|
||||
Header append Vary User-Agent env=!dont-vary
|
||||
</IfModule>
|
||||
</Location>
|
||||
<LocationMatch ^/(static|doc|lib|fr-doc)>
|
||||
SetHandler none
|
||||
Options -ExecCGI
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 month"
|
||||
</IfModule>
|
||||
</LocationMatch>
|
||||
</VirtualHost>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user