Skip to content

Instantly share code, notes, and snippets.

@VinceMacBuche
Created January 5, 2016 09:22
Show Gist options
  • Select an option

  • Save VinceMacBuche/1cd120397c642e0a70f7 to your computer and use it in GitHub Desktop.

Select an option

Save VinceMacBuche/1cd120397c642e0a70f7 to your computer and use it in GitHub Desktop.
/etc/httpd/conf.d/ncf-builder.conf
<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