Dear Bruno. Not i am using only http. maybe I should delete the https config of my nginx file (443). But i need help for i can config the /etc/uwsgi/administrator.xml for deploy the application /home/www-data/web2py/applications/administrator with my domain administartor.mydomain.com Regards.
--- On Thu, 12/27/12, Bruno Rocha <rochacbr...@gmail.com> wrote: From: Bruno Rocha <rochacbr...@gmail.com> Subject: Re: [web2py] Deploy nginx + uwsgi To: web2py@googlegroups.com Date: Thursday, December 27, 2012, 11:47 PM I see something strange, your 80 port is using IP adress and 443 is using unix socket. Can you access using https:// ?? On Fri, Dec 28, 2012 at 1:43 AM, FERNANDO VILLARROEL <fvillarr...@yahoo.com> wrote: Dear All. I am trying to migrated my web2py applications from apache to nginx + uwsgi. So i did configured a Ubuntu Server, i follow the script : http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh My problem is i can't deploy mi domain: administrator.midomain.com, i received Bad Gateway. My /etc/nginx/administrator: server { listen 80; server_name administrator.mydomain.com; location ~* /(\w+)/static/ { root /home/www-data/web2py/applications/; } location / { uwsgi_pass 127.0.0.1:9001; #uwsgi_pass unix:///run/uwsgi/app/web2py/web2py.socket; include uwsgi_params; #uwsgi_param UWSGI_SCHEME $scheme; #uwsgi_param SERVER_SOFTWARE nginx/$nginx_version; } } server { listen 443; server_name administrator.mydomain.com; ssl on; ssl_certificate /etc/nginx/ssl/web2py.crt; ssl_certificate_key /etc/nginx/ssl/web2py.key; location / { #uwsgi_pass 127.0.0.1:9001; uwsgi_pass unix:///run/uwsgi/app/web2py/web2py.socket; include uwsgi_params; uwsgi_param UWSGI_SCHEME $scheme; uwsgi_param SERVER_SOFTWARE nginx/$nginx_version; } } I do not know How should the file /etc/uwsgi/administrator.xml? My deploy is running ok, when i write my wan IP of my ubuntu server on my Browser like Chrome, the welcome application show perfectly, but i told you i need help for configuration of uwsgi for i can deploy my virtualhost like apache: adminstrator.mydomain.com The route of the this application administrator is /home/www-data/web2py/applications/administrator I am not using Virtualenv on my ubuntu server. I hope you help for i can deploy my applications with nginx and uwsgi. Regards. Fernando. -- -- --