Igor Sysoev Wrote: ------------------------------------------------------- > Проиводительности где ? > > На каждый запрос CSS/javascript > nginx передаёт запрос в PHP, > а потом принимает ответ > (даже если PHP вытащил его из > кэша). > <link > href="/css/jby locojohn - Nginx Mailing List - Russian
Igor Sysoev Wrote: ------------------------------------------------------- > On Wed, Aug 31, 2011 at 07:40:38AM -0400, locojohn > wrote: > > > # glue css/js files into a > single file for faster > > loading > > rewrite > .*/(css|javascript)/[^,]+,.+ /glue.php last; > > Вы действительно хотите,by locojohn - Nginx Mailing List - Russian
Здравствуйте. Возникла проблема с модулем upload_progress. При наведении браузера на URL http://myserver.eu/uploads/progress возвращается 404 Not Found, хотя "/uploads/progress" сконфигурен как report_uploads URI. Будьте так любезны, наведите на какую-нибудby locojohn - Nginx Mailing List - Russian
Hi, Regarding the site name it's simple by using the capturing PCRE syntax in defining the server name: server { listen 80; server_name ~^(?<site>.+)$; location ~* ^.+.(jpg|jpeg|gif|png|ico|css|zip)$ { root /home/USERNAME/domains/$site/public_html; } } Regarding the USERNAME it's not clear what you want to do.by locojohn - How to...
location / [ if ($http_x_custom_header) { .... } } see http://wiki.nginx.org/HttpCoreModule#.24http_HEADER for more information. Andrejsby locojohn - How to...
Yes, it does: http://wiki.nginx.org/HttpGzipModule Andrejsby locojohn - How to...
Try the following: server ... { [...] rewrite ^/article/([^-]+)-([^&]+)\.zpc$ /articles.php?article_id=$1&article_name=$2 last; rewrite ([^/]+)/\.zpc$ mainpage.php?page=$1 last; rewrite ^(.+)\.zpc$ $1.php last; [...] }by locojohn - How to...
Hi, Your configuration seems OK, except that I never tried to pass GeoIP variables via GET arguments in the rewrite rule. I set them in the location block: location ~ ^(?<SCRIPT_FILENAME>.+\.php)(?<PATH_INFO>.*)$ { fastcgi_param GEOIP_COUNTRY_CODE $geoip_country_code; fastcgi_param GEOIP_COUNTRY_NAME $geoip_country_name; fastcgi_param GEOIP_CITY_NAME $geoip_city; ...by locojohn - How to...
Hi! There are many factors that can affect performance of the VM. Basically, the VM is like a black box -- you cannot really measure performance and compare it to real hardware, as resources are dynamically allocated as needed, and I/O is likely the weakest point of the VM. What is the physical number of CPUs in the virtual domain? How much physical RAM is allocated to VM guest? What isby locojohn - Nginx Mailing List - English
Hello! The reason being that the asterisk "*" is irrelevant in the PCRE (Perl Regex syntax) expression for what you intend it to do. Try the following, instead (no regex): location /static/ { root /home/yasar/public_html; } Hope it helps, Andrejsby locojohn - Nginx Mailing List - English
Примите поздравления, Игорь! Желаю вам и вашим коллегам удачи во всём! Андрейby locojohn - Nginx Mailing List - Russian
Try the below: location ~ ^/catalog/(?P<catnum>\d+)$ { include fastcgi_params; fastcgi_param QUERY_STRING category=$catnum; fastcgi_param SCRIPT_FILENAME $document_root/catalog.php; fastcgi_pass phpfarm; # replace phpfarm with your FastCGI server } location ~ ^/item/(?P<iteby locojohn - Migration from Other Servers
Hi try the following: if ($http_host ~ \.domain\.com$) { rewrite ^(?!/$http_host/)(.*)$ /$http_host$1; rewrite ^/([^.]+)\.domain\.com/(.*)$ /home/www/$1/$2 last; } Andrejsby locojohn - Migration from Other Servers
> > geo $y { > > default "${precision}+1"; > > } > > - with fastcgi_param PHP_VALUE "precision=$x"; > + with fastcgi_param PHP_VALUE "precision=$y"; I do not think PHP-FPM can perform inline mathematical evaluation within passed arguments to PHP_VALUE/PHP_ADMIN_VALUE. But it works for me when it comes to genericby locojohn - Nginx Mailing List - Russian
António P. P. Almeida Wrote: ------------------------------------------------------- > On 15 Jul 2011 18h23 WEST, nginx-forum@nginx.us > wrote: > > This directive enables or disables resetting the > connection on > timeout. When resetting the connection, before > the socket is closed, > the socket SO_LINGER option is set with a 0 > timeout, which forcby locojohn - Nginx Mailing List - English
Yes, there is. See my post at http://forum.nginx.org/read.php?11,212439 for more information.by locojohn - Migration from Other Servers
locojohn Wrote: ------------------------------------------------------- > try: > > server_name ~(?<domain>\.[^.]+\.com)$ > Sorry: server_name ~\.(?<domain>[^.]+\.com)$ otherwise, "." before the domain name will be captured into $domain as well. It's easy to mess up with regex :) Andrejsby locojohn - How to...
This directive enables or disables resetting the connection upon timeout. When resetting the connection, before the socket is closed, the SO_LINGER option is set to the socket with timeout value of 0, which forces RST packet to be sent to client upon closing the socket, while all memory associated with the socket is freed. This allows to avoid the situation when the already closed socket is in tby locojohn - Nginx Mailing List - English
rewrite ^/johndoe/picture_\d+\.jpg /johndoe/latestpicture.jpg last;by locojohn - How to...
rewrite ^/johndoe/picture_\d+.jpg /johndoe/latestpicture.jpg last;by locojohn - How to...
rewrite ^/([0-9a-zA-Z]{1,6})$ /forum/?to=$1 last; rewrite ^/([0-9]{1,9})/start/(.*)$ /forum/?uid=$1&adt=2&url=$2 last; rewrite ^/([0-9]{1,9})/(.*)$ /forum/?uid=$1&adt=1&url=$2 last;by locojohn - How to...
try: server_name ~(?<domain>\.[^.]+\.com)$ root /var/www/$domain; Andrejsby locojohn - How to...
Hi, I am not sure if I understand your request completely, but here's what I'd try: rewrite ^/foo(.*)$ http://new.url.org$1 permanent; or rewrite ^/foo http://new.url.org permanent; Andrejsby locojohn - How to...
Hello all, I decided to post my fastcgi_php.conf configuration file that helps me to resolve server environment compatibility issues with older PHP scripts that rely on PATH_INFO, PATH_TRANSLATED, SERVER_URL, SERVER_URI and PHP_SELF variables to be set correctly. Unfortunately, SCRIPT_NAME is not available, as if both SCRIPT_NAME and PHP_SELF are set in the FastCGI environment, PHP_SELF will eby locojohn - How to...
Sergey Shepelev Wrote: ------------------------------------------------------- > >> Это > >> очень редкая ситуация, > чаще > >> всего в апачевых воркерах > >> выполняются > >> (весьма успешно) > приложения > >> Perl/PHP/etc. nginx этого деby locojohn - Nginx Mailing List - Russian
locojohn Wrote: > fastcgi_pass "include_path=$x"; Sorry, of course: fastcgi_param PHP_VALUE "include_path=$x"; It's very hot here so I got confused myself... Andrejsby locojohn - Nginx Mailing List - Russian
António P. P. Almeida Wrote: ------------------------------------------------------- > > location /fastcgi-test { > fastcgi_pass phpcgi; > } how is phpcgi server node configured exactly? > I'm having problems understanding how a PARAM type > message can be sent > from the upstream (fpm in this case) to the server > so that we can use > it's value onby locojohn - Nginx Mailing List - Russian
Hi Appa, For starters, which version of nginx and PHP are you using? I am using nginx 1.0.4 and PHP 5.3.6. Next, in the nginx configuration I do: http { [...] # geo directive must be set on the http level geo $x { default "${include_path}:/my/other/include/path"; } [...] } then, in a virtual host configuration: server { [...by locojohn - Nginx Mailing List - Russian
Maxim Dounin Wrote: ------------------------------------------------------- > geo $x { > default > "${include_path}:/my/other/include/path"; > } > > fastcgi_param PHP_VALUE $x; > > which relies on the fact that geo module doesn't > support variables. > > No idea how php will handle this though, probably > Antonio iby locojohn - Nginx Mailing List - English
Tried it and it DOES work with php-fpm. The phpinfo() call proves the parent include_path is inherited from php.ini and then concatenated with "/my/other/include/path"! However, this hack is too dirty to use in the production environment! Anxiously waiting for the version update so we could use \${var_name} or something directly within fastcgi_param arguments! --- С php-fpmby locojohn - Nginx Mailing List - Russian