Hi Francis - That would have been my suspicion as well. To test that theory, I installed the same nginx 1.10.1 RPM file on a similar CentOS 6 virtual machine in my environment. This particular VM has never been used for any nginx testing, nor has it ever had nginx installed. I tested the same server configuration as your example, but the testing VM produced the same results. The satisfy/aby daveyfx - Nginx Mailing List - English
Hi Francis - In both cases, I get a 404 response, which is to be expected as the default doc root for nginx isn't served on my host. I should expect a 401 on the second curl test, but I get a 404. HTTP/1.1 404 Not Found Server: nginx Date: Fri, 14 Apr 2017 03:44:19 GMT Content-Type: text/html Content-Length: 162 Connection: keep-alive Vary: Accept-Encoding <html> <head>by daveyfx - Nginx Mailing List - English
Hi all - I'm having an issue trying to get auth_basic and satisfy directives working in tandem. If I use auth_basic/auth_basic_user_file on its own, I am prompted for credentials as expected. However, if I added the satisfy/allow/deny directives above, it seems that ALL traffic is allowed in without prompting for auth. Here's how I have it. satisfy any; allow 38.103.XX.XXX/32;by daveyfx - Nginx Mailing List - English
uwsgi_ignore_headers Set-Cookie; This solved my issue. The header is not being sent on the home page, but is sent with almost all other pages. Thanks for the tips.by daveyfx - Nginx Mailing List - English
Realized you asked for the results of both requests. Here's the curl -svo /dev/null output from: Home page: > GET / HTTP/1.1 > User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 > Host: apps01.njprod.amc:9001 > Accept: */* > < HTTP/1.1 200 OK < X-Frame-Options: SAMEORIGIN < Content-Type: text/html; charset=utfby daveyfx - Nginx Mailing List - English
Hi Francis - In the uwsgi logs for my Python application, I see in the request logs: 38.103.38.200 () {32 vars in 503 bytes} GET /congress?mref=nav => generated 108292 bytes in 66 msecs (HTTP/1.1 200) 4 headers in 166 bytes (3 switches on core 0) I have my apps servers on the upstream configured to use uwsgi protocol (for use with uwsgi pass in nginx) and decided to see what wouldby daveyfx - Nginx Mailing List - English
Hello all - I'm having an issue where nginx is only caching homepage requests. If i send requests to my server, the HTML at the homepage is saved, but requests to any URI otherwise do not save in the cache and upstream_cache_status returns with a MISS. How can I fix my config so that requests other than / will cache properly? ## cache zone config ## uwsgi_cache_path /var/cache/nginx/fby daveyfx - Nginx Mailing List - English
Thank you, Francis. For anyone wondering what my corrected configuration looks like, here it is. All the JSON content returned by the upstream is now ignored and only caching HTML content as desired. ## cache zone config ## uwsgi_cache_path /var/cache/nginx/files keys_zone=www:10m inactive=10m; uwsgi_cache_key "$scheme$host$uri$is_args$args"; ## in http block ## map $upstreaby daveyfx - Nginx Mailing List - English
Hi all - I'm attempting to exclude application/json data from storing in nginx's cache. All other content types are OK to cache. I thought that the below config would work for me, but nginx is still caching everything that is proxying. What am I doing wrong? ## in http block ## map $http_content_type $no_cache { default 0; "application/json" 1; } #by daveyfx - Nginx Mailing List - English
Hello all - I'm attempting to do the following in nginx and having difficulty with the last step in this succession. 1) In / location, proxy_pass to Django upstream. 2) proxy_intercept_errors is on in this block and does a proxy_pass to PHP upstream if 404 is returned. 3) In PHP location block (internal), proxy_intercept_errors is on and if a 404 is returned, goes to 404 location block. 4by daveyfx - Nginx Mailing List - English
Hello - I've got nginx as a front-end to Apache and am trying to serve a single WordPress site from a location on my site. Right now I would like to test the location, but it will eventually be served as /advertise. I cannot get the WordPress site to serve correctly, however as I am seeing a 301 redirect infinite loop. nginx location directive: location ^~ /advertise-wp { iby daveyfx - Nginx Mailing List - English
lm011111 Wrote: ------------------------------------------------------- > Hello! > > is it possible that nginx will not buffer the client body before > handle the > request to upstream? > > we want to use nginx as a reverse proxy to upload very very big file > to the > upstream, but the default behavior of nginx is to save the whole > request to > theby daveyfx - Nginx Mailing List - English
Francis Daly Wrote: ------------------------------------------------------- > On Thu, Jan 10, 2013 at 11:37:44AM +0700, Edho Arief wrote: > > On Thu, Jan 10, 2013 at 11:35 AM, daveyfx <nginx-forum@nginx.us> > wrote: > > Hi there, > > > > I gave it a try and it did not work out. My access log repeated > the > > > following entry ~ 20 timeby daveyfx - Nginx Mailing List - English
Edho Arief Wrote: ------------------------------------------------------- > On Thu, Jan 10, 2013 at 11:35 AM, daveyfx <nginx-forum@nginx.us> > wrote: > > I gave it a try and it did not work out. My access log repeated the > > following entry ~ 20 times. > > > > [09/Jan/2013:23:31:47 -0500] "GET / HTTP/1.1" 302 160 "-" > "Moziby daveyfx - Nginx Mailing List - English
I gave it a try and it did not work out. My access log repeated the following entry ~ 20 times. [09/Jan/2013:23:31:47 -0500] "GET / HTTP/1.1" 302 160 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0" Firefox kindly informed me that "The page isn't redirecting properly" I'm guessing it's getting caught in an infinite redirby daveyfx - Nginx Mailing List - English
Hello all - I would like to strip all request_uri strings for a group of server names and serve up an index page. Example: Client requests http://host1.domain.com/blah, nginx will direct client to http://host1.domain.com and serve the index page. Same scenario for host2 - I would like nginx to direct client to http://host2.domain.com and serve the same index page. Would the below work?by daveyfx - Nginx Mailing List - English
Is this possible? I would like to have a server block using multiple server names. For example: server { server_name hostname1.domain.com; server_name hostname2.domain.com; rewrite ^(.*) http://$server_name; root /www/document/root; } If the user goes to http://hostname1.domain.com/blah, I would like the rewrite rule to go to http://hostname1.domain.com and serve thby daveyfx - How to...
Hello, I have deployed a WordPress single site on Apache and am running nginx in front of, reverse proxying to Apache. I tried to use this wiki article as a guideline for configuration but am getting eternally stuck. http://wiki.nginx.org/WordPress My location blocks are as follows: location / { try_files $uri $uri/ /index.php?q=$uri$is_args$args; } location ~ \by daveyfx - How to...
Hi all, I'm trying to make sure that I have my disk caching set up properly for a specific subdomain under nginx. Here's what I have in my nginx.conf: proxy_cache_path /opt/nstein/cache levels=1:2 keys_zone=CACHE:100m inactive=10m max_size=1g; proxy_temp_path /opt/nstein/cache/tmp; And here's what I have in my site config file: server { server_name media.domain.com;by daveyfx - Nginx Mailing List - English
Francis Daly Wrote: ------------------------------------------------------- > Assuming that this sentence describes your wish: > > location = /preview.php { > rewrite ^ /? permanent; > } > > (untested!) should probably Just Work. > > If you *do* want to vary based on the query string > (?-bit), the manual > has an example. > > Good luck,by daveyfx - Nginx Mailing List - English
Antonio, That did not work. I'm still getting the same end result where /preview.php?controllerName=channel&id=2 is rewritten as /?controllerName=channel&id=2 Essentially I just want to check to see if preview.php is the requested file, and if it is, redirect to / regardless of the query string appended after preview.php Thanks, Daveby daveyfx - Nginx Mailing List - English
Hi all, I'm trying to add in a rewrite rule that will take this string and just do a redirect to / /preview.php?controllerName=channel&id=2 Since the query string can vary, how would I craft my rewrite appropriately to do this? I've tried a few variations of the following, but all it does is remove the "preview.php" portion of the string, leaving the "?controllerName=chaby daveyfx - Nginx Mailing List - English
Hi all, I'm having an odd issue in my current configuration. I have nginx on the front-end, which is handling static content and passing off dynamic content requests to Apache servers in the back end. I'm having an odd issue right now with one of my location directives, which performs a proxy_pass function to an upstream Apache server. server { listen *:80; server_name www.nstein.dev rootby daveyfx - Nginx Mailing List - English
Hi all, I'm having an odd issue in my current configuration. I have nginx on the front-end, which is handling static content and passing off dynamic content requests to Apache servers in the back end. I'm having an odd issue right now with one of my location directives, which performs a proxy_pass function to an upstream Apache server. server { listen *:80; server_name www.nsteinby daveyfx - How to...
Hi all, Wondering if you all could help me convert this Apache rewrite rule over to nginx. I'm wanting to totally drop Apache in favor of PHP-FPM and already do most of my rewrites in nginx. RewriteCond %{DOCUMENT_ROOT}/$1 -f RewriteCond %{DOCUMENT_ROOT}/$1 -d RewriteRule (.*) - RewriteRule ^(.+)$ /index.php$1 Mainly where I am stumped is how can I implement a simiby daveyfx - Migration from Other Servers
Hello all, I currently have nginx configured to run in front of Apache, serving all static files and then proxying all other requests to the Apache backend. To serve our PHP documents, I'm wondering if the most efficient way to do this is via tried-and-true mod_php or would it be best to configure Apache to forward requests to FastCGI? My concern is that this adds another layer of communicatiby daveyfx - How to...
![]() |
![]() |
![]() |
![]() |
![]() |