Commit 1a035c1aacaee1554be18660f1a53fe8f30f558b
1 parent
e103c8d4
Exists in
master
and in
2 other branches
Add apache config file draft
Signed-off-by: Athos Ribeiro <athoscribeiro@gmail.com> Signed-off-by: Maxwell Almeida <llewxem150@gmail.com>
Showing
1 changed file
with
38 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,38 @@ |
1 | +<VirtualHost *:80> | |
2 | + ServerAdmin webmaster@localhost | |
3 | + DocumentRoot /var/www/ | |
4 | + ErrorLog ${APACHE_LOG_DIR}/error.log | |
5 | + CustomLog ${APACHE_LOG_DIR}/access.log combined | |
6 | + | |
7 | + <Directory /var/www/spb-copr-status/css> | |
8 | + AllowOverride None | |
9 | + Order allow,deny | |
10 | + Allow from all | |
11 | + Require all granted | |
12 | + </Directory> | |
13 | + | |
14 | + <Directory /var/www/spb-copr-status/js> | |
15 | + AllowOverride None | |
16 | + Order allow,deny | |
17 | + Allow from all | |
18 | + Require all granted | |
19 | + </Directory> | |
20 | + | |
21 | + Alias /css "/var/www/spb-copr-status/css" | |
22 | + Alias /js "/var/www/spb-copr-status/js" | |
23 | + | |
24 | + <Proxy *> | |
25 | + Order deny,allow | |
26 | + Allow from all | |
27 | + </Proxy> | |
28 | + ProxyRequests Off | |
29 | + ProxyPreserveHost On | |
30 | + ProxyPass /css ! | |
31 | + ProxyPass /js ! | |
32 | + ProxyPass /copr http://localhost:5000 keepalive=On | |
33 | + ProxyPassReverse /copr http://localhost:5000 | |
34 | + RequestHeader set X-Forwarded-HTTPS "0" | |
35 | + | |
36 | +</VirtualHost> | |
37 | + | |
38 | +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet | ... | ... |