Commit ac859d2edeb4a74ce60ae9ba7a078cbe3ed8aba8

Authored by Athos
1 parent 90e47d78
Exists in master

update apache config template

Showing 1 changed file with 15 additions and 6 deletions   Show diff stats
util/copr-status-httpd.conf
... ... @@ -4,22 +4,30 @@
4 4 ErrorLog ${APACHE_LOG_DIR}/error.log
5 5 CustomLog ${APACHE_LOG_DIR}/access.log combined
6 6  
7   - <Directory /var/www/spb-copr-status/css>
  7 + <Directory /var/www/spb-copr-status/static/css>
8 8 AllowOverride None
9 9 Order allow,deny
10 10 Allow from all
11 11 Require all granted
12 12 </Directory>
13 13  
14   - <Directory /var/www/spb-copr-status/js>
  14 + <Directory /var/www/spb-copr-status/static/js>
15 15 AllowOverride None
16 16 Order allow,deny
17 17 Allow from all
18 18 Require all granted
19 19 </Directory>
20 20  
21   - Alias /css "/var/www/spb-copr-status/css"
22   - Alias /js "/var/www/spb-copr-status/js"
  21 + <Directory /var/www/spb-copr-status/static/fonts>
  22 + AllowOverride None
  23 + Order allow,deny
  24 + Allow from all
  25 + Require all granted
  26 + </Directory>
  27 +
  28 + Alias /static/css "/var/www/spb-copr-status/static/css"
  29 + Alias /static/js "/var/www/spb-copr-status/static/js"
  30 + Alias /static/fonts "/var/www/spb-copr-status/static/fonts"
23 31  
24 32 <Proxy *>
25 33 Order deny,allow
... ... @@ -27,8 +35,9 @@
27 35 </Proxy>
28 36 ProxyRequests Off
29 37 ProxyPreserveHost On
30   - ProxyPass /css !
31   - ProxyPass /js !
  38 + ProxyPass /static/css !
  39 + ProxyPass /static/js !
  40 + ProxyPass /static/fonts !
32 41 ProxyPass /copr http://localhost:5000 keepalive=On
33 42 ProxyPassReverse /copr http://localhost:5000
34 43 RequestHeader set X-Forwarded-HTTPS "0"
... ...