New answers tagged

0 votes

How can I port an Apache RewriteCond and RewriteRule to ngnix?

The RewriteRule has as first parameter regular expression which is matching all URI starting with / and as second parameter a substitution, which redirects "stagingapi" site (R flag) to ...
0 votes

nginx location proxy pass to another port path

try to place the proxy_pass for /faq/ above the proxy_passs for /
0 votes

How do web clients access vpn protected servers?

Simplest answer is to think of a VPN as a tunnel through the Internet. The VPN client on the web client redirects any requests for the servers to a specific public IP, where it is picked up by the VPN ...
  • 355
1 vote

Check response of one backend before proxying to another

Not a complete answer, but slightly too long for comment: The set-up you describe is in concept similar to a fairly common strategy : offload the authentication to one system use your reverse proxy ...
  • 1,288
0 votes

Configuring Nginx and Tomcat to Access HTTPS content

Configure your backend server to server the URL that points to the reverse proxy. With Tomcat this is usually done with the proxyName and the proxyPort attributes at the connector. You are missing the ...
2 votes

enable gzip compression on nginx give me long time server response

It seems like the CPU is just too weak to compress the data in a timely manner. Obviously for you to have any benefit the compression and transfer of the compressed data needs to be faster then just ...
  • 191
0 votes

Nginx http to http redirect 400 The plain HTTP request was sent to HTTPS port

Issue fixed, happened that there was another config file that had port 80 listening on ssl which was causing the error server { listen 80 ssl; listen [::]:80 ssl; server_name another-app1....
  • 463
0 votes

NGINX Block traffic to my home IP (default new website page or first subdomain), requiring a valid domain name hosted at home

Using Nginx to Block Connections that aren't addressed to my domain has my earlier answer on this topic. So yes, you need to have a server block with default_server directive. And the file that ...
0 votes

How to proxy /grafana with nginx?

For Nginx default-ssl.conf location /login { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for; ...

Top 50 recent answers are included