Nginx only serves 1 App

2018-05-15 Thread Nginx-Chris
Root Server with Ubuntu 16.04. Nginx Version: 1.10.3 I have an Nginx server that serves 1 Application: An open source Cloud Server from Seafile that listens on cloud.mydomain.com I now tried to add another Application to my server: A Mattermost server that should listen on chat.mydomain.com When

Re: Nginx only serves 1 App

2018-05-15 Thread Friscia, Michael
What happens if you only use one config file and put all of that in it? Nothing really stands out to me in your config. I run about 600 domain names through one Nginx server with many sub-domains in separate server blocks. I've had issues where a subdomain was not served correctly before. I end

Blank Pages

2018-05-15 Thread Friscia, Michael
I’m wondering if there’s a simple way to solve this problem. The upstream application sometimes returns a blank 500 error which Nginx then serves as the blank page. This is working as intended. But what I’d like Nginx to do is display a custom error page if the upstream 500 error is blank, but i

Re: Nginx only serves 1 App

2018-05-15 Thread Moshe Katz
Looks to me like your problem is that Seafile is using HTTPS but Mattermost is not. That said, I don't understand how you are able to get to Mattermost at all, since you are setting HSTS headers that should prevent your browser from going to a non-secure page on your domain. Add HTTPS configurati

Re: Blank Pages

2018-05-15 Thread Maxim Dounin
Hello! On Tue, May 15, 2018 at 12:12:10PM +, Friscia, Michael wrote: > I’m wondering if there’s a simple way to solve this problem. > > The upstream application sometimes returns a blank 500 error > which Nginx then serves as the blank page. This is working as > intended. But what I’d like

Re: Blank Pages

2018-05-15 Thread Friscia, Michael
Actually I think that solves my problem and I had not realized that. I just need to remove my error_page declaration from the global file and specify within each server block instead which is probably better anyway. Thank you! ___ Michael Friscia Office o

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

2018-05-15 Thread Quintin Par
Thank you so much for this Peter. Very helpful. For what it’s worth, I run a static wordpress website. So the configuration should not be very complicated. The link that you provided also led me to https://github.com/perusio/wordpress-nginx

Nginx Rate limiting for HTTPS requests

2018-05-15 Thread rickGsp
Hi, I have been experimenting with Nginx rate limiting and I need some inputs on it’s working and what can be expected from this feature. I see some difference in what I expected from this feature going by the documentation and what I observed in my experiments. Here is the detail on my testing:

Re: Connection refused

2018-05-15 Thread Ricky Gutierrez
Any help? El lun., 14 may. 2018 20:02, Ricky Gutierrez escribió: > hello list, I have a reverse proxy with nginx front end and I have the > backend with nginx some applications in php7 with mariadb, reviewing > the log I see a lot of errors like this: > > 2018/05/09 17:44:58 [error] 14633#14633:

Re: Nginx Rate limiting for HTTPS requests

2018-05-15 Thread Maxim Dounin
Hello! On Tue, May 15, 2018 at 12:20:31PM -0400, rickGsp wrote: > I have been experimenting with Nginx rate limiting and I need some inputs on > it’s working and what can be expected from this feature. I see some > difference in what I expected from this feature going by the documentation > and w

Re: Nginx only serves 1 App

2018-05-15 Thread Nginx-Chris
Dear Moshe I did switch off the seafile configuration and that means that the normal chat.mydomain.com works again with nginx., I did then do > sudo certbot --nginx and the sitechat.mydomain.com now runs on with SSL. So then I switch seafile conf on again --> Seafile works as always. AND mat

Re: inheritance of proxy_http_version and proxy_set_header

2018-05-15 Thread Francis Daly
On Sat, May 12, 2018 at 11:18:23AM -0700, Joe Doe wrote: Hi there, > Here is the config with some info redacted. The only difference between the > mirror that inherited the setting and the ones not is http vs https. For > the time being, to get around the issue, the settings to use keep-alive for

Re: Nginx only serves 1 App

2018-05-15 Thread Moshe Katz
That last "# managed by Certbot" section looks wrong - it shouldn't be using "if ($host = ...", since that's inefficient and there are much better ways to do it. I have a very similar server, so here are the config files I use for it. I don't like pasting them into emails, so I made a GitHub Gist:

Re: Nginx only serves 1 App

2018-05-15 Thread Nginx-Chris
Thanks a lot Moshe for all the efforts. The gist is pretty cool. I will check it out and have a go with it. I will also look closer at the config: > include /etc/letsencrypt/options-ssl-nginx.conf; Maybe there is something in there that's strange. I will get back to you here in this thread.

Re: Nginx only serves 1 App

2018-05-15 Thread Nginx-Chris
The config that you propose does not require to switch nginx off for letsencrypt refreshs, correct? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279794,279810#msg-279810 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailm

Re: Nginx only serves 1 App

2018-05-15 Thread Nginx-Chris
Here is what makes everything work ok: In the cloud.conf (Seafile) I deleted the "http2" in the server part that listens on port 80 and redirects. It looks like this now: server { listen 80; listen [::]:80; server_name cloud.mydomain.com; rewrite ^ https://$http_host$re

Nginx redirection

2018-05-15 Thread Enrico
Hi, I have a nginx server (called mynginxserver) and need to redirect some urls : I want to have all url with the string tso: http://www.mynginxserver.com/XXtsoX redirected to https://myserver.com/XXtsoX if the string tso is in the url and redirect to http://www.mynottsoserve