nginx rpoxy - site config


/ Published in: Other
Save to your folder(s)

Create one of these per site, making sure to adjust the values...$fdqn should be replaced with the dns name being processed, and http://192.168.1.xxx/ should be replaced with the internal address of the server hosting that site.


Copy this code and paste it in your HTML
  1. server {
  2. listen 80;
  3. server_name $fqdn;
  4. access_log /var/log/nginx/$fqdn.access.log;
  5. location / {
  6. proxy_pass http://192.168.1.xxx/;
  7. include /etc/nginx/proxy.conf;
  8. }
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.