Skip to content

Instantly share code, notes, and snippets.

@chalasr
Last active December 23, 2015 16:51
Show Gist options
  • Save chalasr/44d15e754b20520157b0 to your computer and use it in GitHub Desktop.
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
<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>
{
"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