sub_filter and proxy_pass
Hi,I'm using Nginx 1.8 and trying to add a sub_filter but It fails to work (I don't see the substitution happenning).location ~* \.(appcache|manifest)$ {expires -1;rewrite ^(/v[0-9]+/.*)$ /app_ver$1...
View Articleremove nginx from https response header
nginx 1.9.5I know how to remove or change the "nginx" string in the server field of the response header.For http traffic modify the ../src/http/ngx_http_header_filter_module.cBut https (http2) traffic...
View ArticleRe: remove nginx from https response header
See ngx_http_v2_filter_module.c;(218 ) len += 1 + clcf->server_tokens ? ngx_http_v2_literal_size(NGINX_VER)(411 ) *pos++ = NGX_HTTP_V2_ENCODE_RAW | (sizeof(NGINX_VER) - 1);(412 ) pos =...
View Articlesetting expires with multiple values for same object
HiI am trying set a value for expire with a combination in my nginx configuration. we need to set expire for objects in a specified location of nginx configuration to have expire at every 2 hours and...
View ArticleDynamic folder passwords
Hey thereDoes anyone have any suggestions how to do dynamic folder based authentication (folders created & passwords set by python script)? usually we would use directory level htpasswd/htaccess...
View ArticleRe: Dynamic folder passwords
Almost what you want http://stackoverflow.com/questions/9281564/nginx-auth-basic-for-everything-except-a-specific-location
View ArticleHaving trouble getting Mediawiki behind Nginx
I'm trying to setup Mediawiki behind Nginx with PHP-FPM. I found an old config that the Nginx wiki used to use? I get a 403 when accessing wiki.example.com, and a blank page when accessing index.php,...
View ArticleNginx cache 1 KEY into multiple cache files (cache not running)
Hello all!First, the specs:nginx version: nginx/1.8.0built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)built with OpenSSL 1.0.1e-fips 11 Feb 2013TLS SNI support enabledconfigure arguments:...
View ArticleRe: Nginx cache 1 KEY into multiple cache files (cache not running)
Some more interesting data: sometimes it HIT cache, sometimes not..... depending of referer???? I do not know how... I cannot imagine why.(consecutive log lines filtering by uri.... I did not remove...
View ArticleRe: Nginx cache 1 KEY into multiple cache files (cache not running)
> proxy_cache_key $cache_uri;Try:proxy_cache_key $scheme$host$request_method$request_uri;
View ArticleRe: Nginx cache 1 KEY into multiple cache files (cache not running)
itpp2012 Wrote:-------------------------------------------------------> > proxy_cache_key $cache_uri;>> Try:> proxy_cache_key $scheme$host$request_method$request_uri;Tested, but just the...
View ArticleRe: Nginx cache 1 KEY into multiple cache files (cache not running)
semseoymas Wrote:-------------------------------------------------------> httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content>...
View ArticleRe: Nginx cache 1 KEY into multiple cache files (cache not running)
Hello:I am sorry I think you do not understood.120 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Alondra.jpg&h=50&w=50&a=cIn other words, "KEY:...
View ArticleRe: Nginx cache 1 KEY into multiple cache files (cache not running)
Ok......It seems to be the vary header.....https://www.maxcdn.com/blog/accept-encoding-its-vary-important/:(Caché is running ok, I think, although 120 files for the same KEY.
View ArticleRe: Nginx cache 1 KEY into multiple cache files (cache not running)
Maxim said that in the other forum. You may have to manually clear the cache to see if this happens again.
View Articlehttps redirect fromm root domain to www subdomain error
Hello all,I am facing this issue with https, so i'll get right to it. I have done days of googling and nothing has worked for me, I am running the latest stable release of nginx and have my domain...
View Articleredirect / proxy_pass with nginx
hi forum,i'm pretty new to nginx and trying to realize some redirects / proxy passes with it.the goal is to redirect to different jettys running on different ports on the same server based on the URI....
View ArticleRe: redirect / proxy_pass with nginx
ok, since i'm not able to open the attachment here's the config:#user nobody;worker_processes 5;events {worker_connections 1024;}http {include mime.types;default_type application/octet-stream;#...
View ArticleNginx - When I run a php I get a 404 error or no input file message
I have installed a prestashop in multisite with a server nginx and php-fpm.With this configuration I can acess web correctly but not to an specific php because I get a 404 error or file no input file...
View ArticlePrimary domain rewrite for nginx works fine, but doesn't direct single pages
We just moved our website to a new domain, and the new website uses a totally different URL structure for all of the pages on the website.For example, the old URL might look like:...
View Article