On Mon, Sep 04, 2006 at 08:42:36AM +0400, Igor Sysoev wrote:
On Mon, 4 Sep 2006, Alexander S. Zavdoveyeff wrote:
А сабжевая директива работать в 0.4.0 перестала?
Нет.
[user[p2]@first]:[9:01]#pkg_info | grep nginx
nginx-0.4.0 Robust and small WWW server
[user[p2]@first]:[9:02]#uname -srm
FreeBSD 6.1-RELEASE-p3 i386
Конфигурация виртуального сервера:
server {
listen 217.20.163.231:80;
server_name main.net.ua www.main.net.ua;
access_log /home/logs/nginx/main.net.ua-access main;
error_log /home/logs/nginx/main.net.ua-err debug;
location / {
proxy_pass http://127.0.0.1:80/;
proxy_redirect off;
proxy_intercept_errors on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
valid_referers none blocked main.net.ua www.main.net.ua;
if ($invalid_referer) {
return 403;
}
location ~*
^.+\.(jpg|jpeg|gif|png|swf|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|bin|iso|txt|tar|mp3|avi|wav|bmp|rtf|js
)$ {
root /home/main_acc/main.net.ua;
}
location ~ /\.ht {
deny all;
}
}