Re: nginx reverse proxy proxy_pass weirdness

2019-12-19 Thread Francis Daly
On Wed, Dec 18, 2019 at 12:35:22PM -0500, deeztek wrote: Hi there, > server { > listen 80 default_server; > return 444; > } > > Should take care of it? Yes. (So long as every explicit-or-implicit "listen" directive is equivalent to "listen 80", which it probably is.) > How wo

Re: nginx reverse proxy proxy_pass weirdness

2019-12-18 Thread deeztek
okay that explains it. I appreciate that. So, a default config with the following: server { listen 80 default_server; return 444; } Should take care of it? How would I got about doing a default SSL config since it would complain about the certificate? Thanks Posted at Ngin

Re: nginx reverse proxy proxy_pass weirdness

2019-12-18 Thread Francis Daly
On Wed, Dec 18, 2019 at 10:33:44AM -0500, deeztek wrote: Hi there, > Sorry maybe I am confusing you. The config file that I posted, works fine. > What I request actually responds. So, if I were to request www.domain.tld, > the Apache server behind Nginx responds with the correct website for > www

Re: nginx reverse proxy proxy_pass weirdness

2019-12-18 Thread deeztek
Sorry maybe I am confusing you. The config file that I posted, works fine. What I request actually responds. So, if I were to request www.domain.tld, the Apache server behind Nginx responds with the correct website for www.domain.tld. However, if I were to delete the config file for domain.tld from

Re: nginx reverse proxy proxy_pass weirdness

2019-12-18 Thread Francis Daly
On Wed, Dec 18, 2019 at 07:18:32AM -0500, deeztek wrote: Hi there, > Here's an example config that I use: Thanks. Note that it is possible that the "include" files contain some relevant config; but we can worry about that if it looks like it is the case. What request do you make? What respons

Re: nginx reverse proxy proxy_pass weirdness

2019-12-18 Thread deeztek
Here's an example config that I use: server { server_name domain.tld www.domain.tld; add_header Strict-Transport-Security "max-age=31536000; preload"; keepalive_timeout 70; #LOGS CONFIG access_log /usr/local/nginx/logs/domain.tld/domain.tld_access.

Re: nginx reverse proxy proxy_pass weirdness

2019-12-18 Thread Francis Daly
On Wed, Dec 18, 2019 at 04:48:33AM -0500, deeztek wrote: Hi there, > I have a nginx reverse proxy to forward requests to various Apache websites > behind it. This all seems to work fine unless I remove one of the proxy_pass > configurations from nginx. Even though I remove it, nginx still fowards

nginx reverse proxy proxy_pass weirdness

2019-12-18 Thread deeztek
I have a nginx reverse proxy to forward requests to various Apache websites behind it. This all seems to work fine unless I remove one of the proxy_pass configurations from nginx. Even though I remove it, nginx still fowards the requests back to Apache to a seemingly random website this time. I ca

Re: Reverse proxy, proxy_pass

2016-01-08 Thread Maxim Dounin
Hello! On Wed, Jan 06, 2016 at 05:52:20PM -0600, Amir Kaivani wrote: > Hi there, > > Here is a part of my nginx config file: > > location /test/ { >proxy_pass http://localhost:1024/; > } > > If I have it as above the GET /test/ request will be sent to port 1024 > as / and it also d

Reverse proxy, proxy_pass

2016-01-06 Thread Amir Kaivani
Hi there, Here is a part of my nginx config file: location /test/ { proxy_pass http://localhost:1024/; } If I have it as above the GET /test/ request will be sent to port 1024 as / and it also decodes the URI. I know that if I remove / from the end of proxy_pass then it'll send the U