Igor Sysoev wrote: > On Tue, Oct 27, 2009 at 01:25:47PM +0300, Igor Katson wrote: > >> I have a following site config in nginx >> >> server { >> listen 80; >> server_name testsite.local nginx.test; >> >> root /tmp; >> >> location /video/ { >> proxy_pass http://localhost:8080/; &gby descentspb - Nginx Mailing List - English
I have a following site config in nginx server { listen 80; server_name testsite.local nginx.test; root /tmp; location /video/ { proxy_pass http://localhost:8080/; } } and the following line in /etc/hosts 127.0.0.1 localhost testsite.local nginx.test When i visit http://nginx.test/video , nginx redirects me to http://testsite.locby descentspb - Nginx Mailing List - English
Maxim Dounin wrote: > Hello! > > On Thu, Oct 22, 2009 at 04:04:32PM +0400, Igor Katson wrote: > >> Is it possible to combine several conditions in the if directive, like >> >> condition1 AND condition2 OR condition3 >> >> ? >> >> Or at least just condition1 AND condition2? > > No. > > Workaround is to use set + regex checks in iby descentspb - Nginx Mailing List - English
Is it possible to combine several conditions in the if directive, like condition1 AND condition2 OR condition3 ? Or at least just condition1 AND condition2? Thanks in advance, Igor Katson.by descentspb - Nginx Mailing List - English
Maxim Dounin wrote: > Hello! > > On Thu, Oct 22, 2009 at 01:17:16PM +0400, Igor Katson wrote: > >> In Apache it is possible to dynamically alter the proxy_pass remote >> host, i.e. like this >> >> RewriteRule ^/proxy_everything/(.*)$ http://$1 >> >> So I cant extract the host from the URI, or from the environment >> variable etc. >> &gby descentspb - Nginx Mailing List - English
In Apache it is possible to dynamically alter the proxy_pass remote host, i.e. like this RewriteRule ^/proxy_everything/(.*)$ http://$1 So I cant extract the host from the URI, or from the environment variable etc. Is it possible to do the same with nginx? Thanks in advance, Igor Katson.by descentspb - Nginx Mailing List - English
Maxim Dounin wrote: > Hello! > > On Tue, Oct 20, 2009 at 12:19:18PM +0400, Igor Katson wrote: > >> Hello! >> >> I want to disable nginx returning a 304 response to the client, as I >> am interested in a higher amount of bandwidth coming through my >> site. In Apache i did that by removing the if-modified-since request >> header, but I can't find anby descentspb - Nginx Mailing List - English
Yes, that won't work. I need a standard HTTP 200 response with all the content passed to the client, regardless of the If-Modified-Since request header.by descentspb - Nginx Mailing List - English
Hello! I want to disable nginx returning a 304 response to the client, as I am interested in a higher amount of bandwidth coming through my site. In Apache i did that by removing the if-modified-since request header, but I can't find an alternatinve in nginx. Is there any? Thanks in advance, Igor Katson.by descentspb - Nginx Mailing List - English