Cleaner Apache config

This commit is contained in:
Xavier Guimard 2015-06-17 11:35:26 +00:00
parent 4d9ce06be1
commit 8539324fa4
3 changed files with 63 additions and 60 deletions

View File

@ -36,16 +36,17 @@
# Perl script
# Note: to increase performance, you can avoid manager stay in memory
# by using "SetHandler cgi-script" instead of Plack framework
RewriteEngine on
RewriteRule ^/$ /index.pl [R]
<Location /index.pl>
<Location />
Require all granted
#SetHandler cgi-script
Options +ExecCGI
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
</Location>
<Location /static>
SetHandler none
Options -ExecCGI
</Location>
<Location />
<IfModule mod_deflate.c>

View File

@ -54,16 +54,17 @@
# Perl script
# Note: to increase performance, you can avoid manager stay in memory
# by using "SetHandler cgi-script" instead of Plack framework
RewriteEngine on
RewriteRule ^/$ /index.pl [R]
<Location /index.pl>
<Location />
Require all granted
#SetHandler cgi-script
Options +ExecCGI
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
</Location>
<Location /static>
SetHandler none
Options -ExecCGI
</Location>
<Location />
<IfModule mod_deflate.c>

View File

@ -39,16 +39,17 @@
# Perl script
# Note: to increase performance, you can avoid manager stay in memory
# by using "SetHandler cgi-script" instead of Plack framework
RewriteEngine on
RewriteRule ^/$ /index.pl [R]
<Location /index.pl>
<Location />
Require all granted
#SetHandler cgi-script
Options +ExecCGI
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
</Location>
<Location /static>
SetHandler none
Options -ExecCGI
</Location>
<Location />
<IfModule mod_deflate.c>