title: NGINX passing requests to Pylons and relative URLs
body: <p>I have NGINX running on port 8080. I have the following setup in my NGINX conf file.</p>
  
  <pre><code>server {
      listen       8080;
      server_name  domain.com;
  
  location / {
          #root   /usr/share/nginx/html;
          #index  index.html index.htm;
          proxy_pass http://127.0.0.1:80;
          proxy_redirect http://127.0.0.1:80  http://domain.com;
      }
  </code></pre>
  
  <p>These rules work correctly as far as I can tell. The only issue I run into is when Pylons gets a request for a relative URL it is using <a href="http://127.0.0.1/linkto/something" rel="nofollow">http://127.0.0.1/linkto/something</a> instead of <a href="http://domain.com:8080/linkto/something" rel="nofollow">http://domain.com:8080/linkto/something</a>. I believe I am missing something in my Pylons configuration, if you have any advice or need additional information just let me know. Thanks in advance for any assistance on this.</p>