<div>worker_processes 1;</div><div>user nginx nginx;</div><div><br></div><div>events {</div><div> worker_connections 1024;</div><div>}</div><div><br></div><div>http {</div><div> include mime.types;</div><div>
default_type application/octet-stream;</div><div> sendfile on;</div><div> keepalive_timeout 65;</div><div><br></div><div> # I have to set min length to 0 and http version to 1.0 or it won't compress</div>
<div> # the XML-RPC (SCGI) responses. Those responses can be quite large if you're</div><div> # using many torrent files.</div><div> gzip on;</div><div> gzip_min_length 0;</div><div> gzip_http_version 1.0;</div>
<div> gzip_types text/plain text/xml application/xml application/json text/css application/x-javascript text/javascript$</div><div><br></div><div><br></div><div> server {</div><div> listen 80;</div>
<div> #error_log /var/log/nginx/error.log error;</div><div> server_name localhost;</div><div><br></div><div> location ~ /\.ht {</div><div> deny all;</div>
<div> }</div><div><br></div><div> location ~ /\.svn {</div><div> deny all;</div><div> }</div><div><br></div><div> location / {</div><div> root /home/sites/forum/;</div>
<div> index index.php index.html index.htm;</div><div> }</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>location ~ \.php$ {</div><div> root "/home/sites/forum/";</div>
<div> fastcgi_pass unix:/etc/phpcgi/php-cgi.socket;</div><div> fastcgi_index index.php;</div><div> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</div>
<div> include fastcgi_params;</div><div> }</div><div> location ~ ^/django(?P<django_path>.*?)$ {</div><div> uwsgi_param PATH_INFO $django_path;</div>
<div> uwsgi_pass <a href="http://127.0.0.1:9001">127.0.0.1:9001</a>;</div><div> include uwsgi_params;</div><div> }</div><div><br></div><div><br></div><div># location ~ ^/RPC00001$ {</div>
<div># include scgi_params;</div><div># scgi_pass unix:/home/rtorrent/rtorrent/session/rpc.socket;</div><div># auth_basic "idk";</div><div># auth_basic_user_file "/usr/local/nginx/rutorrent_passwd_rtorrent";</div>
<div># }</div><div> }</div><div> server {</div><div> listen 443;</div><div> server_name localhost;</div><div> auth_basic "My ruTorrent web site";</div>
<div> auth_basic_user_file "/usr/local/nginx/rutorrent_passwd";</div><div><br></div><div> ssl on;</div><div> ssl_certificate /usr/local/nginx/rutorrent.pem;</div><div>
ssl_certificate_key /usr/local/nginx/rutorrent.pem;</div><div><br></div><div> location ~ ^/rutorrent/(?:share|conf) {</div><div> deny all;</div><div> }</div>
<div><br></div><div> location ~ /\.ht {</div><div> deny all;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> }</div><div><br></div><div> location / {</div>
<div> root /var/rutorrent;</div><div> index index.php index.html index.htm;</div><div> }</div><div><br></div><div> location ~ \.php$ {</div><div>
root "/var/rutorrent";</div><div> fastcgi_pass unix:/etc/phpcgi/php-cgi.socket;</div><div> fastcgi_index index.php;</div><div> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</div>
<div> include fastcgi_params;</div><div> }</div><div><br></div><div># location ~ ^/RPC00001$ {</div><div># include scgi_params;</div><div># scgi_pass unix:/home/rtorrent/rtorrent/session/rpc.socket;</div>
<div># auth_basic "My ruTorrent web site";</div><div># auth_basic_user_file "/usr/local/nginx/rutorrent_passwd_rtorrent";</div><div># }</div><div>
}</div><div>}</div><div><br></div><div>And I don't think it was compiled with debugging support :|</div><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 3:35 PM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:ne@vbart.ru">ne@vbart.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thursday 16 February 2012 00:15:51 adam estes wrote:<br>
> It seems to actually be rewriting the url now. The issue is with how its<br>
> doing it<br>
><br>
> when I visit 69.x.x.x./django/admin/<br>
><br>
> it rewrites it to 69.x.x.x/admin/<br>
><br>
> which is then processed by nginx again I'm guessing because it loads the<br>
> IPB admin folder, and not the django admin url like it should if it was<br>
> being handled by django.<br>
><br>
<br>
</div>If you didn't set any "rewrite" then nginx doesn't rewrite url and it doesn't<br>
process it again. The "location" and "uwsgi_param" directives can't do that.<br>
<br>
Could you show your full config?<br>
<div class="HOEnZb"><div class="h5"><br>
wbr, Valentin V. Bartenev<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>