Re: nginx configured as loadbalancer returning 404 not found

2024-05-17 Thread Kaushal Shriyan
On Fri, May 17, 2024 at 7:39 PM Sergey A. Osokin wrote: > Hi Kaushal, > > On Fri, May 17, 2024 at 04:49:59PM +0530, Kaushal Shriyan wrote: > > > > I am running nginx version 1.26 on "Ubuntu 22.04.4 LTS" I have configured > > the nginx as load balancer and the

nginx configured as loadbalancer returning 404 not found

2024-05-17 Thread Kaushal Shriyan
Hi, I am running nginx version 1.26 on "Ubuntu 22.04.4 LTS" I have configured the nginx as load balancer and the configuration details are as follows # nginx -v nginx version: nginx/1.26.0 # server { listen 8085; #server_name 172.30.2.11; server name 210.11.1.110;

Re: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

2023-12-18 Thread Kaushal Shriyan
On Mon, Dec 18, 2023 at 11:19 PM Sergey A. Osokin wrote: > Hi Kaushal, > > On Mon, Dec 18, 2023 at 10:24:14PM +0530, Kaushal Shriyan wrote: > > > > I am running nginx version: nginx/1.24.0 as reverse proxy on CentOS Linux > > release 7.9.2009 (Core). I have the below

Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

2023-12-18 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.24.0 as reverse proxy on CentOS Linux release 7.9.2009 (Core). I have the below config file /etc/nginx/conf.d/microservice.conf I want to capture full request/response body logging in nginx. # cat /etc/nginx/conf.d/microservice.conf server { lis

Re: Disable http_dav_module in Nginx Web server (version nginx/1.24.0)

2023-11-28 Thread Kaushal Shriyan
vailable in the > pkg-oss repo, [1], update configure options and rebuild the package > for your needs. > > References > -- > 1. https://hg.nginx.org/pkg-oss/ > > Thank you. > > -- > Sergey A. Osokin > > On Tue, Nov 28, 2023 at 12:39:47AM +0530, Kaushal Shriy

Disable http_dav_module in Nginx Web server (version nginx/1.24.0)

2023-11-27 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.24.0 on Red Hat Enterprise Linux release 8.8 (Ootpa). Is there a way to disable http_dav_module in Nginx Web server? # nginx -v nginx version: nginx/1.24.0 # cat /etc/redhat-release Red Hat Enterprise Linux release 8.8 (Ootpa). # # nginx -V 2>&1 | grep http

Re: Enable two way SSL on Nginx web server

2023-08-18 Thread Kaushal Shriyan
On Fri, Aug 18, 2023 at 1:39 PM Aleksandar Lazic wrote: > Hi Kaushal. > > On 2023-08-18 (Fr.) 03:22, Kaushal Shriyan wrote: > > Hi, > > > > I am running nginx version: nginx/1.24.0 on CentOS Linux > > release 7.9.2009 (Core) > > > > # nginx -v &

How to run a shell script on every request?

2023-08-18 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.24.0 on CentOS Linux release 7.9.2009 (Core) # nginx -v nginx version: nginx/1.24.0 # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) # I want to run a shell script every time my nginx server receives any HTTP request. Any simple ways to do t

Enable two way SSL on Nginx web server

2023-08-17 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.24.0 on CentOS Linux release 7.9.2009 (Core) # nginx -v nginx version: nginx/1.24.0 # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) # Is there a way to enable two way SSL on Nginx web server? Please guide me. Thanks in Advance. Best Regar

Upload files and folders to nginx web server from the browser

2023-08-08 Thread Kaushal Shriyan
Hi, Is there a way to upload files to nginx web server https://software.mydomain.com from the browser ? I have the below nginx config file. I am running nginx version: nginx/1.24.0 on CentOS Linux release 7.9.2009 (Core) # nginx -v nginx version: nginx/1.24.0 # cat /etc/redhat-release CentOS Linu

Re: Upstream service php-fpm is up and running but reports {"errors": {"status_code": 502,"status": "php-fpm server is down"}}

2023-01-06 Thread Kaushal Shriyan
On Sat, Jan 7, 2023 at 2:56 AM Francis Daly wrote: > On Thu, Jan 05, 2023 at 10:15:34PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > When I hit http://mydomain.com/apis for conditions when MySQL DB is > down. I > > get the below output and it works as expected. &

Re: Upstream service php-fpm is up and running but reports {"errors": {"status_code": 502,"status": "php-fpm server is down"}}

2023-01-05 Thread Kaushal Shriyan
m/apis for conditions when MySQL DB is up and running fine, I get the below output in spite of MySQL DB server being fine. {"errors": "MySQL DB Server is down"} Ideally the application will be working as normal. Am I missing anything in the nginx config? I have tested using the at

Re: Upstream service php-fpm is up and running but reports {"errors": {"status_code": 502,"status": "php-fpm server is down"}}

2023-01-04 Thread Kaushal Shriyan
rver is down"} in spite of MySQL DB server being fine. Please suggest. Thanks in advance. Best Regards, Kaushal On Thu, Dec 22, 2022 at 7:04 AM Maxim Dounin wrote: > Hello! > > On Tue, Dec 20, 2022 at 11:44:05PM +0530, Kaushal Shriyan wrote: > > > On Sat, Dec 17, 2022 at 3

Re: Upstream service php-fpm is up and running but reports {"errors": {"status_code": 502,"status": "php-fpm server is down"}}

2022-12-16 Thread Kaushal Shriyan
out being intercepted by the Nginx web server. Any examples? I have attached the file for your reference. Please guide me. Thanks in advance. Best Regards, Kaushal On Fri, Dec 16, 2022 at 7:22 AM Kaushal Shriyan wrote: > > > On Fri, Dec 16, 2022 at 1:38 AM Maxim Dounin wrote: > >&g

Re: Upstream service php-fpm is up and running but reports {"errors": {"status_code": 502,"status": "php-fpm server is down"}}

2022-12-15 Thread Kaushal Shriyan
On Fri, Dec 16, 2022 at 1:38 AM Maxim Dounin wrote: > Hello! > > On Thu, Dec 15, 2022 at 09:53:11PM +0530, Kaushal Shriyan wrote: > > > > > I am running the nginx version: nginx/1.22 as a reverse proxy server on > > CentOS Linux release 7.9.2009 (Core). When I hi

Re: Upstream service php-fpm is up and running but reports {"errors": {"status_code": 502,"status": "php-fpm server is down"}}

2022-12-15 Thread Kaushal Shriyan
On Thu, Dec 15, 2022 at 9:53 PM Kaushal Shriyan wrote: > Hi, > > I am running the nginx version: nginx/1.22 as a reverse proxy server on > CentOS Linux release 7.9.2009 (Core). When I hit http://mydomain.com/apis I > see the below message on the browser even if the upstream

Upstream service php-fpm is up and running but reports {"errors": {"status_code": 502,"status": "php-fpm server is down"}}

2022-12-15 Thread Kaushal Shriyan
Hi, I am running the nginx version: nginx/1.22 as a reverse proxy server on CentOS Linux release 7.9.2009 (Core). When I hit http://mydomain.com/apis I see the below message on the browser even if the upstream server php-fpm server is up and running. *{"errors": {"status_code": 502,"status": "php

Re: nginx returns html instead of json response

2022-11-30 Thread Kaushal Shriyan
On Tue, Nov 29, 2022 at 9:58 PM Kaushal Shriyan wrote: > Hi Francis, > > Thanks a lot for all your help and support. It worked. I have configured > the below settings in nginx after a few attempts by tweaking it. It worked > like a charm. > > location /apis { >

Re: nginx returns html instead of json response

2022-11-29 Thread Kaushal Shriyan
Francis Daly wrote: > On Wed, Nov 23, 2022 at 11:27:35PM +0530, Kaushal Shriyan wrote: > > On Wed, Nov 23, 2022 at 11:20 PM Francis Daly > wrote: > > Hi there, > > > I am not sure about this line error_page 555 /dummyfile; what does 555 > > code mean and what

Nginx and PHP-FastCGI Process Manager

2022-11-25 Thread Kaushal Shriyan
Hi, I am using nginx web server and php-fpm backend service to process all php files. NGINX proxies web requests and passes them on to PHP-FPM worker processes that execute the PHP application. Is there a way to capture both response header and body which are processed by PHP-FPM application? Also

Re: nginx returns html instead of json response

2022-11-23 Thread Kaushal Shriyan
On Wed, Nov 23, 2022 at 11:20 PM Francis Daly wrote: > On Tue, Nov 22, 2022 at 07:52:41PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > map $sent_http_content_type $enableerror { > > defaulton; > > application/json off; &

Re: nginx returns html instead of json response

2022-11-23 Thread Kaushal Shriyan
On Tue, Nov 22, 2022 at 7:52 PM Kaushal Shriyan wrote: > Hi Francis, > > I tried the below to handle JSON responses from the PHP-FPM backend. > > *Line no from 1 to 4(*nginxtest.conf*)* > map $sent_http_content_type $enableerror { > defaulton; &

Re: nginx returns html instead of json response

2022-11-22 Thread Kaushal Shriyan
r me. Am I missing anything? Please guide me. Best Regards, Kaushal On Tue, Nov 22, 2022 at 12:53 AM Francis Daly wrote: > On Sat, Nov 19, 2022 at 09:09:34PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > On 500 errors also we are handling at Drupal and sending JSON re

Re: nginx returns html instead of json response

2022-11-19 Thread Kaushal Shriyan
On Sat, Nov 19, 2022 at 12:02 AM Francis Daly wrote: > On Fri, Nov 18, 2022 at 11:10:20PM +0530, Kaushal Shriyan wrote: > > On Fri, Nov 18, 2022 at 9:37 PM Francis Daly wrote: > > Hi there, > > > Thanks Francis for your email response. Let me explain with two &

Re: nginx returns html instead of json response

2022-11-18 Thread Kaushal Shriyan
On Fri, Nov 18, 2022 at 9:37 PM Francis Daly wrote: > On Fri, Nov 18, 2022 at 07:07:41PM +0530, Kaushal Shriyan wrote: > > On Thu, Nov 17, 2022 at 10:57 PM Francis Daly > wrote: > > Hi there, > > > Please let me know if you need any additional information and I look

Re: nginx returns html instead of json response

2022-11-18 Thread Kaushal Shriyan
On Thu, Nov 17, 2022 at 10:57 PM Francis Daly wrote: > On Mon, Nov 14, 2022 at 08:24:15PM +0530, Kaushal Shriyan wrote: > > > On Fri, Nov 11, 2022 at 2:38 PM Francis Daly > wrote: > > Hi there, > > > >> What one specific request do you want to make? (Maybe &g

Re: nginx returns html instead of json response

2022-11-16 Thread Kaushal Shriyan
On Thu, Nov 17, 2022 at 3:13 AM Sergey A. Osokin wrote: > On Wed, Nov 16, 2022 at 10:29:04PM +0530, Kaushal Shriyan wrote: > > Checking in again if someone can help me with my earlier post to this > > mailing list? Thanks in advance. > > I'd recommend to take a look on

Re: nginx returns html instead of json response

2022-11-16 Thread Kaushal Shriyan
On Mon, Nov 14, 2022 at 8:24 PM Kaushal Shriyan wrote: > > >> On Fri, Nov 11, 2022 at 2:38 PM Francis Daly wrote: >> >>> On Wed, Nov 09, 2022 at 11:45:20PM +0530, Kaushal Shriyan wrote: >>> >>> Hi there, >>> >>> > Che

Re: nginx returns html instead of json response

2022-11-14 Thread Kaushal Shriyan
> On Fri, Nov 11, 2022 at 2:38 PM Francis Daly wrote: > >> On Wed, Nov 09, 2022 at 11:45:20PM +0530, Kaushal Shriyan wrote: >> >> Hi there, >> >> > Checking in again if someone can help me with my earlier post to this >> > mailing list? >> >

Re: nginx returns html instead of json response

2022-11-11 Thread Kaushal Shriyan
Thanks Francis for the email and appreciate it. I will explain in detail about this specific usecase. Thanks once again. On Fri, Nov 11, 2022 at 2:38 PM Francis Daly wrote: > On Wed, Nov 09, 2022 at 11:45:20PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > Checking in ag

Re: nginx returns html instead of json response

2022-11-09 Thread Kaushal Shriyan
"detail" => $this->t("There are some wrong inputs passed to DB which caused this issue."), Please guide me. Thanks in advance. I look forward to hearing from you. Best Regards, Kaushal On Tue, Nov 8, 2022 at 1:25 PM Kaushal Shriyan wrote: > > > On T

Re: nginx returns html instead of json response

2022-11-07 Thread Kaushal Shriyan
On Tue, Nov 8, 2022 at 11:20 AM Maxim Dounin wrote: > Hello! > > On Mon, Nov 07, 2022 at 08:59:51PM +0530, Kaushal Shriyan wrote: > > > I am running the nginx version: nginx/1.22 as a reverse proxy server on > > CentOS Linux release 7.9.2009 (Core). Is there a way to

Re: nginx returns html instead of json response

2022-11-07 Thread Kaushal Shriyan
On Mon, Nov 7, 2022 at 9:40 PM Dan G. Switzer, II wrote: > The "internal" keyword indicates only internal request can access the > location: > > http://nginx.org/en/docs/http/ngx_http_core_module.html#internal > > So hitting ttp://mydomain.com/api/v1/* with CURL would never hit this > location.

nginx returns html instead of json response

2022-11-07 Thread Kaushal Shriyan
Hi, I am running the nginx version: nginx/1.22 as a reverse proxy server on CentOS Linux release 7.9.2009 (Core). Is there a way to return json response when i hit http://mydomain.com/api/v1/* instead of the html response. location /api/v1/* { internal; add_header 'Content-Type' 'applicat

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-08 Thread Kaushal Shriyan
. Best Regards, Kaushal On Mon, May 9, 2022 at 8:30 AM Sergey A. Osokin wrote: > Hi Kaushal, > > On Mon, May 09, 2022 at 07:56:50AM +0530, Kaushal Shriyan wrote: > > Hi Sergey, > > > > I am not sure if I completely understand > > https://github.com/FRiCKLE/n

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-08 Thread Kaushal Shriyan
gt; On Sun, May 08, 2022 at 03:52:16PM +0530, Kaushal Shriyan wrote: > > Hi, > > > > I am attaching the nginx file for your reference. Please guide me. Thanks > > in advance. > > [ ... ] > > Well, you did absolutely right when you raised an issue for the vendor of

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-08 Thread Kaushal Shriyan
nginx nginx 16 May 4 17:21 9 drwx-- 4 nginx nginx 26 May 8 06:04 a drwx-- 5 nginx nginx 36 May 8 06:30 c drwx-- 3 nginx nginx 16 May 5 06:21 d drwx-- 4 nginx nginx 26 May 5 08:03 f # Best Regards, Kaushal On Sun, May 8, 2022 at 3:52 PM Kaushal Shriyan wrote: > Hi, >

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-08 Thread Kaushal Shriyan
Hi, I am attaching the nginx file for your reference. Please guide me. Thanks in advance. Best Regards, Kaushal Best Regards, Kaushal On Sun, May 8, 2022 at 1:38 PM Kaushal Shriyan wrote: > Hi, > > I have a follow up question. when i run using Method PURGE I am > encounter

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-08 Thread Kaushal Shriyan
Hi, I have a follow up question. when i run using Method PURGE I am encountering http 404 whereas when i run using Method GET. *404 Not Found* #curl -vvv -X PURGE -I https://testnginxproxycachepurge.testintcraft.com/apis * About to connect() to testnginxproxycachepurge.testintcraft.com port 443

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-07 Thread Kaushal Shriyan
gzip on; include /etc/nginx/conf.d/*.conf; } # nginx -t -c /etc/nginx/nginx.conf nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful # Best Regards, Kaushal On Sun, May 8, 2022 at 10:28 AM Kaushal Shriyan wro

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-07 Thread Kaushal Shriyan
nx.conf nginx: [emerg] unknown directive "proxy_cache_purge" in /etc/nginx/conf.d/default.conf:103 nginx: configuration file /etc/nginx/nginx.conf test failed I have the nginx module /etc/nginx/modules/ngx_http_cache_purge_module.so and I am attaching the file for your reference. Please co

Re: building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-07 Thread Kaushal Shriyan
conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed Please correct and guide me if I am missing something. Thanks in advance. Best Regards, Kaushal On Sat, May 7, 2022 at 7:32 PM Sergey A. Osokin wrote: > Hi Kaushal, > > On Sat, May 07, 2022 at 06:31:59PM +0530, Kaushal Shr

building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

2022-05-07 Thread Kaushal Shriyan
Hi, I am referring to https://github.com/FRiCKLE/ngx_cache_purge/ and running the open source nginx version: nginx/1.20.2 on CentOS Linux release 7.9.2009 (Core). When i trying to compile the ngx_cache_purge_module.c I am encountering fatal error: nginx.h: No such file or directory # ls -l total

Re: Purge the Nginx cache

2022-05-03 Thread Kaushal Shriyan
On Tue, May 3, 2022 at 5:30 PM Francis Daly wrote: > On Tue, May 03, 2022 at 03:59:48PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > I am following https://bluegrid.io/edu/how-to-purge-the-nginx-cache/ and > > have attached the nginx config file for your referen

Re: Purge the Nginx cache

2022-05-03 Thread Kaushal Shriyan
7Ch%3Ae; expires=Tue, 03-May-2022 08:39:15 GMT; Max-Age=30; path=/ Last-Modified: Tue, 26 Apr 2022 11:42:25 GMT ETag: "1650973345" Access-Control-Allow-Origin: * *X-Cache-Status: HIT* Please guide me. Thanks in advance. Best Regards, Kaushal On Tue, May 3, 2022 at 1:59 PM Francis Daly

Re: Purge the Nginx cache

2022-05-02 Thread Kaushal Shriyan
? Thanks in Advance. Best Regards, Kaushal On Fri, Apr 29, 2022 at 11:44 PM Kaushal Shriyan wrote: > > On Fri, Apr 29, 2022 at 12:54 AM Kaushal Shriyan > wrote: > >> Hi, >> >> I am following >> https://www.ryadel.com/en/nginx-purge-proxy-cache-delete-inv

Re: Purge the Nginx cache

2022-04-29 Thread Kaushal Shriyan
On Fri, Apr 29, 2022 at 12:54 AM Kaushal Shriyan wrote: > Hi, > > I am following > https://www.ryadel.com/en/nginx-purge-proxy-cache-delete-invalidate-linux-centos-7/ > and https://bluegrid.io/edu/how-to-purge-the-nginx-cache/ to purge cache. > I am attaching the nginx file

Re: Purge the Nginx cache

2022-04-28 Thread Kaushal Shriyan
PIRED in context to Nginx cache. Please guide me. Thanks in advance. Best Regards, Kaushal On Wed, Apr 27, 2022 at 2:12 AM Sergey A. Osokin wrote: > Hi Kaushal, > > On Tue, Apr 26, 2022 at 11:54:01PM +0530, Kaushal Shriyan wrote: > > Hi Sergey, > > > > I have gone throug

Re: Purge the Nginx cache

2022-04-26 Thread Kaushal Shriyan
"proxy_cache_purge" in /etc/nginx/conf.d/default.conf:75 nginx: [emerg] unknown directive "proxy_cache_purge" Please guide me. Thanks in advance. Best Regards, Kaushal On Tue, Apr 26, 2022 at 11:28 PM Kaushal Shriyan wrote: > Hi Sergey, > > I have followed the document to p

Re: Purge the Nginx cache

2022-04-26 Thread Kaushal Shriyan
; path=/ Last-Modified: Tue, 26 Apr 2022 11:42:25 GMT ETag: "1650973345" Access-Control-Allow-Origin: * *X-Cache-Status: HIT* Instead of *Cache: BYPASS*, I see *X-Cache-Status: HIT *as the response. Please guide me. Thanks in advance. Best Regards, Kaushal On Fri, Apr 22, 2022 at 11:21 PM Kaus

Re: Purge the Nginx cache

2022-04-22 Thread Kaushal Shriyan
On Fri, Apr 22, 2022 at 11:11 PM Sergey A. Osokin wrote: > On Fri, Apr 22, 2022 at 10:56:27PM +0530, Kaushal Shriyan wrote: > > On Fri, Apr 22, 2022 at 10:31 PM Sergey A. Osokin > > > > > > I'd recommend to follow the NGINX Admin Guide, please visit the > fol

Re: Purge the Nginx cache

2022-04-22 Thread Kaushal Shriyan
On Fri, Apr 22, 2022 at 10:31 PM Sergey A. Osokin wrote: > Hi Kaushal, > > hope you're doing well. > > On Fri, Apr 22, 2022 at 10:03:57PM +0530, Kaushal Shriyan wrote: > > Hi, > > > > I am running the nginx version: nginx/1.20.2 as a reverse proxy serve

Purge the Nginx cache

2022-04-22 Thread Kaushal Shriyan
Hi, I am running the nginx version: nginx/1.20.2 as a reverse proxy server on CentOS Linux release 7.9.2009 (Core). Is there a way to purge the cache without restarting the nginx server? I am reading a blog which says to use nginx bypass purge cache method instead of manually purging Nginx cache u

Re: 404 Not Found while accessing the file

2021-08-03 Thread Kaushal Shriyan
On Tue, Aug 3, 2021 at 11:37 PM Maxim Dounin wrote: > Hello! > > On Tue, Aug 03, 2021 at 09:13:06PM +0530, Kaushal Shriyan wrote: > > > On Mon, Aug 2, 2021 at 11:18 PM Maxim Dounin wrote: > > > > > On Mon, Aug 02, 2021 at 09:12:59PM +0530, Kaushal Shriyan wrote:

Re: 404 Not Found while accessing the file

2021-08-03 Thread Kaushal Shriyan
On Mon, Aug 2, 2021 at 11:18 PM Maxim Dounin wrote: > Hello! > > On Mon, Aug 02, 2021 at 09:12:59PM +0530, Kaushal Shriyan wrote: > > > I am running nginx version: nginx/1.20.1 on CentOS Linux release 7.9.2009 > > (Core). When I am accessing > > > https://dsmad

404 Not Found while accessing the file

2021-08-02 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.20.1 on CentOS Linux release 7.9.2009 (Core). When I am accessing https://dsmadeveloperportal.mydomain.com/sites/default/files/2020-08/dsmaAccount%20and%20Transaction%20API%20Specification_2_1.yml, I am encountering 404 Not Found while accessing it. On the

SSL Cipher suites settings in Nginx webserver

2021-05-03 Thread Kaushal Shriyan
Hi, I am using Lets Encrypt SSL Certificates for Nginx 1.20.00 webserver running on CentOS Linux release 7.9.2009 (Core). I will appreciate it if someone can guide me to set the cipher suites in the Nginx Webserver config. I am referring to https://ssl-config.mozilla.org/. Is there a way to verify

Seeing ^(.*/)index\.php/(.*)" does not match in nginx error log file.

2021-04-25 Thread Kaushal Shriyan
Hi, I am running Nginx version: nginx/1.20.0 on CentOS Linux release 7.9.2009 (Core). I am seeing the below information in the Nginx error file. 2021/04/25 07:47:40 [notice] 15635#15635: *5 "^(.*/)index\.php/(.*)" does > not match > "/themes/contrib/bootstrap_barrio/css/components/node.css?qs338m

Re: a duplicate default server for 0.0.0.0:80 in /etc/nginx/nginx.conf:39

2020-11-25 Thread Kaushal Shriyan
On Tue, Nov 24, 2020 at 11:40 PM Kaushal Shriyan wrote: > Hi, > > I have two nginx.conf file /etc/nginx/conf.d/onetest.conf > and /etc/nginx/nginx.conf. Basically the first config file works without > any issue while redirecting from port 80 to 443. I want to enable the port >

a duplicate default server for 0.0.0.0:80 in /etc/nginx/nginx.conf:39

2020-11-24 Thread Kaushal Shriyan
Hi, I have two nginx.conf file /etc/nginx/conf.d/onetest.conf and /etc/nginx/nginx.conf. Basically the first config file works without any issue while redirecting from port 80 to 443. I want to enable the port redirect from port 80 to 443 in /etc/nginx/nginx.conf. when I add the below block in /et

Hide HTTP headers in nginx

2020-11-12 Thread Kaushal Shriyan
Hi, As part of the security audit, I have set server_tokens off; in /etc/nginx/nginx.conf. Is there a way to hide Server: nginx, X-Powered-By and X-Generator? To hide the below HTTP headers Server: nginx > X-Powered-By: PHP/7.2.34 > X-Generator: Drupal 8 (https://www.drupal.org) curl -i -H Hos

Re: Forbid web.config page from the browser as in https://mydomain.com/web.config

2020-11-12 Thread Kaushal Shriyan
On Thu, Nov 12, 2020 at 8:13 PM Francis Daly wrote: > On Thu, Nov 12, 2020 at 07:17:46PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > I am running the Nginx version: nginx/1.16.1 on CentOS Linux release > > 7.8.2003 (Core). I am trying to forbid/prevent web.config

Forbid web.config page from the browser as in https://mydomain.com/web.config

2020-11-12 Thread Kaushal Shriyan
Hi, I am running the Nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core). I am trying to forbid/prevent web.config file to download it from the browser. When I hit https://mydomain.com/web.config it is allowing me to download instead of forbidding the page ( 403 Forbidden). I am sh

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 > r

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 >

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

upstream timed out (110: Connection timed out) while reading response header from upstream.

2020-09-24 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.14.1 on Red Hat Enterprise Linux release 8.1 (Ootpa) with php-fpm PHP 7.2.24 (fpm-fcgi) (built: Oct 22 2019 08:28:36) FastCGI Process Manager for PHP. When I clear the cache in Drupal CMS (https://www.drupal.org/) it returns http status code 504. I have atta

Re: Difference between Mainline and Stable Nginx version

2020-09-24 Thread Kaushal Shriyan
On Thu, Sep 24, 2020 at 7:51 PM Thomas Ward wrote: > Depending on your needs, I'd favor STable over Mainline. > > Stable is just that - the current release of NGINX that is considered > 'stable' and doesn't have many new feature changes to it or new things that > Mainline will have. > > Mainline

Difference between Mainline and Stable Nginx version

2020-09-24 Thread Kaushal Shriyan
Hi, I am running CentOS Linux release 7.8.2003 (Core) and referring to https://nginx.org/en/linux_packages.html#RHEL-CentOS. Are there any difference between stable and mainline version?Should we need to use stable or mainline for Production environment? [nginx-stable] > name=nginx stable repo >

Re: nginx subsite configuration not working

2020-08-02 Thread Kaushal Shriyan
On Sun, Aug 2, 2020 at 7:06 PM Miguel C wrote: > Looks like it's a Drupal (php) site just pointing it to index.php won't > work you need to have a back end for PHP I.E. php-fpm and setup nginx > to use fastcgi proxy. > > The exact config might be different depending on how urls are handled in

Re: nginx subsite configuration not working

2020-08-02 Thread Kaushal Shriyan
On Sun, Aug 2, 2020 at 5:18 AM Kaushal Shriyan wrote: > > > On Sat, Aug 1, 2020 at 10:42 PM Thomas Ward > wrote: > >> 301 Redirects don't work for full system paths because they are returned >> to the client saying "go here instead". It then interprets

Re: nginx subsite configuration not working

2020-08-01 Thread Kaushal Shriyan
On Sat, Aug 1, 2020 at 10:42 PM Thomas Ward wrote: > 301 Redirects don't work for full system paths because they are returned > to the client saying "go here instead". It then interprets your path as a > URI which doesn't exist inside your site docroot. > > You might have meant to use `root` ins

nginx subsite configuration not working

2020-08-01 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core). I am setting up the Nginx subsite configuration. The details are as follows. [root@developerportal www]# pwd /var/www [root@developerportal www]# ls -l total 0 drwxr-xr-x 2 root root 6 Apr 2 18:44 cgi-bin dr

Re: Testing the performance of NGINX for both http and https traffic.

2020-06-17 Thread Kaushal Shriyan
On Tue, Jun 16, 2020 at 8:16 PM Kaushal Shriyan wrote: > Hi, > > I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 > (Core) and have hosted my website on nginx for both http (port 80) and > https (port 443) traffic. Is there a way to find out the

Testing the performance of NGINX for both http and https traffic.

2020-06-16 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core) and have hosted my website on nginx for both http (port 80) and https (port 443) traffic. Is there a way to find out the below mentioned performance metrics. 1. Measure Nginx webserver performance for both htt

Re: redirect from http (port 80) to https (port 443) not working.

2020-06-16 Thread Kaushal Shriyan
On Mon, Jun 15, 2020 at 11:55 PM Reinis Rozitis wrote: > > return 301 return 301 https://$server_name$request_uri; > > Obviously a typo just a single return 301. > > rr > > > Thanks Reinis for the email and much appreciated. It worked like a charm.

redirect from http (port 80) to https (port 443) not working.

2020-06-15 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core). When I hit https://marketplace.mydomain.com it works perfectly fine whereas when I hit http://marketplace.mydomain.com (port 80) does not get redirected to https://marketplace.mydomain.com (port 443). I have the

Re: Access to XMLHttpRequest has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

2020-05-28 Thread Kaushal Shriyan
On Thu, May 28, 2020 at 6:11 PM Francis Daly wrote: > On Thu, May 28, 2020 at 12:50:34PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > Access to XMLHttpRequest at ‘ > > > https://tmobilereactdrupal.mydomain.com:8080/oauth/token’ from origin > ‘ > > >

Access to XMLHttpRequest has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

2020-05-28 Thread Kaushal Shriyan
Hi, I am running Nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core) and have hosted react.js javascript 16.13.1 and Drupal CMS Framework 8.7.8. https://tmobilereactdrupal.mydomain.com (react.js javascript 16.13.1) which in turn talks to https://tmobilereactdrupal.mydomain.com:8080

