Adapt apache conf files to Plack
This commit is contained in:
parent
c552b9d489
commit
c50879667d
|
@ -11,9 +11,13 @@
|
||||||
|
|
||||||
# DocumentRoot
|
# DocumentRoot
|
||||||
DocumentRoot __MANAGERDIR__
|
DocumentRoot __MANAGERDIR__
|
||||||
<Directory __MANAGERDIR__>
|
<Directory __MANAGERSTATICDIR__>
|
||||||
Require all granted
|
Require all granted
|
||||||
Options +ExecCGI +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
|
</Directory>
|
||||||
|
<Directory __MANAGERPSGIDIR__>
|
||||||
|
Require all granted
|
||||||
|
Options +FollowSymLinks
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# On-line documentation
|
# On-line documentation
|
||||||
|
@ -34,18 +38,15 @@
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# Perl script
|
# Perl script
|
||||||
# Note: to avoid manager stay in memory, we don't use ModPerl::Registry
|
# Note: to increase performance, you can avoid manager stay in memory
|
||||||
# by default. Change this to increase manager performances
|
# by using "SetHandler cgi-script" instead of Plack framework
|
||||||
<Files *.pl>
|
<FilesMatch \.psgi$>
|
||||||
SetHandler cgi-script
|
#SetHandler cgi-script
|
||||||
#SetHandler perl-script
|
Options +ExecCGI
|
||||||
#PerlResponseHandler ModPerl::Registry
|
SetHandler perl-script
|
||||||
</Files>
|
PerlResponseHandler Plack::Handler::Apache2
|
||||||
|
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
|
||||||
# Directory index
|
</FilesMatch>
|
||||||
<IfModule mod_dir.c>
|
|
||||||
DirectoryIndex index.pl index.html
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<Location />
|
<Location />
|
||||||
<IfModule mod_deflate.c>
|
<IfModule mod_deflate.c>
|
||||||
|
@ -66,7 +67,7 @@
|
||||||
ExpiresDefault "access plus 1 month"
|
ExpiresDefault "access plus 1 month"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</Location>
|
</Location>
|
||||||
<Location /skins/>
|
<Location /static/>
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresDefault "access plus 1 month"
|
ExpiresDefault "access plus 1 month"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
# DocumentRoot
|
# DocumentRoot
|
||||||
DocumentRoot __MANAGERDIR__
|
DocumentRoot __MANAGERDIR__
|
||||||
<Directory __MANAGERDIR__>
|
<Directory __MANAGERSTATICDIR__>
|
||||||
<IfVersion >= 2.3>
|
<IfVersion >= 2.3>
|
||||||
Require all granted
|
Require all granted
|
||||||
</IfVersion>
|
</IfVersion>
|
||||||
|
@ -19,7 +19,17 @@
|
||||||
Order Deny,Allow
|
Order Deny,Allow
|
||||||
Allow from all
|
Allow from all
|
||||||
</IfVersion>
|
</IfVersion>
|
||||||
Options +ExecCGI +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
|
</Directory>
|
||||||
|
<Directory __MANAGERPSGIDIR__>
|
||||||
|
<IfVersion >= 2.3>
|
||||||
|
Require all granted
|
||||||
|
</IfVersion>
|
||||||
|
<IfVersion < 2.3>
|
||||||
|
Order Deny,Allow
|
||||||
|
Allow from all
|
||||||
|
</IfVersion>
|
||||||
|
Options +FollowSymLinks
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# On-line documentation
|
# On-line documentation
|
||||||
|
@ -52,18 +62,15 @@
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# Perl script
|
# Perl script
|
||||||
# Note: to avoid manager stay in memory, we don't use ModPerl::Registry
|
# Note: to increase performance, you can avoid manager stay in memory
|
||||||
# by default. Change this to increase manager performances
|
# by using "SetHandler cgi-script" instead of Plack framework
|
||||||
<Files *.pl>
|
<FilesMatch \.psgi$>
|
||||||
SetHandler cgi-script
|
#SetHandler cgi-script
|
||||||
#SetHandler perl-script
|
Options +ExecCGI
|
||||||
#PerlResponseHandler ModPerl::Registry
|
SetHandler perl-script
|
||||||
</Files>
|
PerlResponseHandler Plack::Handler::Apache2
|
||||||
|
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
|
||||||
# Directory index
|
</FilesMatch>
|
||||||
<IfModule mod_dir.c>
|
|
||||||
DirectoryIndex index.pl index.html
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<Location />
|
<Location />
|
||||||
<IfModule mod_deflate.c>
|
<IfModule mod_deflate.c>
|
||||||
|
@ -84,7 +91,7 @@
|
||||||
ExpiresDefault "access plus 1 month"
|
ExpiresDefault "access plus 1 month"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</Location>
|
</Location>
|
||||||
<Location /skins/>
|
<Location /static/>
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresDefault "access plus 1 month"
|
ExpiresDefault "access plus 1 month"
|
||||||
|
|
|
@ -11,10 +11,15 @@
|
||||||
|
|
||||||
# DocumentRoot
|
# DocumentRoot
|
||||||
DocumentRoot __MANAGERDIR__
|
DocumentRoot __MANAGERDIR__
|
||||||
<Directory __MANAGERDIR__>
|
<Directory __MANAGERSTATICDIR__>
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Allow from all
|
Allow from all
|
||||||
Options +ExecCGI +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
|
</Directory>
|
||||||
|
<Directory __MANAGERPSGIDIR__>
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
Options +FollowSymLinks
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# On-line documentation
|
# On-line documentation
|
||||||
|
@ -37,18 +42,15 @@
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# Perl script
|
# Perl script
|
||||||
# Note: to avoid manager stay in memory, we don't use ModPerl::Registry
|
# Note: to increase performance, you can avoid manager stay in memory
|
||||||
# by default. Change this to increase manager performances
|
# by using "SetHandler cgi-script" instead of Plack framework
|
||||||
<Files *.pl>
|
<FilesMatch \.psgi$>
|
||||||
SetHandler cgi-script
|
#SetHandler cgi-script
|
||||||
#SetHandler perl-script
|
Options +ExecCGI
|
||||||
#PerlResponseHandler ModPerl::Registry
|
SetHandler perl-script
|
||||||
</Files>
|
PerlResponseHandler Plack::Handler::Apache2
|
||||||
|
PerlSetVar psgi_app __MANAGERPSGIDIR__/manager-server.psgi
|
||||||
# Directory index
|
</FilesMatch>
|
||||||
<IfModule mod_dir.c>
|
|
||||||
DirectoryIndex index.pl index.html
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<Location />
|
<Location />
|
||||||
<IfModule mod_deflate.c>
|
<IfModule mod_deflate.c>
|
||||||
|
@ -69,7 +71,7 @@
|
||||||
ExpiresDefault "access plus 1 month"
|
ExpiresDefault "access plus 1 month"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</Location>
|
</Location>
|
||||||
<Location /skins/>
|
<Location /static/>
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresDefault "access plus 1 month"
|
ExpiresDefault "access plus 1 month"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user