Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live
↧

Rewrite and redirect a URL

Sorry for the newbie question, but I am struggling trying to rewrite and redirect a URL. The external URL is www.mydomain:443/app1. The internal URL is 192.168.1.2:8080. Nginx is running on...

View Article


upstream https request going as ip address

Can you please give some idea how to fix the following issue ? how I can pass domain name in the upstream request instead of ip address ? Issue : Issue happening when i am using https. Request to...

View Article


Re: GET requests work but not other requests

Please, if you have any idea help me. Thanks a lot

View Article

Re: Rewrite and redirect a URL

location /app1/ { rewrite /app1/([^/]+) /$1 break; proxy_pass https://192.168.1.2:8080/; }

View Article

Re: Rewrite and redirect a URL

This is getting closer. URL now comes across as https://www.mydomain.net/api/4/, but the page is blank. The internal URL that display correctly is https://192.168.1.2:8080/api/4. Does Nginx pass...

View Article


Re: Rewrite and redirect a URL

Try it without the trailing / in proxypass.

View Article

Re: Rewrite and redirect a URL

Removing the trailing / on the proxy_pas line caused the URL to change from https://www.mydomian.net/api/4/ to https://osuhickeys.no-ip.org/app1. I get a blank page then instead of a 404 Not Found like...

View Article

Re: Rewrite and redirect a URL

Check the logfiles where the file is being looked for, the rewrite changes the client request towards where the backend should have the files requested, that needs to match.

View Article


Re: Rewrite and redirect a URL

Here are the last 2 entries which I think relate to the test with and without the slash. 172.98.67.120 - - [18/Oct/2016:15:11:23 -0500] "GET /app1/ HTTP/1.1" 307 0 "-" "Mozilla/5.0 (Windows NT 10.0;...

View Article


Re: Rewrite and redirect a URL

"GET /api/4/ HTTP/1.1" 404 Means files need to be in /api/4/ Looks like your backend is not looking there or is not configured to serve files from there.

View Article

Re: Rewrite and redirect a URL

It is an appliance and I do not have root access. Does that mean since I cannot set a URL base for it on the appliance end, I am at a dead end trying to get it to work with nginx?

View Article

Re: Rewrite and redirect a URL

What does this do: location /app1 { rewrite /app1/([^/]+) /$1 break; proxy_pass https://192.168.1.2:8080/; }

View Article

Re: How to block bad bot in nginx?

Hi there, there are a LOT of very bad nginx bad bot blocker scripts out there. Most of them very badly coded and simply copy and pasted from other people's scripts, which were copy and pasted from...

View Article


Re: Rewrite and redirect a URL

I think that is the same thing we tried before. It gets to the appliance, but the page is blank and the browser URL is redirected to https://192.168.1.2:8080/api/4/. I changed the proxy pass line to...

View Article

How can I create a custom log?

Hello, Basically I want to create a custom log to write to it if the condition is satisfied within an "if" clause. Example: location / { if ($query_string ~ condition) { custom_log /.../custom_log; }}...

View Article


Forwarding TCP from IP

Hi there. I really hope i am in the right place. I need a service that can take ingoing trafic on one port (like 5000) on one IP from Nginx, then forward this trafic to Port 6000 on an IP of my choice,...

View Article

Re: Forwarding TCP from IP

Tcp proxy functions: https://nginx.org/en/docs/stream/ngx_stream_core_module.html

View Article


Re: Forwarding TCP from IP

Thanx for the quick reply. OMG, that looks complicated, i am no programmer. Where is that configured, and how, and the price would be?? I am offcourse willing to pay for initial setup if that is...

View Article

Re: Is NGINX RTMP a replacement for Wowza?

You can try Arut's nginx-rtmp-module.. At the moment, you cannot fully replace Wowza Stream Engine with Nginx due to advanced future of WSE such as restapi, server api, and etc. Actually, It's up to...

View Article

identfy proxy users that have the same useragent info

Hi, Is it possible to identfy distinct users behind NAT/Proxy systems? I need to log number of downloaded files by NAT users. However, Users have cloned systems so they have same ip and user-agent...

View Article
Browsing all 4759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>