help need (convert vhost to location)

2020-12-15 Thread Gregory Edigarov
best regards, Gregory Edigarov ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: need to preserve / in location

2020-04-24 Thread Gregory Edigarov
Maxim, Thanks for a great explanation. On 2020-04-22 18:17, Maxim Dounin wrote: Hello! On Wed, Apr 22, 2020 at 11:46:25AM +0300, Gregory Edigarov wrote: Hello, Everybody this is directory structure: /front/admin/index.html /front/superadmin/index.html that's what I have in c

Re: need to preserve / in location

2020-04-22 Thread Gregory Edigarov
On 2020-04-22 11:46, Gregory Edigarov wrote: Hello, Everybody this is directory structure: /front/admin/index.html /front/superadmin/index.html that's what I have in config     rewrite ^/(admin)$ /$1/ last;     location /admin/ {     index index.html;     root /

need to preserve / in location

2020-04-22 Thread Gregory Edigarov
P/1.1", host: "127.0.0.1" 192.168.224.1 - - [22/Apr/2020:08:35:24 +] "GET /admin/ HTTP/1.1" 404 146 "-" "curl/7.58.0" "-" what's the right config in situation given? -- With best regards,     Gregory Edigarov ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

two identical keycloak servers + nginx as reverse proxy

2019-11-25 Thread Gregory Edigarov
Hello, Can somebody enlighten me please? i have two identical keycloak servers running in HA mode via DNS discovery keycloak1.my.domain & keycloak2.my.domain the dns discovery record is: keycloak.my.domain this part is working no questions. no i am trying to add nginx to the picture: upst

too_many_redirects

2019-07-24 Thread Gregory Edigarov via nginx
Hello, Having this setup: nginx (on host) -> nginx (in docker-nginx [WP site resides here]) -> php-fpm(in docker-php) got the error: too many redirects. what could be the problem? thanks a lot in advance. config on host nginx: server {    listen 80;    listen 443 ssl http2;    server_name

Re: How to stop nginx from adding a trailing slash

2018-03-09 Thread Gregory Edigarov
On 09.03.18 16:52, Igor Sysoev wrote: On 9 Mar 2018, at 17:06, Gregory Edigarov wrote: Hello, somesite.com/blog is 301 redirected to somesite.com/blog/ by nginx. this is not the behaviour i want. is there any way to stop it from doing so? A special location for "/blog": locati

How to stop nginx from adding a trailing slash

2018-03-09 Thread Gregory Edigarov
Hello, somesite.com/blog is 301 redirected to somesite.com/blog/ by nginx. this is not the behaviour i want. is there any way to stop it from doing so? Thank you. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngin

need help

2017-10-25 Thread Gregory Edigarov
hello, I have an app under /var/www/admin/dist: index.html bundle.js static/ and a bunch of files under static/  i need nginx to get these files  when I access https://somesite.net/admin/, not files from /admin. is that possible? thanks. ___ n

some problems with http:// -> https:// & phpMyAdmin

2015-11-16 Thread Gregory Edigarov
server { listen 80; server_name site.com www.site.com; location / { return 301 https://site.com$request_uri; } } server { listen 443; server_name site.com; [certificate setup skipped] # phpMyAdmin location /pma { proxy_set_header Host $http_host;

Re: Free O’Reilly animal book about nginx

2015-07-31 Thread Gregory Edigarov
On 07/30/2015 10:34 PM, Igor Sysoev wrote: Nearly 20 years ago I read my first O’Reilly book, Learning Perl. Back then I never would have dreamed O’Reilly would someday publish a book written about the software I created, yet here we are today. I am honored to announce that l

Re: tell nginx to stay inside same location?

2015-07-30 Thread Gregory Edigarov
On 07/30/2015 06:02 PM, Edho Arief wrote: On Thu, Jul 30, 2015 at 11:57 PM, Gregory Edigarov wrote: Hello, is that possible to tell nginx to stay inside the same location after rewrite rule is done? i.e. I have: location /njs/ { proxy_pass http://localhost:5501; .. } now, if i

tell nginx to stay inside same location?

2015-07-30 Thread Gregory Edigarov
; proxy_pass http://localhost:5501; .. } but, that doesn't work, because my uri has changed and nginx goes to the default location, which I don't need. what could I do in this situation? -- With best regards, Gregory Edigarov ___

Re: nginx removes double slashes

2014-12-30 Thread Gregory Edigarov
On 12/29/2014 06:00 PM, Maxim Dounin wrote: Hello! On Mon, Dec 29, 2014 at 01:04:06PM +0200, Gregory Edigarov wrote: Hello everybody, perhaps I am doing something wrong: location /njs/ { rewrite /njs/(.*)$ /$1 break; proxy_redirect off

Re: nginx removes double slashes

2014-12-29 Thread Gregory Edigarov
On 12/29/2014 01:04 PM, Gregory Edigarov wrote: Hello everybody, perhaps I am doing something wrong: location /njs/ { rewrite /njs/(.*)$ /$1 break; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X

nginx removes double slashes

2014-12-29 Thread Gregory Edigarov
I definitely see that to my application it comes like: http:/[hostname]/beth-buczynski/diy-ways-to-stay-warm-in-winter/ note the single '/', when I need '//' Is there any way to handle it? -- With best regards, Gregory Edigarov _

Re: nginx cache expire settings issue.Can anyone help?

2014-12-11 Thread Gregory Edigarov
you do not caching anything with proxy_pass alone. you should use proxy_cache in conjunction. On 12/11/2014 01:32 PM, anoopov wrote: Hi I am new to Nginx. I need to add expire -1 for my JSON files in the below urls https://siteaddress/foldername /default.htm#/dashboard/ui.json location /folde

Re: Creating CNAME

2014-12-10 Thread Gregory Edigarov
Hi, What are your real hostnames/domains then? On 12/10/2014 04:24 AM, krajeshrao wrote: Hi Richard , Thanks for the reply ... This issue is been for 1 month ... But still can't resolve it Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255387,255391#msg-255391

Re: Any equivalent of mod_dumpio

2013-04-17 Thread Gregory Edigarov
) suffice? -- With best regards, Gregory Edigarov ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx