Nginx 405 not allowed issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nginx 405 not allowed issue

ramirezc
Hi,

I want to allow to accept post request for static content by nginx server.

i have three solution so i can add patches. take a look below.

  1.) error_page 405 =200 $uri

This basically tells nginx to change the response code to 200 for 405
messages

  2.)      location / {
            rewrite ^.*$ /ampsec-tv-widget.html last;
        }
        # To allow POST on static pages
        error_page 405 = $uri;

first we send POST request to api.json (which is our static file), then we
proxy 405 error to the original url and our rewrite condition matches the
request and return api.json with 200 status code


  3.) create a proxy for static content, converting POST request to GET.

But i want to add any patch. is there is any other solution to make request
for static content by nginx server

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286195,286195#msg-286195

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Expert needed to Tuning For Best Performance

targon
Is there anyone one the list consider themselves an Nginx tuning expert interested in running some HTTP Load Testing to establish baseline
on my server and then tune config for best performance?

1000 Mbps up/down connection
Xeon E-2146G (6 core -12 thread) 3.5-4.5 GHz 
Supermicro X11SCZ-F 
32GB RAM 
Samsung SSD 860 2x512 GB SSD

I’ve been reading Denis Denisov (denji) 

NGINX Tuning For Best Performance

But this specifically says for testing not PRODUCTION.

I’m preparing my server for Production environment.

If any interest, please email me, happy to compensate for efforts.

Thanks

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx