mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
40 lines
950 B
Plaintext
40 lines
950 B
Plaintext
DocumentRoot /srv/web/fedoraproject.org/
|
|
|
|
SetEnvIf Request_URI "^/([[:alpha:]]{2,3}(?:-[[:alpha:]]{2,4})?)/" LANGUAGE=$1
|
|
<If "-n '%{env:LANGUAGE}' && -f '%{CONTEXT_DOCUMENT_ROOT}/%{env:LANGUAGE}/404/index.html'">
|
|
ErrorDocument 404 /%{env:LANGUAGE}/404/index.html
|
|
</If>
|
|
<Else>
|
|
ErrorDocument 404 /404.html
|
|
</Else>
|
|
|
|
FileETag MTime Size
|
|
|
|
AddType application/octet-stream .dmg
|
|
AddType image/svg+xml .svg
|
|
AddType image/svg+xml .svgz
|
|
AddEncoding gzip .svgz
|
|
<FilesMatch \.svgz$>
|
|
<IfModule mod_gzip.c>
|
|
mod_gzip_on No
|
|
</IfModule>
|
|
</FilesMatch>
|
|
|
|
<FilesMatch \-webfont>
|
|
SetEnvIfNoCase Origin "https?://.*\.fedora(project|people|hosted)\.org" ACAO=$0
|
|
Header set Access-Control-Allow-Origin %{ACAO}e env=ACAO
|
|
</FilesMatch>
|
|
|
|
<Location /static/checksums/>
|
|
Options Indexes
|
|
</Location>
|
|
|
|
# for osx Fedora Media Writer
|
|
AddType application/octet-stream .dmg
|
|
|
|
Alias /fmw /srv/web/fmw/
|
|
|
|
<Directory /srv/web/fmw>
|
|
Require all granted
|
|
</Directory>
|