TLS 1.3 not offered and downgraded to a weaker protocol

2020-03-11 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.7.1908 (Core). I have configured *ssl_protocols TLSv1.2 TLSv1.3*; in /etc/nginx/nginx.conf. #nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is succ

Suggest strong cipher suites

2020-03-02 Thread Kaushal Shriyan
Hi, We are using Nginx Web server on CentOS Linux release 7.7.1908 (Core) *OpenSSL Version* #openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 # *Nginx Version* #rpm -qa | grep nginx nginx-1.16.1-1.el7.x86_64 # Can someone please suggest me to use strong cipher suites for SSL/TLS encryption. Tha

Re: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 9:08 PM Reinis Rozitis wrote: > > I did follow your steps. My nginx.conf file is > https://paste.centos.org/view/ae22889e when I run the curl call, I am > still receiving HTTP 200 OK response instead of HTTP 444 (No Response) as > per the below output > > If you've just ca

Re: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 2:29 PM Reinis Rozitis wrote: > > So either place it as first or add listen 443 default_server; > > By first I mean the "catch all" server { server_name _; .. } block. > > rr > > ___ > nginx mailing list > nginx@nginx.org > http

Re: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 1:23 PM Reinis Rozitis wrote: > > I have added the below server block in /etc/nginx/nginx.conf ( > https://paste.centos.org/view/raw/d5e90b98) > > > > server { > > listen 80; > >server_name _; > >return 444; > > } > > > > When i try to run the below

Re: Prevent Arbitary HTTP Host header in nginx

2020-02-27 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 1:21 AM Reinis Rozitis wrote: > > Is there a way to prevent Arbitrary HTTP Host header in Nginx? > Penetration test has reported accepting arbitrary host headers. Thanks in > Advance and I look forward to hearing from you. > > You can always define "catch all" server block

Prevent Arbitary HTTP Host header in nginx

2020-02-27 Thread Kaushal Shriyan
Hi, Is there a way to prevent Arbitrary HTTP Host header in Nginx? Penetration test has reported accepting arbitrary host headers. Thanks in Advance and I look forward to hearing from you. More Information as below:- https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attack

nginx prevent file download

2018-08-29 Thread Kaushal Shriyan
Hi, I am running nginx webserver and i have set the below location block in nginx.conf configuration file to prevent a file to download. When i hit http://example.com/web.config on the browser, the web.config file gets downloaded. It is not working. location ~* \.(config)$ { deny all; } I

Re: 413 Request Entity Too Large

2018-06-18 Thread Kaushal Shriyan
On Mon, Jun 18, 2018 at 10:03 PM Kaushal Shriyan wrote: > > > On Sat, Jun 16, 2018 at 1:36 PM Aleksandar Lazic wrote: > >> Hi. >> >> On 16/06/2018 10:56, Kaushal Shriyan wrote: >> >Hi, >> > >> >I am encountering 413 Request Entity Too L

Re: 413 Request Entity Too Large

2018-06-18 Thread Kaushal Shriyan
On Sat, Jun 16, 2018 at 1:36 PM Aleksandar Lazic wrote: > Hi. > > On 16/06/2018 10:56, Kaushal Shriyan wrote: > >Hi, > > > >I am encountering 413 Request Entity Too Large in the browser. I have > >added upload_max_filesize = 20M. I have added client_max_body_si

413 Request Entity Too Large

2018-06-15 Thread Kaushal Shriyan
Hi, I am encountering 413 Request Entity Too Large in the browser. I have added upload_max_filesize = 20M. I have added client_max_body_size 20M; in nginx.conf and i am still facing the issue. nginx version is 1.12. Please let me know if you need any additional information. Any help will be highl

Re: Allow and Deny IP's

2018-02-07 Thread Kaushal Shriyan
On Wed, Feb 7, 2018 at 5:32 AM, Francis Daly wrote: > On Mon, Feb 05, 2018 at 11:56:04PM +0530, Kaushal Shriyan wrote: > > Hi there, > > > When i run this curl call -> curl -X GET http://13.127.165.226/ -H > > 'cache-control: no-cache' -H 'postman-token

Re: Allow and Deny IP's

2018-02-06 Thread Kaushal Shriyan
On Tue, Feb 6, 2018 at 5:32 AM, Ph. Gras wrote: > Hello there! > > > location ~* wp-login\.php$ { > allow 127.0.0.1; > allow A.B.C.D; // My server's IP > allow E.F.G.H/13; // The IP range where I am > deny all; > if ($http_user_agent

Allow and Deny IP's

2018-02-05 Thread Kaushal Shriyan
Hi, When i run this curl call -> curl -X GET http://13.127.165.226/ -H 'cache-control: no-cache' -H 'postman-token: 2494a4a7-6791-2426-cedf-d0bcaa1cd90a' -H 'x-forwarded-for: 12.12.12.13.11' Ideally the request should not be allowed and the access log should report 403 instead of 200 I get 200 OK

Naxsi Nginx security module in nginx webserver

2017-07-23 Thread Kaushal Shriyan
Hi, I will appreciate if somebody can pitch in for help for earlier post to this mailing list. Thanks in Advance. Regards, Kaushal ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Naxsi Nginx security module in nginx webserver

2017-07-19 Thread Kaushal Shriyan
On Tue, Jul 18, 2017 at 12:01 PM, Kaushal Shriyan wrote: > Hi, > > Are there any rpm binary package or yum repo for CentOS 7.x to install > Naxsi Nginx security module in nginx webserver? > > Regards, > > Kaushal > > Hi, I will appreciate if somebody can pitch i

Naxsi Nginx security module in nginx webserver

2017-07-17 Thread Kaushal Shriyan
Hi, Are there any rpm binary package or yum repo for CentOS 7.x to install Naxsi Nginx security module in nginx webserver? Regards, Kaushal ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx