Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 802 Bytes

Sample NGINX configuration.md

File metadata and controls

34 lines (26 loc) · 802 Bytes

NGINX configuration for path based routing

WebSubSubscriber will be accessible from http://your.domain.here/websub

upstream websub {
  server 127.0.0.1:8080;
}

server {
  server_name your.domain.here; # Replace your.domain.here with your actual domain
  location /websub/ { # Note the slashes surrounding the location
    proxy_pass http://websub/; # Note the slash at the end proxy_pass
  }
}

NGINX configuration for domain based routing

WebSubSubscriber will be accessible from http://your.domain.here

upstream websub {
  server 127.0.0.1:8080;
}

server {
  server_name your.domain.here; # Replace your.domain.here with your actual domain
  location / { # Note the only slash on the location
    proxy_pass http://websub/; # Note the slash at the end proxy_pass
  }
}