Paste r9uma Plain Text
PerlChildInitHandler DCP::Init::PerlChildInitHandler AddDefaultCharset UTF-8 <IfModule mime_module> AddType application/x-compress .Z AddType application/x-gzip .gz .tgz </IfModule> AddOutputFilterByType DEFLATE text/html text/plain application/x-javascript text/css <VirtualHost *> ServerName sandbox.bg.nc ServerAlias www.sandbox.bg.nc ServerAdmin sysadmin@netclime.com DocumentRoot /usr/local/web ErrorLog ${APACHE_LOG_DIR}/sk/error.log CustomLog ${APACHE_LOG_DIR}/sk/access.log combined PerlRequire /usr/local/Config/startup.pl PerlCleanupHandler Apache2::SizeLimit PerlModule Apache2::Reload PerlInitHandler Apache2::Reload RedirectMatch ^/Admin/$ /Admin/Html RedirectMatch ^(.+)/Admin/$ $1/Admin <Directory "/usr/local/web"> Require all granted PerlSetVar FatConfigFile /usr/local/Config/fat_generator.cfg PerlSetVar DCPConfigFile /usr/local/Config/dcp.cfg SetHandler perl-script PerlHandler DCP::ProcessRequest </Directory> <DirectoryMatch "(Admin|Core|Shell|Tools|Apps|Designs|Files|Shared|Tests)"> <FilesMatch fat_.*\.html?$> Options -ExecCGI SetHandler default-handler </FilesMatch> <FilesMatch "\.(cfg|cmp|mac|obj|pl)$"> Require all denied </FilesMatch> <FilesMatch \.json$> Options -ExecCGI SetHandler default-handler </FilesMatch> <FilesMatch \.css$> Options -ExecCGI SetHandler default-handler </FilesMatch> <FilesMatch \.js$> Options -ExecCGI PerlFixupHandler SK::Tools::LangCheck PerlSetVar SandboxMode 1 SetHandler default-handler </FilesMatch> # use default-handler for htm files <FilesMatch \.htm$> Options -ExecCGI SetHandler default-handler </FilesMatch> <FilesMatch \.(?i:gif|jpe?g|png)$> Options -ExecCGI SetHandler default-handler </FilesMatch> # use default-handler for non-DCP files <FilesMatch \.(?i:txt|xml|ttf|psd|swf|eml|eot|otf|pem)$> Options -ExecCGI SetHandler default-handler </FilesMatch> </DirectoryMatch> <DirectoryMatch "\/Users\/CSSgo.*"> <Files *> Options -ExecCGI SetHandler default-handler PerlFixupHandler SK::Tools::FatAll </Files> </DirectoryMatch> <DirectoryMatch "\/Files\/"> <Files *> Options -ExecCGI SetHandler default-handler </Files> </DirectoryMatch> </VirtualHost> # vim: syntax=apache ts=3 sw=3 sts=3 sr noet