This is my nginx config.

  1. server {
  2. listen blog.ultraera.org:80;
  3. server_name blog.ultraera.org;
  4. location / {
  5. proxy_set_header X-Real-IP $remote_addr;
  6. proxy_set_header Host $http_host;
  7. proxy_pass http://127.0.0.1:2368;
  8. }
  9. }
  10. server {
  11. listen piwik.ultraera.org:80;
  12. server_name piwik.ultraera.org;
  13. location / {
  14. proxy_set_header X-Real-IP $remote_addr;
  15. proxy_set_header Host $http_host;
  16. proxy_pass http://127.0.0.1:2080;
  17. }
  18. }