X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=etc%2Fkoha-httpd.conf;h=f9a1970767e35331224193a9efb85b1688ac34ef;hb=cbe0d7bebdd0de8e15d1f5fe3cb12da3160baa64;hp=dc82d08a394edb563f9766d2fbd58aee32ff78a7;hpb=068e5be6395088793aeab66d67c36c2b9da2c5d9;p=koha.git diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index dc82d08a39..f9a1970767 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -20,6 +20,23 @@ SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" + # This syntax allows you to override a system preference + # for a given virtual host. Use with caution! + # You should add all the system preferences you override + # in one or more vhosts to the environment variable + # OVERRIDE_SYSPREF_NAMES for your staff intranet vhost + # SetEnv OVERRIDE_SYSPREF_PrefName Value + + + Options -Indexes + + + # Secure internal stuff + + Order deny,allow + Deny from all + + mod_gzip_on yes mod_gzip_dechunk yes @@ -82,18 +99,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 +124,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" @@ -113,12 +133,27 @@ SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" Options +FollowSymLinks + # If you are overriding any system preferences, + # list them in this variable so the preference editor + # knows that they have been overridden. + # SetEnv OVERRIDE_SYSPREF_NAMES "Pref1,Pref2,Pref3" + ErrorDocument 400 /cgi-bin/koha/errors/400.pl ErrorDocument 401 /cgi-bin/koha/errors/401.pl ErrorDocument 403 /cgi-bin/koha/errors/403.pl 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 +201,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] +