| From | Sent On | Attachments |
|---|---|---|
| meto | Jun 25, 2009 7:06 am | |
| Maxim Dounin | Jun 25, 2009 9:33 am | |
| meto | Jun 25, 2009 12:49 pm | |
| Maxim Dounin | Jun 25, 2009 2:09 pm | |
| meto | Jun 25, 2009 3:24 pm | |
| Maxim Dounin | Jun 25, 2009 4:47 pm | |
| meto | Jun 25, 2009 10:59 pm | |
| meto | Jun 26, 2009 5:01 am | |
| meto | Jun 26, 2009 6:06 am | |
| Grzegorz Nosek | Jun 26, 2009 6:18 am | |
| meto | Jun 26, 2009 6:53 am | |
| Grzegorz Nosek | Jun 26, 2009 7:16 am | |
| meto | Jun 26, 2009 7:43 am | |
| meto | Jun 26, 2009 10:17 am | |
| Grzegorz Nosek | Jun 26, 2009 11:03 am | |
| meto | Jun 26, 2009 11:42 am | |
| meto | Jun 26, 2009 12:02 pm | |
| meto | Jun 26, 2009 12:53 pm | |
| Grzegorz Nosek | Jun 26, 2009 1:04 pm | |
| meto | Jun 26, 2009 3:09 pm | |
| meto | Jun 26, 2009 3:28 pm | |
| Grzegorz Nosek | Jun 27, 2009 1:23 am | |
| meto | Jun 27, 2009 3:01 am | |
| Grzegorz Nosek | Jun 27, 2009 3:50 am | |
| meto | Jun 27, 2009 4:33 am | |
| meto | Jun 27, 2009 4:39 am | |
| meto | Jun 27, 2009 5:48 am | |
| Tomasz Pajor | Jun 28, 2009 12:58 am | |
| meto | Jun 28, 2009 2:29 am | |
| Maxim Dounin | Jun 29, 2009 3:37 am | |
| meto | Jun 29, 2009 6:42 am | |
| meto | Jun 29, 2009 7:18 am | |
| Maxim Dounin | Jun 29, 2009 7:45 am | |
| meto | Jun 29, 2009 8:32 am | |
| meto | Jun 29, 2009 8:34 am | |
| Maxim Dounin | Jun 29, 2009 8:55 am | |
| Maxim Dounin | Jun 29, 2009 9:09 am | |
| meto | Jun 29, 2009 9:59 am | |
| Maxim Dounin | Jun 29, 2009 11:20 am | |
| meto | Jun 29, 2009 12:27 pm | |
| Maxim Dounin | Jun 29, 2009 1:18 pm | |
| Toni Mueller | Jul 16, 2009 2:55 am | |
| Maxim Dounin | Jul 16, 2009 9:20 am |
| Subject: | Re: Keep Alive piles up | |
|---|---|---|
| From: | meto (ngin...@nginx.us) | |
| Date: | Jun 29, 2009 9:59:37 am | |
| List: | ru.sysoev.nginx | |
server { listen 94.23.96.82:80; server_name gimpuj.info www.gimpuj.info gimpuj.org www.gimpuj.org gimpuj.net www.gimpuj.net;
if ($host != www.gimpuj.info) { rewrite ^(.*)$ http://www.gimpuj.info$1 permanent; }
access_log /var/www/vhosts/gimpuj.info/statistics/logs/access_log
combined buffer=32k;
location = / { rewrite / index.php?action=glowna permanent; }
location / { index index.html index.php; root /var/www/vhosts/gimpuj.info/httpdocs; include php_support;
if ( !-e $request_filename ) {
# rewrites
rewrite ^/avatar/(.*)\.png
/avatar/index.php?user=$1 last;
....
some rewrites
....
rewrite ^/index\.php/(.*) /index.php?$1;
# end rewrites
}
}
# PLESK statistics below location ^~ /plesk-stat/ { autoindex on; alias /var/www/vhosts/gimpuj.info/statistics/; } # End of PLESK statistics
include settings; }
every domain is built with such config template
php_support
#php support if ( $request_filename ~* \.php(.*)$ ) { # is it php? fastcgi_pass 127.0.0.1:9000; expires off; }
fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;
settings
#limit conns for ddos and slowloris limit_conn limit_per_ip 25;
#errors error_page 404 /errors_pages/404.html;
location ^~ /errors_pages { alias /var/www/errors_pages; }
#Phpmyadmin
location ^~ /phpmyadmin { index index.php; root /usr/share; include php_support2; }
#xcache-admin
location ^~ /xcache-admin { index index.php; alias /usr/share/xcache/admin; #root /usr/share/xcache/admin; include php_support2; fastcgi_param SCRIPT_FILENAME $request_filename; } # AW-Stat Icons location ^~ /awstats-icon/ { alias /usr/share/awstats/icon/; }
# deny access to .htaccess files, if Apache's document root # concurs with nginx's one location ~ /\.ht { deny all; }
php_support2 is same as php_support but passes queries only to local PHP.
Here you have it. As I said nothing special here.
Using if() on $request_uri/$request_filename suggests that config should be rewritten, but anyway nginx shouldn't coredump.
Why? I know that if is in rewrite module in docs but can't we use it in other
places?
Do you suggest to use nested location rather than if() in that case? But still
(and dont yell) - it worked before.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3374,3536#msg-3536





