X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=etc%2Fkoha-httpd.conf;h=dd5ec4185c59833d6cc897847e31d7c897ae326a;hb=dbaefb626ce5c2022b647fc15e6d0a0d68fa0784;hp=dc82d08a394edb563f9766d2fbd58aee32ff78a7;hpb=2bc542789fdf9d551a408bc8349daa062a37c496;p=koha_fer diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index dc82d08a39..dd5ec4185c 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -20,6 +20,16 @@ SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" + + Options -Indexes + + + # Secure internal stuff + + Order deny,allow + Deny from all + + mod_gzip_on yes mod_gzip_dechunk yes @@ -82,18 +92,20 @@ ErrorDocument 404 /cgi-bin/koha/errors/404.pl ErrorDocument 500 /cgi-bin/koha/errors/500.pl -# Rewrite Rules - RewriteEngine On + + # Rewrite Rules + RewriteEngine On -# Uncomment to turn on rewrite logging -# RewriteLog __LOG_DIR__/koha-opac-rewrite.log -# RewriteLogLevel 1 - RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) - RewriteRule (.+) $1?%1%2 [N,R,NE] + # Uncomment to turn on rewrite logging + #RewriteLog __LOG_DIR__/koha-opac-rewrite.log + #RewriteLogLevel 1 - RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] - RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] - RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] + RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) + #RewriteRule (.+) $1?%1%2 [N,R,NE] + RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] + RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] + RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] + ## Intranet @@ -105,6 +117,7 @@ ScriptAlias /cgi-bin/koha/ "__INTRANET_CGI_DIR__/" ScriptAlias /index.html "__INTRANET_CGI_DIR__/mainpage.pl" ScriptAlias /search "__INTRANET_CGI_DIR__/search.pl" + Alias /plugin/ "__PLUGINS_DIR__/" ErrorLog __LOG_DIR__/koha-error_log # TransferLog __LOG_DIR__/koha-access.log SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml" @@ -119,6 +132,16 @@ ErrorDocument 404 /cgi-bin/koha/errors/404.pl ErrorDocument 500 /cgi-bin/koha/errors/500.pl + + Options -Indexes + + + # Secure internal stuff + + Order deny,allow + Deny from all + + mod_gzip_on yes mod_gzip_dechunk yes @@ -166,14 +189,18 @@ - RewriteEngine On -# Uncomment to turn on rewrite logging -# RewriteLog __LOG_DIR__/koha-intranet-rewrite.log -# RewriteLogLevel 1 + + # Rewrite Rules + RewriteEngine On + + # Uncomment to turn on rewrite logging + #RewriteLog __LOG_DIR__/koha-intranet-rewrite.log + #RewriteLogLevel 1 - RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) - RewriteRule (.+) $1?%1%2 [N,R,NE] - RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] - RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] - RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] + RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) + #RewriteRule (.+) $1?%1%2 [N,R,NE] + RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] + RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] + RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] +