Re: Nginx 404 redirection to error page

2022-04-08 Thread Francis Daly
On Fri, Apr 08, 2022 at 05:44:08PM +0530, Dhanushka Parakrama wrote: Hi there, > when it try to access non existing page such as https://example.com/abc > , then from nginx page correctly get redirect to the > *https://example.com/page-not-found > But when i try to access non non-existing pa

Nginx 404 redirection to error page

2022-04-08 Thread Dhanushka Parakrama
Hi All I have simple drupal site running and i wanted to redirect 404 pages to a error page , So i have following configuration in place error_page 404 https://example.com/page-not-found; when it try to access non existing page such as https://example.com/abc , then from nginx page correc

Re: Reverse proxy redirection issue

2021-09-21 Thread Daniel Armando Rodriguez
El 2021-09-21 09:23, Francis Daly escribió: On Mon, Sep 20, 2021 at 05:20:55PM -0300, Daniel Armando Rodriguez wrote: El 2021-09-20 13:49, Francis Daly escribió: > On Sun, Sep 19, 2021 at 10:08:08PM -0300, Daniel Armando Rodriguez > wrote: Hi there, > > curl -i https://4.DOMAIN.edu.ar > > >

Re: Reverse proxy redirection issue

2021-09-21 Thread Francis Daly
On Mon, Sep 20, 2021 at 05:20:55PM -0300, Daniel Armando Rodriguez wrote: > El 2021-09-20 13:49, Francis Daly escribió: > > On Sun, Sep 19, 2021 at 10:08:08PM -0300, Daniel Armando Rodriguez > > wrote: Hi there, > > > curl -i https://4.DOMAIN.edu.ar > > > > > > Returns a redirect to https://4.DO

Port redirection is not working as expected

2021-09-20 Thread blason
Hi Team, Here is one more issue I am facing. I have portal running on http://test.example.com:8080/AppWise and http://test.example.com/WebAdmin Now I diverted that portal through Nginx reverse proxy here is my config ** server { listen 8080; listen 80; server_name

Re: Reverse proxy redirection issue

2021-09-20 Thread Daniel Armando Rodriguez
El 2021-09-20 13:49, Francis Daly escribió: On Sun, Sep 19, 2021 at 10:08:08PM -0300, Daniel Armando Rodriguez wrote: El 2021-09-19 04:00, Francis Daly escribió: Hi there, Today I added a new domain, and the issue showed up again. curl -i http://4.DOMAIN.edu.ar Returns a redirect to https:

Re: Reverse proxy redirection issue

2021-09-20 Thread Francis Daly
On Sun, Sep 19, 2021 at 10:08:08PM -0300, Daniel Armando Rodriguez wrote: > El 2021-09-19 04:00, Francis Daly escribió: Hi there, > Today I added a new domain, and the issue showed up again. > > curl -i http://4.DOMAIN.edu.ar > > Returns a redirect to https://4.DOMAIN.edu.ar Ok, so that much i

Re: Reverse proxy redirection issue

2021-09-20 Thread Daniel Armando Rodriguez
El 2021-09-19 22:08, Daniel Armando Rodriguez escribió: El 2021-09-19 04:00, Francis Daly escribió: On Sat, Sep 18, 2021 at 09:16:28AM -0300, Daniel Armando Rodriguez wrote: El 2021-09-18 05:03, Francis Daly escribió: > On Fri, Sep 17, 2021 at 10:24:44PM -0300, Daniel Armando Rodriguez > wrote:

Re: Reverse proxy redirection issue

2021-09-19 Thread Daniel Armando Rodriguez
El 2021-09-19 04:00, Francis Daly escribió: On Sat, Sep 18, 2021 at 09:16:28AM -0300, Daniel Armando Rodriguez wrote: El 2021-09-18 05:03, Francis Daly escribió: > On Fri, Sep 17, 2021 at 10:24:44PM -0300, Daniel Armando Rodriguez > wrote: Hi there, > if you do > > curl -i http://2.DOMAI

Re: Reverse proxy redirection issue

2021-09-19 Thread Francis Daly
On Sat, Sep 18, 2021 at 09:16:28AM -0300, Daniel Armando Rodriguez wrote: > El 2021-09-18 05:03, Francis Daly escribió: > > On Fri, Sep 17, 2021 at 10:24:44PM -0300, Daniel Armando Rodriguez > > wrote: Hi there, > > if you do > > > > curl -i http://2.DOMAIN.edu.ar > > > > you get a http 301

Re: Reverse proxy redirection issue

2021-09-18 Thread Daniel Armando Rodriguez
El 2021-09-18 05:03, Francis Daly escribió: On Fri, Sep 17, 2021 at 10:24:44PM -0300, Daniel Armando Rodriguez wrote: Hi there, I am using nginx as a reverse proxy, I managed to configure SSL certificates using LetsEncrypt but nginx does the redirection to the wrong vhost. This is the

Re: Reverse proxy redirection issue

2021-09-18 Thread Francis Daly
On Fri, Sep 17, 2021 at 10:24:44PM -0300, Daniel Armando Rodriguez wrote: Hi there, > I am using nginx as a reverse proxy, I managed to configure SSL certificates > using LetsEncrypt but nginx does the redirection to the wrong vhost. > > This is the configuration of one of the vhost

Reverse proxy redirection issue

2021-09-17 Thread Daniel Armando Rodriguez
Hello, I am new in this world (of nginx) and I have a problem that has me crazy. I am using nginx as a reverse proxy, I managed to configure SSL certificates using LetsEncrypt but nginx does the redirection to the wrong vhost. This is the configuration of one of the vhost, they are 3

Re: Query on nginx. conf file regarding redirection.

2020-10-31 Thread Francis Daly
On Sat, Oct 31, 2020 at 06:48:00AM +0530, Kaushal Shriyan wrote: > On Sat, Oct 31, 2020 at 5:13 AM Francis Daly wrote: Hi there, thanks for the extra information. > > Something like > > > > /usr/local/sbin/nginx -c /etc/nginx.conf -T | grep -e 'server\|listen' > > > > where the first three wo

Re: Query on nginx. conf file regarding redirection.

2020-10-30 Thread Kaushal Shriyan
On Sat, Oct 31, 2020 at 5:13 AM Francis Daly wrote: > On Fri, Oct 30, 2020 at 10:45:14PM +0530, Kaushal Shriyan wrote: > > On Fri, Oct 30, 2020 at 4:35 AM Francis Daly wrote: > > Hi there, > > > > What does the nginx access log or error log say happened to that > request? > > > I am seeing this

Re: Query on nginx. conf file regarding redirection.

2020-10-30 Thread Francis Daly
On Fri, Oct 30, 2020 at 10:45:14PM +0530, Kaushal Shriyan wrote: > On Fri, Oct 30, 2020 at 4:35 AM Francis Daly wrote: Hi there, > > What does the nginx access log or error log say happened to that request? > I am seeing this below message when I hit > http://219.11.134.114/test/_plugin/kibana/

Re: Query on nginx. conf file regarding redirection.

2020-10-30 Thread Kaushal Shriyan
On Fri, Oct 30, 2020 at 4:35 AM Francis Daly wrote: > On Thu, Oct 29, 2020 at 11:42:11PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > When I hit this URL http://219.11.134.114/test/_plugin/kibana/app/kibana > on > > the browser it does not get redirected to > > https://vpc-lab-test-search-7h

Re: Query on nginx. conf file regarding redirection.

2020-10-29 Thread Francis Daly
On Thu, Oct 29, 2020 at 11:42:11PM +0530, Kaushal Shriyan wrote: Hi there, > When I hit this URL http://219.11.134.114/test/_plugin/kibana/app/kibana on > the browser it does not get redirected to > https://vpc-lab-test-search-7hyay88a9kjuisl.eu-north-1.es.amazonaws.com/; What does the nginx acc

Query on nginx. conf file regarding redirection.

2020-10-29 Thread Kaushal Shriyan
Hi, I have a specific query regarding the below /etc/nginx/nginx.conf file. When I hit this URL http://219.11.134.114/test/_plugin/kibana/app/kibana on the browser it does not get redirected to https://vpc-lab-test-search-7hyay88a9kjuisl.eu-north-1.es.amazonaws.com/; # TEST server { lis

Re: Force SSL redirection to target service host for all protocols

2020-07-15 Thread siva.pannier
Thanks Francis! I was able to resolve that after a creating a Keystore jks with my cert & key and pointing my java code to that store using the system property, after that added keystore manager to the SSL context. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288541,288716#msg-28871

Re: Force SSL redirection to target service host for all protocols

2020-07-14 Thread Francis Daly
On Tue, Jul 14, 2020 at 09:55:04AM -0400, siva.pannier wrote: Hi there, > Output from the server when client initiated the connection is.. > # > javax.net.ssl.SSLHandshakeException: no cipher suites in common That suggests that the ssl client (nginx) and the ssl server (you

Re: Force SSL redirection to target service host for all protocols

2020-07-14 Thread siva.pannier
Extremely sorry, I mentioned the wrong port in that post.. Actually I am using the correct port number.. Client (Windows + non SSL):8091 ==> Nginx host (ubuntu vm+ SSL redirection) ==> TCP server (Windows + SSL enabled) TCP server listening on 8091 Nginx Server listening on 8091 Client

Re: Force SSL redirection to target service host for all protocols

2020-07-14 Thread Francis Daly
On Mon, Jul 13, 2020 at 02:57:34PM -0400, siva.pannier wrote: Hi there, > https://docs.nginx.com/nginx/admin-guide/security-controls/securing-tcp-traffic-upstream/ > > My TCP (non-ssl) client is able to hit the TCP Server (SSL enabled) via the > Nginx (proxy_ssl) but buffered reader gets back on

Re: Force SSL redirection to target service host for all protocols

2020-07-13 Thread siva.pannier
Hi there, I have tried doing TCP redirection to a backend TCP server with SSL enabled following the below URL. https://docs.nginx.com/nginx/admin-guide/security-controls/securing-tcp-traffic-upstream/ My TCP (non-ssl) client is able to hit the TCP Server (SSL enabled) via the Nginx (proxy_ssl

Re: Force SSL redirection to target service host for all protocols

2020-07-10 Thread siva.pannier
Hi.. > An you want your clients to talk to nginx without encryption, and for > nginx to talk to upstream with encryption. Yup this is what I am trying to achieve. Started testing on these scenarios. Will you keep you all posted on the results. Posted at Nginx Forum: https://forum.nginx.org/rea

Re: Force SSL redirection to target service host for all protocols

2020-07-08 Thread Francis Daly
t; I have seen few blogs that talks about HTTP to HTTPS redirection. I want to > do that for all protocols like TCPS, UDPS(DTLS), SMTPS, IIOPS. > > Can you please share your suggestions on this? If my protocol writes IP addresses or ports within the content payload, then a "blind&qu

Re: Force SSL redirection to target service host for all protocols

2020-07-05 Thread siva.pannier
Can somebody please comment on this? Thanks, Siva Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288541,288565#msg-288565 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Force SSL redirection to target service host for all protocols

2020-07-03 Thread siva.pannier
talks about HTTP to HTTPS redirection. I want to do that for all protocols like TCPS, UDPS(DTLS), SMTPS, IIOPS. Can you please share your suggestions on this? Thanks, Siva Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288541,288541#msg-288541

Re: Nginx Lowercase URL and Redirection

2020-04-19 Thread Francis Daly
On Sat, Apr 18, 2020 at 11:05:36AM -0400, mustafa.chapal wrote: Hi there, > First, URLs like www.example.com/new-arrivalS which include a character like > hyphen are not triggering on the following location. Works for me. What other location do you have that does handle this request? == locat

Nginx Lowercase URL and Redirection

2020-04-18 Thread mustafa.chapal
Hi, I am facing two issues. First, URLs like www.example.com/new-arrivalS which include a character like hyphen are not triggering on the following location. Second, URLs like www.example.com/dealS?p=2 get redirected to www.example.com/deals instead of www.example.com/deals?p=2 location ~ [A-Z]

Re: Web site not working on port redirection

2019-05-13 Thread Francis Daly
On Fri, May 10, 2019 at 12:31:43PM -0400, cox123456a wrote: Hi there, > Thanks for the detailed explanation. I agree with your diagnostic. > I really need a way to bring 80 to 8000 and make it work. Another way to approach this could be to change your code. It would make it more efficient (avoi

Re: Web site not working on port redirection

2019-05-10 Thread Francis Daly
On Fri, May 10, 2019 at 12:31:43PM -0400, cox123456a wrote: Hi there, > I really need a way to bring 80 to 8000 and make it work. I've not used it; but you could try "absolute_redirect off" (http://nginx.org/r/absolute_redirect) and see if your clients are happy with the response from that. Ins

Re: Web site not working on port redirection

2019-05-10 Thread cox123456a
Added port 8000: listen 8000 default_server; Unfortunatelly It does not work. Same behaviour I'm out of ideas... Posted at Nginx Forum: https://forum.nginx.org/read.php?2,284120,284124#msg-284124 ___ nginx mailing list nginx@nginx.org http://mail

Re: Web site not working on port redirection

2019-05-10 Thread cox123456a
Hi Francis, Thanks for the detailed explanation. I agree with your diagnostic. In fact I've tried to listen on port 8000 and it works properly. The problem is that I cannot let this port open on LAN, just 80 due to security requirements. And port 80 cannot be opened to the internet, so I need to

Re: Web site not working on port redirection

2019-05-10 Thread Francis Daly
for you, because you want it to keep the port from the Host: header in the http redirection from nginx. If that is the case... > How can I configure NGINX to forcelly add the port number when I change the > module? I think that you cannot easily. When nginx generates a http redirection, it

Web site not working on port redirection

2019-05-10 Thread cox123456a
I've post this on SO but no solution after weeks, so I think here I have a better chance as this is being critical to myself. I have the following NGINX setup: server { listen 80 default_server; root /var/www/serviceserver1; index index.html index.htm; location /api { prox

Re: Nginx reverse proxy redirection combinations

2019-04-17 Thread Francis Daly
On Thu, Apr 11, 2019 at 01:07:53PM +0200, Andr� Auchecorne wrote: Hi there, > Could you please help me? I'm trying to figure out if with Nginx Reverse > Proxy it is possible to redirect trafic as in the following cases? > > 1- IP==>IP ... For each of these, I do not understand what you are try

Nginx reverse proxy redirection combinations

2019-04-11 Thread Andr� Auchecorne
Hi Every one! Could you please help me? I'm trying to figure out if with Nginx Reverse Proxy it is possible to redirect trafic as in the following cases? 1- IP==>IP 2- IP==>Port 3- IP==>URL 4- IP==>Domaine Name 5- IP==>URI 6- Port==>IP 6- Port==>Port 8- Port==>URL 9- Port==>Domaine Name 10- Por

Nginx tries to open the html file and through error 404. I expected the redirection to the php script

2018-11-30 Thread dertin
Hi, Nginx tries to open the html file and through error 404. I expected the redirection to the php script. server { listen 443 ssl http2 fastopen=500 reuseport; listen [::]:443 ssl http2 fastopen=500 reuseport ipv6only=on; server_name www.testing.com.uy; resolver 1.1.1.1

Re: Nginx redirection

2018-06-14 Thread Enrico
Hi, Thanks for your help. Your solution is good, my server works ! Thanks Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279813,280143#msg-280143 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx redirection

2018-05-23 Thread Aleksandar Lazic
Hi. On 16/05/2018 02:22, Enrico wrote: 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

Re: POST redirection with NGINX

2018-05-22 Thread Aleksandar Lazic
Hi Pedro On 18/05/2018 16:02, pedrobrigatto wrote: > Hi guys, > > The base name of a web application has changed and now I need to implement a > redirection of POST requests so that, whenever clients already using the old > base path are not affected by this modification. So, le

POST redirection with NGINX

2018-05-18 Thread pedrobrigatto
Hi guys, The base name of a web application has changed and now I need to implement a redirection of POST requests so that, whenever clients already using the old base path are not affected by this modification. So, let's say the old path to a web service is https://ip-address/old-name

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

RE: Redirection

2018-02-22 Thread Jason Whittington
_name/. Without them the routing is not going to do what you want. Jason -Original Message- From: nginx [mailto:nginx-boun...@nginx.org] On Behalf Of imrickysingh Sent: Thursday, February 22, 2018 7:18 AM To: nginx@nginx.org Subject: [IE] Redirection Hi guys, I am new to nginx and facing

Re: Redirection

2018-02-22 Thread Aziz Rozyev
; > In my setup i have nginx and tomcat with the application running on tomcat > as http://tomcatdomain/application_name. I want to redirect to application > if someone hit http://nginxdomain/app. I am able to do the redirection using > location block as: > > locatio

Redirection

2018-02-22 Thread imrickysingh
Hi guys, I am new to nginx and facing some problem with my setup. In my setup i have nginx and tomcat with the application running on tomcat as http://tomcatdomain/application_name. I want to redirect to application if someone hit http://nginxdomain/app. I am able to do the redirection using

Re: Login-Credentials based redirection?

2017-04-07 Thread B.R. via nginx
You could use a map to match proxy_pass URI to user names, and then use a single password file for the auth_basic module. ​This removes the need of having specific location URI for each user, although you could still keep doing it if they are part of your requirements. --- *B. R.* On Fri, Apr 7, 2

Re: Login-Credentials based redirection?

2017-04-07 Thread Ajay Garg
I have been searching if it is possible to do a one-to-one mapping, something like :: location /9000 { auth_basic auth_value username9000:password9000 proxy_pass http://localhost:9000 } location /9001 { auth_basic auth_value username9002:password9002 proxy_pass http://loca

Login-Credentials based redirection?

2017-04-07 Thread Ajay Garg
Hi All. We have setup multiple ssh-reverse tunnels, and our server will be listening to ports from 9000 to 1. The server will have a public-IP, and we DO NOT want just anyone to look into any of the ports by trying :: http://1.2.3.4:9000 http://1.2.3.4:9001 and so on ... So, we are wonderin

Re: Trailing Slash redirection poblem

2016-05-04 Thread Muhammad Yousuf Khan
Thanks for the info. will check on that. On Wed, May 4, 2016 at 12:22 AM, Francis Daly wrote: > On Mon, May 02, 2016 at 05:48:12PM +0500, Muhammad Yousuf Khan wrote: > > Hi there, > > > Thanks for the reply, actually we have 5 categories. and then we have > > hundred plus post in each category

Re: Trailing Slash redirection poblem

2016-05-03 Thread Francis Daly
On Mon, May 02, 2016 at 05:48:12PM +0500, Muhammad Yousuf Khan wrote: Hi there, > Thanks for the reply, actually we have 5 categories. and then we have > hundred plus post in each category. now when user click on our category. he > sees intro about the category and then list of all posts. > when

Re: Trailing Slash redirection poblem

2016-05-02 Thread Muhammad Yousuf Khan
first of all my apologies if i question something inapplicable , this could be the result of my less knowledge in nginx. i hope you guys don't mind. Thanks for the reply, actually we have 5 categories. and then we have hundred plus post in each category. now when user click on our category. he se

Re: Trailing Slash redirection poblem

2016-05-02 Thread Francis Daly
On Sun, May 01, 2016 at 01:16:51PM +0500, Muhammad Yousuf Khan wrote: Hi there, > >>The configuration you have shown says "if the request is for /live/, > >>ask the browser to instead request /live". > > >>The configuration you have not shown says "if the request is for /live, > >>ask the browse

Re: Trailing Slash redirection poblem

2016-05-01 Thread B.R.
So these opposite redirection rules are fighting each other and are the source of your problem, which Francis helped you to alleviate. Sit back, grab an erasable whiteboard, scratch your head and think about your website's design: both rules probably have their use in their own corner, bu

Re: Trailing Slash redirection poblem

2016-05-01 Thread Muhammad Yousuf Khan
just want to make it more clear that when i comment out this line #try_files $uri $uri.html $uri/ /index.php?q=$request_uri; error become 404 from redirection loop error. On Sun, May 1, 2016 at 1:16 PM, Muhammad Yousuf Khan wrote: > > >>The configuration you have shown says "

Re: Trailing Slash redirection poblem

2016-05-01 Thread Muhammad Yousuf Khan
tip I think I got the problem but could not resolve it. try_files $uri $uri.html $uri/ /index.php?q=$request_uri; I even tried deleting “$uri.html $uri/” but still creating loop. I know this is a important line to display wordpress pages . now the error turn 404 from redirection loop. >

Re: Trailing Slash redirection poblem

2016-04-30 Thread Francis Daly
On Sat, Apr 30, 2016 at 12:47:20PM +0500, Muhammad Yousuf Khan wrote: Hi there, > I have been trying to remove the trailing slash with this redirection rule. > rewrite ^/(.*)/$ /$1 permanent; > > however it is creating a loop. > > curl -I https://.com/live/ >

Trailing Slash redirection poblem

2016-04-30 Thread Muhammad Yousuf Khan
Dear All, Need some help to remove trailing Slash. I have been trying to remove the trailing slash with this redirection rule. rewrite ^/(.*)/$ /$1 permanent; however it is creating a loop. curl -I https://.com/live/ HTTP/1.1 301 Moved Permanently Server: nginx/1.6.2 Date: Sat, 30 Apr 2016

Re: only .json file not load using rewrite or internal redirection cycle while internally redirecting

2016-04-21 Thread rahulgupta20nov
Thanks Maxim Dounin, This solution is absolutely working fine. I am suffering from last 2 month from this problem. I didn't notice I have done regular express mistake. Thanks for solution. I will make better Regular Expression Concept. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,2

Re: only .json file not load using rewrite or internal redirection cycle while internally redirecting

2016-04-21 Thread Maxim Dounin
Hello! On Thu, Apr 21, 2016 at 02:05:24AM -0400, rahulgupta20nov wrote: > Hi, > In nginx conf file I have written:- > > location /hello { > alias /var/www/html/hello/some_path/www; > try_files $uri $uri/ /helllo/some_path/www/index.html; > } > > location ~ /hello/(.*

only .json file not load using rewrite or internal redirection cycle while internally redirecting

2016-04-20 Thread rahulgupta20nov
Hi, In nginx conf file I have written:- location /hello { alias /var/www/html/hello/some_path/www; try_files $uri $uri/ /helllo/some_path/www/index.html; } location ~ /hello/(.*)\.(css|js|html|eot|svg|ttf|woff|ico|png|map|json) { try_files $uri $uri/ /hello/som

Re: Redirection problem again in new rules.

2016-04-20 Thread Muhammad Yousuf Khan
Thanks Alot Francis Daly, actually i was trying to understand the working of rewrite and location rules how they handle the query. you explain it very well. Thanks again for sharing such useful and detailed explanation. i really appreciate that. :) On Tue, Apr 19, 2016 at 4:23 AM, Francis Daly

Nginx redirection problem in odoo

2016-04-19 Thread cubells
Hi all: I'm trying to print a report with product ean13 barcodes and the barcodes are printed blank. I think my problem is an incorrect redirection problem because I can see correctly the barcodes if I browse to the url: https://mydomain.net/report/barcode/?type=EAN13&value=8435

Re: Redirection problem again in new rules.

2016-04-18 Thread Francis Daly
On Mon, Apr 18, 2016 at 06:37:59PM +0500, Muhammad Yousuf Khan wrote: Hi there, > Thanks alot Francis Daly :). the try_file option worked for me and location > tip also worked but try_file seems more better approach. I'm glad you got it working for you. > Btw, can you please explain this paragr

Re: Redirection problem again in new rules.

2016-04-18 Thread Muhammad Yousuf Khan
Thanks alot Francis Daly :). the try_file option worked for me and location tip also worked but try_file seems more better approach. Btw, can you please explain this paragraph. actually i am really sorry for this newbie type question. actually i have been working as ssytem admin for last 5 years.

Re: Redirection problem again in new rules.

2016-04-16 Thread Francis Daly
On Sat, Apr 16, 2016 at 12:22:46PM +0500, Muhammad Yousuf Khan wrote: Hi there, > location ~ \.php$ { > location ~* > \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|woff|woff2)$ >

Re: Redirection problem again in new rules.

2016-04-16 Thread Muhammad Yousuf Khan
; } #Server HTTP End } Thanks for your troubleshooting tip. the redirection rule is working great however but the.html link again redirection to the .html link. i can not get this thing. where is the second 301 rule once the link is redirected why again html is redirecting. here is the test run of curl

Re: Redirection problem again in new rules.

2016-04-15 Thread Francis Daly
> >Do note that "location /x" can match anything that starts with /x; and > >if a request for /x.html returns a redirect to /x.html, you've got a loop. > > Yes , i have double checked but my redirection rules are not created wrong. > so i am sure no loop is h

Re: Redirection problem again in new rules.

2016-04-15 Thread Muhammad Yousuf Khan
ut the problem. >Do note that "location /x" can match anything that starts with /x; and >if a request for /x.html returns a redirect to /x.html, you've got a loop. Yes , i have double checked but my redirection rules are not created wrong. so i am sure no loop is happening t

Re: Redirection problem again in new rules.

2016-04-14 Thread Francis Daly
On Thu, Apr 14, 2016 at 07:03:19PM +0500, Muhammad Yousuf Khan wrote: Hi there, > there are multiple apache redirection rules that were working successfully. > for example something like this > > Redirect 301 //bbb /a/bb.html > > Now i have converted this

Re: Redirection problem again in new rules.

2016-04-14 Thread Ph. Gras
Le 14 avr. 2016 à 16:03, Muhammad Yousuf Khan a écrit : > Redirect 301 //bbb /a/bb.html > > Now i have converted this rule in nginx like this > > location // { > rewrite ^(.*)$ //bb.html redirect; > } > You should use break instead redirect : http://n

Redirection problem again in new rules.

2016-04-14 Thread Muhammad Yousuf Khan
Hi, there are multiple apache redirection rules that were working successfully. for example something like this Redirect 301 //bbb /a/bb.html Now i have converted this rule in nginx like this location // { rewrite ^(.*)$ //bb.html redirect; } i also

Re: Redirection 301 create "Redirection loop" while using wordpress site.

2016-04-12 Thread Muhammad Yousuf Khan
n it from very basic. i have a > website and i am willing to remove the "www" before my actual domain name. > the solution so far i have find out on google is very simple. > > so when ever any of the visitor visits my website by using www.xxx.com he > should be redirected to xxx

Re: Redirection 301 create "Redirection loop" while using wordpress site.

2016-04-12 Thread Steve Wilson
ld be redirected to xxx.com [2]. fortunately everything is working as > expected i can load php files and html file correctly, however when i try to > load my actual website my browser shows error "redirection loop created" > here is the config code of my website. > > server {

Re: Redirection 301 create "Redirection loop" while using wordpress site.

2016-04-12 Thread Alt
Hello, Muhammad Yousuf Khan Wrote: --- > I can access php files properly like info.php. to check whether php > is > working or not. however the problem part is wordpress. > > when i try to load my wordpress site chrome shows an error saying > r

Redirection 301 create "Redirection loop" while using wordpress site.

2016-04-12 Thread Muhammad Yousuf Khan
xxx.com he should be redirected to xxx.com. fortunately everything is working as expected i can load php files and html file correctly, however when i try to load my actual website my browser shows error "redirection loop created" here is the config code of my website. server { server_name

Re: https redirection not working correctly

2015-12-30 Thread Parzip
could this be related to the forwarding of the address? This is my domain registrar setting: X.ch => web alias to subdomain.X.ch subdomain.X.ch => A record to IP address of my server I need this setup because my odoo-erp selects the database according to my subdomains. Posted at Ngi

Re: https redirection not working correctly

2015-12-30 Thread Parzip
Hello Kevin! Thank you very much, but it's still not working ## odoo backend ## upstream odoo { server 127.0.0.1:8069; } ## http redirects to https ## server { listen 80; server_name *.X.ch www.X.ch X.ch; return 301 https://$server_name$request_uri; } ## https site## serv

Re: https redirection not working correctly

2015-12-30 Thread Kevin Worthington
Hello! After your upstream block, but before your server (https) block put something like this: server { listen 80; server_namex.ch www.x.ch; return 301 https://$server_name$request_uri; } ...and remove the ## http redirects to https ##

https redirection not working correctly

2015-12-30 Thread Parzip
Hello! I am trying to set up nginx to - switch from http traffic to https - send alls https traffic to my odoo backend on port 8069 This is already working for different subdomains, but not for the domain itself. http://(www.)subdomain.domain.ch => https://(www.)subdomain.domain.ch http://(ww

Re: proxy_pass redirection

2015-07-24 Thread Francis Daly
On Fri, Jul 24, 2015 at 11:16:12AM +0200, Puneeth Kumar wrote: Hi there, > Sorry for confusion, proxy_pass is working for me. > > I'm passing below link (exact URI) to proxy_pass > > http://IP:8881/ingestion/v1.0/streams/NGINEX. > > I want to keep the link(URI) only till > http://IP:8881/inges

Re: proxy_pass redirection

2015-07-24 Thread Puneeth Kumar
Thank you Francis for the links & the solution. Sorry for confusion, proxy_pass is working for me. I'm passing below link (exact URI) to proxy_pass http://IP:8881/ingestion/v1.0/streams/NGINEX. I want to keep the link(URI) only till http://IP:8881/ingestion/v1.0/streams/ & the last word (NGINX)

Re: proxy_pass redirection

2015-07-23 Thread Francis Daly
On Wed, Jul 22, 2015 at 11:26:11AM +0200, Puneeth Kumar wrote: Hi there, > I'm able to configured Nginx and it's working but I've challenge in > configuring it for Dynamic proxy_pass. I've tried to use wild characters > in proxy_pass it's not working, please help. The proxy_pass documentation is

Re: proxy_pass redirection

2015-07-23 Thread Puneeth Kumar
Thank for the quick response. My proxy_pass path will keep on changing as per my topic, so I want to keep to dynamic. Pls check below e.g. proxy_pass http://IP:8881/ingestion/v1.0/streams/NGINEX; or proxy_pass http://IP:8881/ingestion/v1.0/streams/NGINEX1; or proxy_pass http://IP:8881/ingestion/

Re: proxy_pass redirection

2015-07-22 Thread Payam Chychi
On Wednesday, July 22, 2015 at 2:26 AM, Puneeth Kumar wrote: > Hi, > I'm new to Nginx and we are using for reverse proxy. > > I'm able to configured Nginx and it's working but I've challenge in > configuring it for Dynamic proxy_pass. I've tried to use wild characters > in proxy_pass it's not w

proxy_pass redirection

2015-07-22 Thread Puneeth Kumar
Hi, I'm new to Nginx and we are using for reverse proxy. I'm able to configured Nginx and it's working but I've challenge in configuring it for Dynamic proxy_pass. I've tried to use wild characters in proxy_pass it's not working, please help. E.G. location server { #listen 443; listen 808

Re: Nginx URL Fallback setup with internal redirection in reverse-proxy settings

2015-06-19 Thread Francis Daly
On Fri, Jun 19, 2015 at 10:59:00PM +0530, Ashish k wrote: Hi there, > Set up Nginx config so that any URL address which is not found, goes > to a fallback path with internal redirection (NO change or redirection > in browser URL). > Please point me to NGINX resources and a steps

Nginx URL Fallback setup with internal redirection in reverse-proxy settings

2015-06-19 Thread Ashish k
Hi List Members Gurus I have installed and configured a virtual host using NGINX in Ubuntu 14.04 Now I want to add couple of functionalities like-- Set up Nginx config so that any URL address which is not found, goes to a fallback path with internal redirection (NO

Re: rewrite or return for simple redirection

2014-11-25 Thread neubyr
Thank you Maxim! That's helpful explanation. -N On Mon, Nov 24, 2014 at 6:39 AM, Maxim Dounin wrote: > Hello! > > On Fri, Nov 21, 2014 at 02:53:50PM -0800, neubyr wrote: > > > On Fri, Nov 21, 2014 at 12:11 PM, Maxim Dounin > wrote: > > [...] > > > > For such cases rewrite is better, IMHO. In

Re: rewrite or return for simple redirection

2014-11-24 Thread Maxim Dounin
Hello! On Fri, Nov 21, 2014 at 02:53:50PM -0800, neubyr wrote: > On Fri, Nov 21, 2014 at 12:11 PM, Maxim Dounin wrote: [...] > > For such cases rewrite is better, IMHO. In some cases it may be a > > good idea to additionally isolate it with prefix location, like > > this: > > > > location

Re: rewrite or return for simple redirection

2014-11-21 Thread neubyr
21:40AM -0800, neubyr wrote: > > > > > > > I am trying to understand which option would result in more efficient > > > HTTP > > > > redirection. I am trying to redirect ^/address page to ^/contact > page. > > > > > > > > Option 1:

Re: rewrite or return for simple redirection

2014-11-21 Thread Maxim Dounin
would result in more efficient > > HTTP > > > redirection. I am trying to redirect ^/address page to ^/contact page. > > > > > > Option 1: > > > rewrite ^/address /contact permanent; > > > > > > Option 2: > > > location ~ ^/address { &

Re: rewrite or return for simple redirection

2014-11-21 Thread neubyr
On Fri, Nov 21, 2014 at 11:33 AM, Maxim Dounin wrote: > Hello! > > On Fri, Nov 21, 2014 at 11:21:40AM -0800, neubyr wrote: > > > I am trying to understand which option would result in more efficient > HTTP > > redirection. I am trying to redirect ^/address page to ^/c

Re: rewrite or return for simple redirection

2014-11-21 Thread Maxim Dounin
Hello! On Fri, Nov 21, 2014 at 11:21:40AM -0800, neubyr wrote: > I am trying to understand which option would result in more efficient HTTP > redirection. I am trying to redirect ^/address page to ^/contact page. > > Option 1: > rewrite ^/address /contact permanent; > >

rewrite or return for simple redirection

2014-11-21 Thread neubyr
I am trying to understand which option would result in more efficient HTTP redirection. I am trying to redirect ^/address page to ^/contact page. Option 1: rewrite ^/address /contact permanent; Option 2: location ~ ^/address { return 301 $scheme://$host/contact } Which option should be

Re: double slashes redirection

2014-10-06 Thread B.R.
h Rack. > > However I am not able to detect this ‘//’ in the url. > > Nginx send to my app ‘/site’ and not ‘//site’. > > Seeing that my rails app had not the right info I tried to handle this > redirection at the nginx level but I had the same issue ; I am not able to > detect

double slashes redirection

2014-10-06 Thread Benoit Vasseur
my app ‘/site’ and not ‘//site’. Seeing that my rails app had not the right info I tried to handle this redirection at the nginx level but I had the same issue ; I am not able to detect the ‘//’. I tried to desactivate the merge slashes option but it did not change anything $uri and $request_uri

Re: redirection issue

2014-10-02 Thread Kurogane
Thats working thanks!! I set default_server in localhost because i want to show default page when you go to http://1.2.3.4 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253713,253719#msg-253719 ___ nginx mailing list nginx@nginx.org http://

Re: redirection issue

2014-10-02 Thread Adie Nurahmadie
On Fri, Oct 3, 2014 at 12:39 AM, Adie Nurahmadie wrote: > > On Fri, Oct 3, 2014 at 12:33 AM, Kurogane wrote: > >> No. >> > > There is your problem, the config supposed to looks like this: > > server { > listen 80 default_server; > server_name localhost; >

  1   2   >