Skip to content

Instantly share code, notes, and snippets.

@peterk
Created February 19, 2016 14:27
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 peterk/5c8701ad51c40e10ad89 to your computer and use it in GitHub Desktop.
Save peterk/5c8701ad51c40e10ad89 to your computer and use it in GitHub Desktop.
ext_ip="10.0.0.1" # Change this value to your vultr IP
server "default" {
listen on $ext_ip port 80
}
types {
text/css css ;
text/html htm html ;
text/txt txt ;
image/gif gif ;
image/jpeg jpg jpeg ;
image/png png ;
application/javascript js ;
application/xml xml ;
}
server "www.example.net" {
listen on $ext_ip port 80
root "/htdocs/example.net"
}
server "www.example.com" {
listen on $ext_ip port 80
root "/htdocs/example.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment