Skip to content

Instantly share code, notes, and snippets.

@lavoiesl
Last active October 10, 2015 12:58
Show Gist options
  • Select an option

  • Save lavoiesl/3693967 to your computer and use it in GitHub Desktop.

Select an option

Save lavoiesl/3693967 to your computer and use it in GitHub Desktop.
Route request to proxy
<VirtualHost *:80>
ServerName dev.lavoie.sl
ServerAlias *.dev.lavoie.sl
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://192.168.42.200/
</VirtualHost>
server {
server_name .dev.lavoie.sl;
proxy_pass http://192.168.42.200/;
proxy_buffering off;
proxy_set_header Host $host;
proxy_connect_timeout 10s;
proxy_read_timeout 60s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment