ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nginx + PHP5-FPM => ÎÅ ÒÁÂÏÔÁÅÔ javascript... (((



÷Ï-ÐÅÒ×ÙÈ, ÏÔËÒÏÊÔÅ ÉÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔÞÉËÁ × ÂÒÁÕÚÅÒÅ É ÐÏÓÍÏÔÒÉÔÅ, ËÁËÏÊ ËÏÄ 
ÏÔ×ÅÔÁ ÐÒÉÈÏÄÉÔ ÄÌÑ JS ÆÁÊÌÏ×.

29.01.2014, 14:57, "Ve0" <nginx-forum@xxxxxxxx>:
> nginx version: nginx/1.4.4
> PHP 5.3.10-1ubuntu3.9 (fpm-fcgi) (built: Dec 12 2013 04:31:25)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
> ššššwith Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
>
> ëÏÎÆÉÇ:
> root@http:/var/log# cat /etc/nginx/nginx.conf
> user www-data;
> worker_processes 2;
> timer_resolution 100ms;
> worker_rlimit_nofile 8192;
> worker_priority -5;
>
> pid /var/run/nginx.pid;
>
> events {
> ššššššššworker_connections 2048; # default: 768
> ššššššššuse epoll;
> }
>
> http {
> ššššššššreset_timedout_connection on;
> ššššššššsendfile off;
> šššššššštcp_nopush on;
> šššššššštcp_nodelay on;
> šššššššškeepalive_timeout 65;
> šššššššštypes_hash_max_size 2048;
> ššššššššserver_tokens off;
>
> ššššššššmap_hash_bucket_size 64;
> ššššššššserver_names_hash_bucket_size 64;
> ššššššššserver_name_in_redirect off;
>
> ššššššššinclude /etc/nginx/mime.types;
> ššššššššdefault_type application/octet-stream;
>
> ššššššššaccess_log /var/log/nginx/access.log;
> ššššššššerror_log /var/log/nginx/error.log;
>
> ššššššššfastcgi_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=one:10m;
>
> ššššššššgzip on;
> ššššššššgzip_disable "msie6";
>
> ššššššššgzip_vary on;
> ššššššššgzip_proxied any;
> ššššššššgzip_comp_level 6;
> ššššššššgzip_buffers 64 8k;
> ššššššššgzip_http_version 1.1;
> ššššššššgzip_min_length 1100;
> ššššššššgzip_types text/plain text/css application/json 
> application/x-javascript
> text/xml application/xml application/xml+rss text/javascript;
>
> ššššššššinclude /etc/nginx/conf.d/*.conf;
> ššššššššinclude /etc/nginx/sites-enabled/*;
> }
>
> ëÏÎÆÉÇ ÓÁÊÔÁ:
>
> server {
> ššššlisten ššššš80;
> ššššserver_name stat.***.ru;
>
> ššššaccess_log š/var/log/nginx/***.ru/stat_access.log;
> ššššerror_log šš/var/log/nginx/***.ru/stat_error.log;
>
> ššššif ($request_method !~ ^(GET|HEAD|POST)$ ) {
> ššššššššreturn 444;
> šššš}
>
> ššššroot /var/www/***/stat/;
> ššššindex index.php index.html;
>
> ššššlocation = /favicon.ico {
> šššššššštry_files /favicon.ico =204;
> šššš}
>
> ššššlocation / {
>
> ššššššššlocation ~* ^.+\.(?:css|js|jpg|png|gif|jpeg|swf)$ {
> ššššššššššššvalid_referers none blocked *.dazab.ru;
> ššššššššššššif ($invalid_referer) š{
> ššššššššššššššššreturn 444;
> šššššššššššš}
> ššššššššššššexpires max;
> šššššššššššštcp_nodelay off;
> ššššššššššššopen_file_cache max=500 inactive=120s;
> ššššššššššššopen_file_cache_valid 45s;
> ššššššššššššopen_file_cache_min_uses 2;
> ššššššššššššopen_file_cache_errors off;
> ššššššššššššbreak;
> šššššššš}
>
> ššššššššlocation ~*
> (?:DESIGN|(?:gpl|README|LICENSE)[^.]*|LEGALNOTICE)(?:\.txt)*$ {
> ššššššššššššreturn 404;
> šššššššš}
>
> ššššššššlocation ~* \.(?:bat|html?|git|ini|sh|svn[^.]*|txt|tpl|xml)$ {
> ššššššššššššreturn 404;
> šššššššš}
>
> šššššššštry_files $uri /index.php;
> šššš}
>
> ššššlocation ~* ^/(?:index|piwik)\.php$ {
> ššššššššfastcgi_pass 127.0.0.1:9000;
> ššššššššfastcgi_index index.php;
> ššššššššinclude fastcgi_params;
> šššš}
>
> ššššlocation ~* ^.+\.php$ {
> ššššššššreturn 404;
> šššš}
>
> ššššlocation = /robots.txt {
> ššššššššreturn 200 "User-agent: *\nDisallow: /\n";
> šššš}
> }
>
> üÔÏ ÓÔÁÎÄÁÒÔÎÙÊ ËÏÎÆÉÇ Piwik ×ÚÑÔÙÊ Ó ÓÁÊÔÁ nginx.org. îÏ ÎÅ ÈÏÞÅÔ ÎÏÒÍÁÌØÎÏ
> ÒÁÂÏÔÁÔØ Ñ×Á ÓËÒÉÐÔ. îÅ ÒÁÂÏÔÁÅÔ ÓÔÁÔÉÓÔÉËÁ, ÏÛÉÂÏË ÎÉÇÄÅ ÎÅÔÕ... îÁ ÓÁÊÔÅ
> ×ÓÅ ÞÔÏ Ó×ÑÚÁÎÏ Ó ÁÑËÓÏÍ ÎÅ ÒÁÂÏÔÁÅÔ. ëÕÄÁ ÒÙÔØ, ÐÏÄÓËÁÖÉÔÅ ÐÌÉÚ!
>
> Posted at Nginx Forum: 
> http://forum.nginx.org/read.php?21,246962,246962#msg-246962
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.