0
votes
1answer
32 views

Howto rewrite URLs with two nginx as reverse proxies to gunicorn/Django

I have a Django application, deployed with gunicorn on port 8000, on a VM with a backend nginx, port 80, on the same VM. The nginx config is: location / { proxy_http_version 1.1; ...
3
votes
1answer
218 views

What is wrong with this attempt to serve up static content? Does a Proxy/ReverseProxy trump Alias, or can I ask for Alias to trump proxy?

I'm working on getting Apache to serve up static files for a Django project. My VirtualHost has: Alias /static/ /home/jonathan/pragmatometer/static/ ProxyPass / http://localhost:8000/ ...
0
votes
1answer
466 views

Apache as a reverse proxy not working for gunicorn

My Goal is to let client connect through https connection but apache serve it to my application which is running on same server over http. Here is my minimalistic apache configuration file (for ...
0
votes
0answers
235 views

Setting up Django application on lighttpd behind apache reverse proxy

I have a Django (v. 1.3.1) app at http://some_other_example.com (it will be behind firewall) running on lighttpd server with fastcgi. I need make it available under http://example.com/myapp. It ...
0
votes
2answers
4k views

Nginx - when tunnel the url redirects without port number

My problem is very similar to this: nginx proxy pass redirects ignore port I am using nginx 1.0.14. I want to be able to ssh-tunnel into my Django website, so I can work remotely. I've tested a ...
2
votes
1answer
181 views

Apache with nginx front-end takes gets pegged 100% CPU with Django app

I recently launched a web app that gets constantly pegged at 100% CPU. My server is a 512 MB Linode with nginx sitting in front of Apache (MPM Worker) serving a Django app. This app is unusual in that ...
1
vote
1answer
393 views

Web server redirect to port 80

I need help for this problem. My django applications using mod_wsgi, apache and reverse proxy using nginx. the nginx is listen to port 80, and our apps is live inside VPS. And the MOD WSGI is in ...
2
votes
1answer
216 views

Reasons to have a use a reverse proxy on a website not serving static content (Django)?

For a website I'm developing all my static content is hosted offsite on a combination of S3/Cloudfront. I've been looking over a lot of tutorials for deploying a Django app into production and a lot ...
2
votes
2answers
858 views

Apache : Map one virtualhost to a subdirectory of another virtualhost

I'm trying to map one virtual host to a subdirectory of another virtual host, something like this http://host2.com -> http://host1.com/host2. At this moment, whenever I go to http://host2.com it ...
13
votes
1answer
3k views

Why is setting Nginx as a reverse proxy a good idea?

I have a Django site running on Gunicorn with a reverse proxy through Nginx. Isn't Nginx just an extra unnecessary overhead? How does adding that on top of Gunicorn help?
4
votes
3answers
518 views

What port should I use for my reverse proxy to Apache 2 from nginx?

I have nginx setup as the defacto port 80. I want to setup django+mod_wsgi on Apache2. I'm worried if I leave Apache2 as 80 it will cause a conflict. Is it better to avoid the headache and change ...
0
votes
1answer
1k views

Django running on Apache+WSGI and apache SSL proxying

I'm trying to rewrite all requests for my Django server running on apache+WSGI ( inside my local network) and configured as the WSGI's wiki how to, except that I set a virtualhost for it. The server ...