Skip to content

Instantly share code, notes, and snippets.

@nielk
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save nielk/9c5f80cb45287a479ebc to your computer and use it in GitHub Desktop.

Select an option

Save nielk/9c5f80cb45287a479ebc to your computer and use it in GitHub Desktop.
nodejs proxy pass apache

setup virtual host

<VirtualHost *:80>
    ServerName formations.preprod.lespolypodes.com
    DocumentRoot /var/www/preprod/polypodes-formations
    #php_value auto_prepend_file "/var/www/preprod/document_root.php"

    ProxyRequests off

    <Proxy *>
            Order deny,allow
            Allow from all
    </Proxy>

    ProxyPass / http://localhost:8080/ retry=1 acquire=3000 timeout=600 Keepalive=On

    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

$ sudo service apache2 reload

load module apache

$ sudo a2enmod proxy

$ sudo a2enmod proxy_http

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment