Last active
December 23, 2015 16:51
-
-
Save chalasr/44d15e754b20520157b0 to your computer and use it in GitHub Desktop.
Working vhost for get content of yourdomain.fr:3000 by browsing yourdomain.fr
This file contains 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> | |
ServerName yourdomain.fr | |
ServerAlias www.yourdomain.fr | |
ProxyRequests off | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
<Location /> | |
ProxyPass http://yourdomain.fr:3000/ | |
ProxyPassReverse http://yourdomain.fr:3000/ | |
</Location> | |
</VirtualHost> |
This file contains 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
{ | |
"apps": [ | |
{ | |
"name": "Example", | |
"script": "app.js", | |
"env": { | |
"COMMON_VARIABLE": "true" | |
}, | |
"env_production": { | |
"NODE_ENV": "production" | |
} | |
} | |
], | |
"deploy": { | |
"production": { | |
"user": "chalas_r", | |
"host": "chalasdev.fr", | |
"ref": "origin/master", | |
"repo": "git@github.com:{user}/{repo}.git", | |
"path": "/var/www/html", | |
"post-deploy": "npm install; pm2 restart app" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment