Re: Basic Question: Unable to access https:// with www prefix

2016-08-04 Thread Francis Daly
On Thu, Aug 04, 2016 at 11:03:34AM -0400, lukemroz wrote: Hi there, > When accessing https://www.comfortglobalhealth.com, I am always redirected > to https://comfortglobalhealth.com. Can someone suggest what change I need > to make to my nginx configuration file so that this redirect doesn't > h

Re: Basic Question: Unable to access https:// with www prefix

2016-08-04 Thread Richard Stanway
This is not nginx redirecting, as there is no response body. Most likely it is your wordpress configuration that needs attention. On Thu, Aug 4, 2016 at 5:03 PM, lukemroz wrote: > Hello, > > I followed the instructions at Digital Ocean for setting up a WordPress > installation, including enablin

Help with: no resolver defined to resolve upstream-name

2016-08-04 Thread Ze Claudio Pastore
Hello, (Short version: what could cause nginx to try to resolve a name used as the upstream backend configured name? Long version follows in the body of the message). I have a weird problem, which might be something simple I am missing, I searched the archives and read the documentation twice and

Basic Question: Unable to access https:// with www prefix

2016-08-04 Thread lukemroz
Hello, I followed the instructions at Digital Ocean for setting up a WordPress installation, including enabling HTTPS on the nginx server. (The instructions are here: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04) When accessing https:

Hey guys! nginx reverse proxy facebook \ twitter \ youtube, can not be login

2016-08-04 Thread jiobxn
Because Internet censorship, I reverse proxy facebook\twitter\youtube, can be accessed😀, can not be login😵, can not play video😩. Like: www.you-tube.com.example.com -> www.youtube.com location / { resolver 8.8.8.8; set $domain example.com; if ($host ~* "^(.*)-

Re: Create custom variable based on another one

2016-08-04 Thread pixeye
Hai, Thanks for your response ! $1 did not work for me : nginx: [emerg] unknown "1" variable nginx: configuration file /etc/nginx/nginx.conf test failed For future reference, here is what i used : map $request_uri $path { ~^(?P/[^/]+)/ $pathname; default /; } seems to work in all my case

Re: Create custom variable based on another one

2016-08-04 Thread Edho Arief
Hi, On Thu, Aug 4, 2016, at 21:27, pixeye wrote: > Hello there, > > I'm trying to set a new variable based on another one. > > I've found this response which is kinda close to what i want to do : > https://www.ruby-forum.com/topic/6876231#1176774 > > map $request_uri $last_path { > ~/(?[^/]+)

Create custom variable based on another one

2016-08-04 Thread pixeye
Hello there, I'm trying to set a new variable based on another one. I've found this response which is kinda close to what i want to do : https://www.ruby-forum.com/topic/6876231#1176774 map $request_uri $last_path { ~/(?[^/]+)/?$ $pathname; } Except, i want to get the first path level only (a

Re: Whitelist certain query string results in infinite redirect loop

2016-08-04 Thread Francis Daly
On Thu, Aug 04, 2016 at 12:58:39AM -0400, jwxie wrote: Hi there, > location /login { > if ($args ~* "client_id=bad-client-id") { > rewrite ^(.*)$ $1? redirect; > } That says: if I ask for /login/something?key=value&client_id=bad-client-id, I get a http redirect to