nginx changes the hostname of proxy_pass into ip address unwantedly

2015-12-01 Thread will...@gmail.com
I have configured nginx to use mod_zip to zip up multiple files. I also have configured nginx so that it proxies to s3 when our server gets a request to /images. location /p/ { proxy_pass http://bucket-name.s3.amazonaws.com; } When I access a file via < server >/images/foo.png, everything wor

Unsubscribe

2015-12-01 Thread Aladdin Elston
t;>>> fastcgi_param SCRIPT_FILENAME >>>> $document_root$fastcgi_script_name; >>>> include/etc/nginx/fastcgi_params; >>>> } >>>> location ~ (^~)*\.pl|cgi$ { >>>> root /var/www/html; >>>> fastcgi_pass

Re: PHP and CGI on UserDir

2015-12-01 Thread Francis Daly
On Wed, Dec 02, 2015 at 01:52:06AM +0900, Smart Goldman wrote: > 2015-11-29 20:10 GMT+09:00 Francis Daly : > > On Sun, Nov 29, 2015 at 05:04:50PM +0900, Smart Goldman wrote: Hi there, > location ~ ^/~(.+?)(/.*)?\.(php)$ { > alias /home/$1/public_html$2.$3; > fastcgi_pass 127

Re: PHP and CGI on UserDir

2015-12-01 Thread Smart Goldman
Hi Francis Daly and Aleksandar Lazic, I am sorry I am late. 2015-11-29 20:10 GMT+09:00 Francis Daly : > On Sun, Nov 29, 2015 at 05:04:50PM +0900, Smart Goldman wrote: > > Hi there, > >> I try to enable PHP and CGI(Perl) on UserDir (/home/user/public_html) with >> nginx. >> But on my Chrome, PHP sc

ETag from S3 did not match computed MD5

2015-12-01 Thread Ortal
Hello, I am new in NGINX. I am using boto service with NGINX. When I am sending a put request I get a response with ETag which does not match the MD5. My question is: what could be the reason for that? Thanks, Ortal Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263186,263186#msg-26

Re: bind failed

2015-12-01 Thread Maxim Dounin
Hello! On Tue, Dec 01, 2015 at 12:49:50AM -0800, Frank Liu wrote: > Hi, > > I was doing some tests today and have created a single test virtual host > with > listen 8181; > and nginx runs fine (1.9.7). Now if I change the listen to only one > interface ip: > listen 192.168.10.10:8181 > configtes

bind failed

2015-12-01 Thread Frank Liu
Hi, I was doing some tests today and have created a single test virtual host with listen 8181; and nginx runs fine (1.9.7). Now if I change the listen to only one interface ip: listen 192.168.10.10:8181 configtest shows fine but reload gives "bind failed" in the error log. Is this normal? Thanks!