copr-status-httpd.conf 1.16 KB
<VirtualHost *:80>
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	<Directory /var/www/spb-copr-status/static/css>
	    	AllowOverride None
    		Order allow,deny
    		Allow from all
		Require all granted
	</Directory>

	<Directory /var/www/spb-copr-status/static/js>
	    	AllowOverride None
    		Order allow,deny
    		Allow from all
		Require all granted
	</Directory>

	<Directory /var/www/spb-copr-status/static/fonts>
	    	AllowOverride None
    		Order allow,deny
    		Allow from all
		Require all granted
	</Directory>

	Alias /static/css "/var/www/spb-copr-status/static/css"
	Alias /static/js "/var/www/spb-copr-status/static/js"
	Alias /static/fonts "/var/www/spb-copr-status/static/fonts"

	<Proxy *>
	    Order deny,allow
	    Allow from all
	</Proxy>
	ProxyRequests Off
	ProxyPreserveHost On
	ProxyPass /static/css !
	ProxyPass /static/js !
	ProxyPass /static/fonts !
	ProxyPass /copr http://localhost:5000 keepalive=On
	ProxyPassReverse /copr http://localhost:5000
	RequestHeader set X-Forwarded-HTTPS "0"

</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet