Created
January 5, 2016 09:22
-
-
Save VinceMacBuche/1cd120397c642e0a70f7 to your computer and use it in GitHub Desktop.
/etc/httpd/conf.d/ncf-builder.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerAdmin webmaster@localhost | |
| LogLevel debug | |
| DocumentRoot /dev/null | |
| # Rudder webapp | |
| RewriteEngine on | |
| RewriteRule ^/$ /rudder [R] | |
| ProxyPass "/ncf" "http://localhost:5000" | |
| ProxyPassReverse "/ncf" "http://localhost:5000" | |
| ProxyPass "/rudder" "http://localhost:8042/rudder" | |
| ProxyPassReverse "/rudder" "http://localhost:8042/rudder" | |
| ProxyPassReverseCookiePath /rudder / | |
| ProxyRequests Off | |
| # Local reverse proxy authorization override | |
| # Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu) | |
| <Proxy http://localhost:5000*> | |
| Order deny,allow | |
| Allow from all | |
| </Proxy> | |
| Alias /ncf-builder /home/vincent/ncf/builder | |
| <Directory "/path/to/ncf/builder"> | |
| AllowOverride All | |
| # New directive needed in Apache 2.4.3: | |
| Require all granted | |
| </Directory> | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment