Re: upstream sent invalid header while reading response
The reason was in year format. 15 works, 2015 does not work.
View ArticleOnly allow certain countries traffic access specific page
I have a website that I wish to block users from certain country to access certain pages on the site, by using the --with-http_geoip_module.Here is my config:http {include...
View ArticleWrong but also correct version after recompiling?
Hi,I recently recompiled nginx in order to include Google's pagespeed module.Everything worked fine. Pagespeed is working, when I check the page headers it shows me nginx 1.8.0, ...BUT: When I enter...
View ArticleNGINX SSL Reverse Proxy Cache Caching Content only for individual clients
We are having some trouble setting up NGINX as a reverse SSL proxy cache.We have successfully got everything working except the content caching feature.The caching feature works, and displays a...
View ArticleRe: Wrong but also correct version after recompiling?
Never mind.There were two versions on nginx in different folders. I removed one. That's it.
View ArticleSet content range for nginx
I am sending a file using X-Accel-Redirect and including Content-Range but on django with fcgi, but nginx ignores my headers and simply sends the whole file.resp = HttpResponse()resp.status_code =...
View ArticleApplication Health Checks with NGINX Plus
I'm not able to find anything in the documentation on how to perform the below. How would I configure a health_check to look at disk/memory usage on an upstream server? Or that a database service is...
View ArticleIs there a way to have a main file with everything inside
My goal is to have one file that:- redirect to the favicon- redirect to the php5-cgi stuff- redircet to the error pages- and so oneSo I don't need to enter that in every vhost file for subdomains and...
View ArticleServe Directory with URL Rewrite Enabled
Hi,I have spent a lot of time and shed many tears trying to get functionality similar to apache aliasing. I need a Zend Framework application to be served from within a directory. I can't get any...
View ArticleOpcache (fastcgi_cache_key) and GeoIP
Hi,I've searched Google / this forum for this but can't find anything relevant so apologies in advance if this has been covered elsewhere.I've enabled Opcache on my server and have GeoIP enabled.The...
View ArticleWindows 7 - start NGINX at boot - task and batch script
I wrestled for a while trying to get NGINX to cleanly start at system boot (Win7) regardless of the last status of NGINX before the system shutdown. In case anyone else might find this useful, I...
View Articlenginx reverse proxy automatically change url
I am using nginx to reverse proxy qwebirc.When a user types: irc.example.org in a browser i want the url to automatically change to irc.example.org/?channels=blahI have tried lots of methods but I keep...
View ArticleNginx subdirectory for owncloud (can it be done?)
Hi, I'm a student trying to figure out how to make and use servers, and I thinknginx looks pretty cool. I figured I'd try to put my owncloud on nginx insteadof apache this time.I've been trying to put...
View Articledefault_server and access by IP
I have many sites on different IPs. I need:1. if user open site with domain name - open site;2. if user open site with IP - open default html page.What is the best solution for this task? I tried:~~~#...
View ArticleHow to store "fastcgi_cache" indefinitely?
And only refresh it when backend data did some changes?Using nginx 1.9.2 and PHP-FPM 5.6.10.Thanks!
View ArticleUser Home Dirs
I am trying to configure nginx so that when going to `http://example.com/~user/` it will load files from the `/home/~user/www/` directory.I have found a script that seems to work for .html files but...
View ArticleNew Relic agent setup error
I installed nginx-nr-agent package via yum. I set the api key and status url appropriately. But when I hit sudo service nginx-nr-agent start, following error appears:nginx-nr-agent [ERROR]: no data...
View ArticleMagento 404 Page redirect to home page in Nginx
Hi,We are working on a Magento website and recently we have created a customer 404 page basically a new CMS page and set it as CMS no route page in configuration.This is working fine on my local system...
View Articlewhat does this rule do?
Hi!There is a rule in W3TotalCache (Wordpress plugin) sample config:if (!-e $request_filename) {rewrite (.*) /index.php last;}What does this rule do?
View ArticleHow to proxy pass all requests expect several
I want to proxy pass requests coming to my server. Requiremnt is this,URLs starting with mobile > mobile appURLs starting with dashbord > dashbord appOther requests > URL Mapper AppI wrote...
View Article