Fix httpd config o koji.stg
Partially reverts commit061ae15
, which broken working config. The intention of061ae15
was to remove only code specific to secondary arches, but accidentally stg-specific code was removed too.
This commit is contained in:
parent
8bea5c3bda
commit
64bff7f658
1 changed files with 16 additions and 0 deletions
|
@ -65,6 +65,22 @@ Alias /buildgroups "/mnt/koji/buildgroups/"
|
|||
Require all granted
|
||||
</Directory>
|
||||
|
||||
{% if env == "production" %}
|
||||
# use redirects for compose and packages locations
|
||||
RewriteRule ^/compose(.+) https://kojipkgs.fedoraproject.org/compose$1 [R=301,L]
|
||||
RewriteRule ^/packages(.+) https://kojipkgs.fedoraproject.org/packages$1 [R=301,L]
|
||||
{% else %}
|
||||
Alias /compose "/mnt/koji/compose/"
|
||||
|
||||
<Directory "/mnt/koji/compose/">
|
||||
Options Indexes FollowSymLinks
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
Alias /packages "/mnt/koji/packages/"
|
||||
|
||||
<Directory "/mnt/koji/packages/">
|
||||
Options Indexes FollowSymLinks
|
||||
Require all granted
|
||||
</Directory>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue