ðòïåëôù 


  áòèé÷ 


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]

nginx - ÎÅ ÐÏËÁÚÙ×ÁÅÔ ÍÏÊ ÓÁ ÊÔ




Ú×ÏÖÕ Ó×ÏÉ ÓÁÊÔÙ, ÎÏ nginx ÐÏËÁÚÙ×ÁÅÔ
welcome to nginx!
ÈÏÔÑ ÄÏÌÖÅÎ ÐÏËÁÚÙ×ÁÔØ ÍÏÊ ÓÁÊÔ

/etc/nginx/sites-enambled



server {
ššš listenšš 80;
ššš server_nameš mamm;

ššš access_logš /var/log/nginx/localhost.access.log;
ššš location /art {
ššš ššš root /home/jedai/wwwmy/mamm;
ššš ššš indexš index.php;
ššš }

ššš location / {
ššš ššš root /home/jedai/wwwmy/mamm;
ššš ššš indexš index.php;
ššš }

ššš location /doc {
ššš ššš rootšš /usr/share;
ššš ššš autoindex on;
ššš ššš allow 127.0.0.1;
ššš ššš deny all;
ššš }

ššš location /images {
ššš ššš rootšš /usr/share;
ššš ššš autoindex on;
ššš }


ššš location ~ \.php$ {
ššš ššš fastcgi_passšš 127.0.0.1:9000;
ššš ššš fastcgi_indexš index.php;
ššššššššššššššš fastcgi_paramš SCRIPT_FILENAMEš /home/jedai/wwwmy/mamm$fastcgi_script_name;
ššššššššššššššš includeššššššš fastcgi_params;

ššš }

ššš location ~ /\.ht {
ššš ššš #denyš all;
ššš }
}



Á ×ÏÔ nginx.conf

http {
ššš includešššššš /etc/nginx/mime.types;

ššš access_logššš /var/log/nginx/access.log;

ššš sendfileššššššš on;
ššš #tcp_nopushšššš on;

ššš #keepalive_timeoutš 0;
ššš keepalive_timeoutš 65;
ššš tcp_nodelayššššššš on;

ššš gzipš on;
ššš gzip_disable "MSIE [1-6]\.(?!.*SV1)";

ššš include /etc/nginx/sites-enabled/*;
}

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


 




Copyright © Lexa Software, 1996-2009.