Re: configure nginx

2020-06-22 Thread Jonathan Spicer
>From the error message it appears something is already listening on port 80. Do you apache installed? Or do you have python running as a web server? If something is already using the same port number the service can't start. Kind regards Johnny On Sun, 21 Jun 2020 at 05:21, Giovanni Silva

Re: configure nginx

2020-06-22 Thread 'Peter van der Does' via Django users
There's already a process running listening on 0.0.0.0:80 On 6/21/20 12:21 AM, Giovanni Silva wrote: > I have an Error: > > nginx.service - A high performance web server and a reverse proxy server >      Loaded: loaded (/lib/systemd/system/nginx.service; enabled; > vendor

configure nginx

2020-06-20 Thread Giovanni Silva
I have an Error: nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-06-21 06:17:48 CEST; 35s ago Docs: man:nginx(8)

Re: How to configure NGINX to run Django app in a subpath?

2017-11-30 Thread Luca Moiana
Nothing wrong, but havign set up the system I didn't want to change software cause I'm not that savvy. Anyway, I ended up hiring someone on Fivrr and got the job done. I was closed, but not closed enough Thank for you help !!! Il giorno mercoledì 29 novembre 2017 22:56:37 UTC+1, Etienne

Re: How to configure NGINX to run Django app in a subpath?

2017-11-29 Thread Etienne Robillard
Whats wrong in using FastCGI for your specific use-case ? Etienne Le 2017-11-29 à 15:45, Luca Moiana a écrit : Following this tutorial I came up with this NGINX server: | upstream app_name { server unix:/home/geouser/pmapp/pmapp.sock fail_timeout=10; } server { listen 80; root

Re: How to configure NGINX to run Django app in a subpath?

2017-11-29 Thread Luca Moiana
Following this tutorial I came up with this NGINX server: upstream app_name { server unix:/home/geouser/pmapp/pmapp.sock fail_timeout=10; } server { listen 80; root /home/geouser/pmapp; server_name www.officinecartografiche.it, officinecartografiche.it, 207.154.206.172;

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Matemática A3K
Something like this should work: https://stackoverflow.com/a/20998131/8930660 and change STATIC_URL and MEDIA_URL Also, the FORCE_SCRIPT_NAME should also work, but if it doesn't, the first is the most "manual" thing you can do, I think... Then you have no need to have 2 nginx confs, just put

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
Googling around I found this page http://albertoconnor.ca/hosting-django-under-different-locations.html but ain't working for me Il giorno lunedì 27 novembre 2017 11:10:50 UTC+1, Etienne Robillard ha scritto: > > I have not been able to solve this problem with uWSGI. Apparently, uWSGI > is

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
Thanks, I read you tutorial but I don't get where I should set my subpath? thanks a lot Il giorno domenica 26 novembre 2017 21:06:56 UTC+1, k2527806 ha scritto: > > https://jee-appy.blogspot.com/2017/01/deply-django-with-nginx.html > > On Sun, Nov 26, 2017 at 11:26 PM, Luca Moiana

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
Thanks for your reply, although it sounds hard for a noob like me. Just to understand, the trick should be done on Gunicorn or on NGINX ? Il giorno lunedì 27 novembre 2017 11:29:01 UTC+1, Matemática A3K ha scritto: > > That's good to know, I tried to do it some time ago, it was an attempt of >

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
Thanks for your replly, I'll look into the link you suggested. As for the routing / urls adding FORCE_SCRIPT_NAME = '/pmapp' to settings.py isnt' enough? Il giorno domenica 26 novembre 2017 21:42:41 UTC+1, Matemática A3K ha scritto: > > I don't know / remember how to do it in Gunicorn, but

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Matemática A3K
That's good to know, I tried to do it some time ago, it was an attempt of a "sort-of-tennats" which at the didn't go so I stop doing it. At that moment, I remember trying with gunicorn without success and I was near success with uWSGi but didn't make it at that time. I supposed that know would be

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Etienne Robillard
I have not been able to solve this problem with uWSGI. Apparently, uWSGI is not using the same internal routing semantics than FastCGI. See: https://forum.nginx.org/read.php?2,275684,275706 Etienne Le 2017-11-26 à 15:41, Matemática A3K a écrit : I don't know / remember how to do it in

Re: How to configure NGINX to run Django app in a subpath?

2017-11-26 Thread Matemática A3K
I don't know / remember how to do it in Gunicorn, but here is an example with uWSGI: https://stackoverflow.com/questions/35792409/nginx-serving-django-in-a-subdirectory-through-uwsgi The main thing is that you will have to deal with "/pmapp" prefix in your routing / urls. You can deal with this

Re: How to configure NGINX to run Django app in a subpath?

2017-11-26 Thread mohammad k
https://jee-appy.blogspot.com/2017/01/deply-django-with-nginx.html On Sun, Nov 26, 2017 at 11:26 PM, Luca Moiana wrote: > Hi, > > Sorry for the slight OT but after days of search I have no clue. > > > Following this DigitalOcean tutorial >

How to configure NGINX to run Django app in a subpath?

2017-11-26 Thread Luca Moiana
Hi, Sorry for the slight OT but after days of search I have no clue. Following this DigitalOcean tutorial I was able to setup Django + Postgres + Gunicorn + NGINX running

Re: How to configure nginx to serve mail for django

2012-11-14 Thread Chris Pagnutti
Webmail function as a django application = Totally awesome idea. I'll probably need some other email addresses for non-administrator users, so a friendly client would be nice. Roundcube should do the trick for now, but integrating the webmail into the django app itself would be rad. On Wed,

Re: How to configure nginx to serve mail for django

2012-11-14 Thread Chris Pagnutti
Good point. At the moment, sending mail is my priority, but eventually I'll want to receive and view mail as well. Most guides I can find relate to setting up both sides of the story, so I figure I might as well just do it all at once. On Tuesday, November 13, 2012 2:39:11 PM UTC-5, Dennis

Re: How to configure nginx to serve mail for django

2012-11-12 Thread Chris Pagnutti
Not sure. It's VPS and I was handed a Debian install with practically nothing on it. I even had to install make to be able to compile nginx. I'm looking into setting up Postfix+Dovecot+Roundcube (or SquirrelMail) On Mon, Nov 12, 2012 at 8:37 PM, Dennis Lee Bieber wrote:

Re: How to configure nginx to serve mail for django

2012-11-12 Thread Chris Pagnutti
Yeah. Makes good sense. I guess that Postfix is one of the more popular options. Is there any reason why I should NOT use postfix. On Monday, November 12, 2012 1:47:03 PM UTC-5, Nikolas Stevenson-Molnar wrote: > > The nginx configuration examples you link to are all POP3 or IMAP. > Sending

Re: How to configure nginx to serve mail for django

2012-11-12 Thread Nikolas Stevenson-Molnar
The nginx configuration examples you link to are all POP3 or IMAP. Sending mail is SMTP. But even then, you need an SMTP server to proxy /to/. In these examples, nginx is simply acting as a proxy, not as an actual mail server. I would recommend using a bona fide SMTP server. Or use one already

How to configure nginx to serve mail for django

2012-11-12 Thread Chris Pagnutti
Hi. I'm using nginx+uwsgi to serve a django app. I'd like to configure it to be able to send mail with django's send_mail() and send_mass_mail() functions. I've played with the nginx configuration files using the examples here http://wiki.nginx.org/Configuration#Mail_examples I have a very