Commit ac859d2edeb4a74ce60ae9ba7a078cbe3ed8aba8
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,22 +4,30 @@ | ||
4 | ErrorLog ${APACHE_LOG_DIR}/error.log | 4 | ErrorLog ${APACHE_LOG_DIR}/error.log |
5 | CustomLog ${APACHE_LOG_DIR}/access.log combined | 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 | AllowOverride None | 8 | AllowOverride None |
9 | Order allow,deny | 9 | Order allow,deny |
10 | Allow from all | 10 | Allow from all |
11 | Require all granted | 11 | Require all granted |
12 | </Directory> | 12 | </Directory> |
13 | 13 | ||
14 | - <Directory /var/www/spb-copr-status/js> | 14 | + <Directory /var/www/spb-copr-status/static/js> |
15 | AllowOverride None | 15 | AllowOverride None |
16 | Order allow,deny | 16 | Order allow,deny |
17 | Allow from all | 17 | Allow from all |
18 | Require all granted | 18 | Require all granted |
19 | </Directory> | 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 | <Proxy *> | 32 | <Proxy *> |
25 | Order deny,allow | 33 | Order deny,allow |
@@ -27,8 +35,9 @@ | @@ -27,8 +35,9 @@ | ||
27 | </Proxy> | 35 | </Proxy> |
28 | ProxyRequests Off | 36 | ProxyRequests Off |
29 | ProxyPreserveHost On | 37 | ProxyPreserveHost On |
30 | - ProxyPass /css ! | ||
31 | - ProxyPass /js ! | 38 | + ProxyPass /static/css ! |
39 | + ProxyPass /static/js ! | ||
40 | + ProxyPass /static/fonts ! | ||
32 | ProxyPass /copr http://localhost:5000 keepalive=On | 41 | ProxyPass /copr http://localhost:5000 keepalive=On |
33 | ProxyPassReverse /copr http://localhost:5000 | 42 | ProxyPassReverse /copr http://localhost:5000 |
34 | RequestHeader set X-Forwarded-HTTPS "0" | 43 | RequestHeader set X-Forwarded-HTTPS "0" |