2015-03-25 11:46:22 +00:00
|
|
|
Alias /bugzilla "/srv/www/bugzilla/"
|
|
|
|
|
2015-03-25 09:40:45 +00:00
|
|
|
<Directory "/srv/www/bugzilla">
|
2016-07-26 12:05:40 +00:00
|
|
|
|
2015-03-25 09:40:45 +00:00
|
|
|
AddHandler cgi-script .cgi
|
|
|
|
Options +ExecCGI +FollowSymLinks
|
|
|
|
DirectoryIndex index.cgi index.html
|
2016-01-03 06:16:50 +00:00
|
|
|
AllowOverride Limit FileInfo Indexes Options AuthConfig
|
2016-07-26 12:05:40 +00:00
|
|
|
|
2015-07-14 17:50:04 +00:00
|
|
|
<IfModule mod_version.c>
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</IfVersion>
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
Require all granted
|
|
|
|
</IfVersion>
|
|
|
|
</IfModule>
|
2015-03-25 11:46:22 +00:00
|
|
|
|
|
|
|
# Don't allow people to retrieve non-cgi executable files or our private data
|
2016-07-26 12:05:40 +00:00
|
|
|
<FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$>
|
|
|
|
<IfModule mod_version.c>
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Deny from all
|
|
|
|
</IfVersion>
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
Require all denied
|
|
|
|
</IfVersion>
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_version.c>
|
|
|
|
Deny from all
|
|
|
|
</IfModule>
|
|
|
|
</FilesMatch>
|
2015-03-25 11:46:22 +00:00
|
|
|
|
|
|
|
Options -Indexes
|
|
|
|
|
|
|
|
<IfModule mod_expires.c>
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
<IfModule mod_env.c>
|
2016-07-26 12:05:40 +00:00
|
|
|
<FilesMatch (\.js|\.css)$>
|
|
|
|
ExpiresActive On
|
|
|
|
# According to RFC 2616, "1 year in the future" means "never expire".
|
|
|
|
# We change the name of the file's URL whenever its modification date
|
|
|
|
# changes, so browsers can cache any individual JS or CSS URL forever.
|
|
|
|
# However, since all JS and CSS URLs involve a ? in them (for the changing
|
|
|
|
# name) we have to explicitly set an Expires header or browsers won't
|
|
|
|
# *ever* cache them.
|
|
|
|
ExpiresDefault "now plus 1 years"
|
|
|
|
Header append Cache-Control "public"
|
|
|
|
</FilesMatch>
|
|
|
|
|
|
|
|
# This lets Bugzilla know that we are properly sending Cache-Control
|
|
|
|
# and Expires headers for CSS and JS files.
|
|
|
|
SetEnv BZ_CACHE_CONTROL 1
|
|
|
|
</IfModule>
|
2015-03-25 11:46:22 +00:00
|
|
|
</IfModule>
|
|
|
|
</IfModule>
|
2016-07-26 12:05:40 +00:00
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
rewriteEngine On
|
|
|
|
RewriteOptions inherit
|
|
|
|
RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
|
2015-03-25 11:46:22 +00:00
|
|
|
</IfModule>
|
|
|
|
|
2015-03-25 09:40:45 +00:00
|
|
|
</Directory>
|