Append upstream hostname into Host header
Hi,We are using nginx for load balancing dynamically discovered upstream endpoints. We are in need to attach upstream hostname as header Host in upstream requests. For example below is my existing conf...
View ArticleRe: PHP - only seems to run one instance?
So i tried these settings and have left it a few days. My phpmyadmin server config which just is like a normal website is showing the very long response time that other pages were as well.I just get...
View ArticleRe: PHP - only seems to run one instance?
If nginx is waiting it is waiting for php to return something or until it times out, in that sense php is blocking nginx, you need to study the logfiles, monitor with process explorer and test with...
View ArticleRe: PHP - only seems to run one instance?
I started the server and managed to make it lock up in a few minutes. I have attached the error files to see if that may help.I have looked at xcache and that doesnt seem to support php 5.6.6 atall and...
View ArticleRe: PHP - only seems to run one instance?
Sounds like nginx has not been stopped properly and some old processes are lingering after a restart, make sure it is stopped before restarting, after stopping the service I do a taskkill to make sure...
View ArticleRe: PHP - only seems to run one instance?
Ok that makes sense, i have changed my shutdown script to this (newline is the taskill)@ECHO OFFstart nginx -s quittaskkill /f /im nginx.exetaskkill /f /im php-cgi.exestart...
View ArticleRe: 404 when everything should be fine
I found the problem.In the config of NGINX, there is an include to sites-enabled , and nothing to sites-avaible. So i had to do a symlink, and now it works :)
View Articlenginx location auth_basic
Hello, i have a config:location / {root /etc/nginx/euchet;}location /app/ {proxy_pass http://172.16.184.2:8080;proxy_redirect off;proxy_set_header Host $host;proxy_set_header X-Real-IP...
View ArticleNginx to iis proxy, periodical Invalid hostname error
Hi all.I have nginx proxy for iis 7 server, but when I addressing to iis server I have a 400 Bad Request Invalid Hostname error periodically (when I press F5). So I saw the nginx and the iis logs and...
View ArticleRe: Nginx to iis proxy, periodical Invalid hostname error
Try these settings;keepalive_requests 500;proxy_http_version 1.1;proxy_ignore_client_abort on;
View ArticleRe: Nginx to iis proxy, periodical Invalid hostname error
Thank you a lot! But it is not worked for me. Also I tried to use this lines with previous configs and play with params.My request header (just iis welcome.png)Host: [my host here]User-Agent:...
View ArticleRe: Nginx to iis proxy, periodical Invalid hostname error
You would have to check the logs on both ends to see who is logging what, run some 'ab' or curl sessions.And use the latest version of nginx.Curl -i should tell you when a 4xx is returned who is...
View Article/blog change root
Hi,i have this config:location ^~ /blog/ {root /home/xxx/blog.xxx.com;index index.php index.html index.htm;}location / {try_files $uri $uri/ /index.php$uri?$args;}location ~ "^(.+\.php)($|/)" {#...
View ArticleRe: PHP - only seems to run one instance?
Ok so i have been doing some deving on my server today and the issue with retrieving no data or no receiving a response has gotten much worse.I have disabled opcache entirely to rule that out of the...
View ArticleRe: Nginx to iis proxy, periodical Invalid hostname error
Thank you for your answers!I installed the new version nigx and tried to set up logs. But I don't understand situation in general.Is it IIS problem or nginx configuration problem ?>>curl -i...
View ArticleRe: PHP - only seems to run one instance?
bigjme Wrote:-------------------------------------------------------> I have disabled opcache entirely to rule that out of the situation. Is> there any way to see if it is nginx itself that isn't...
View ArticleRe: Nginx to iis proxy, periodical Invalid hostname error
This suppose to go in the proxy_pass section;keepalive_requests 500;proxy_http_version 1.1;proxy_ignore_client_abort on;You trying to pass to:proxy_pass http://localhost:8080But are testing...
View ArticleRe: Nginx to iis proxy, periodical Invalid hostname error
location / {keepalive_requests 500;proxy_http_version 1.1;proxy_ignore_client_abort on;...It gives same situation.http://193.232.254.196:6058/ is public ip that redirect to http:localhost:80 on remote...
View ArticleRe: Nginx to iis proxy, periodical Invalid hostname error
"HTTP Error 400. The request hostname is invalid."I think this means your IIS server is not accepting localhost as requested...
View ArticleRe: PHP - only seems to run one instance?
I removed opcache and the issue persisted still so its not an opcache problem.The server is running on a dedicated physical machine (i'm sitting at it now) and the server is running off a dedicated SSD...
View Article