Skip to content

Instantly share code, notes, and snippets.

@aa21
Last active September 2, 2015 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aa21/245160f7c2ca379b5e5c to your computer and use it in GitHub Desktop.
Save aa21/245160f7c2ca379b5e5c to your computer and use it in GitHub Desktop.
# Serve Static Files from public folder
app.use(express.static('public'));
# Serve "public" folder's files as Static Files from path "/static"
app.use('/static', express.static('public'));
# Hosting apache & NodeJS on same server
<VirtualHost *:80>
ServerName bms.komiapp.com
ProxyPreserveHost on
ProxyPass / http://localhost:8888/
</VirtualHost>
#Making changes to installed modules
-> fork from github
-> make changes to git
-> npm install https://github.com/<username>/<repository>/tarball/master
# Express generator
npm install -g express-generator
express expressproject
cd expressproject
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment