Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FreeBSD & nginx
On 11/23/10 16:31, KaMaToZzz wrote:
server {
listen fun.viks.net.ua:80;
server_namewww.fun.viks.net.ua;
rewrite ^(.*)http://fun.viks.net.ua$1 permanent;
}
access_log /var/log/nginx/drupal-cgm.access.log;
error_log /var/log/nginx/drupal-cgm.error.log;
root /www;
# restrict request methods to: GET|HEAD|POST
if ( $request_method !~ ^(GET|HEAD|POST)$ ) {
return 444;
break;
}
Директиву if нельзя использовать на уровне http (можно только на уровнях server
и location).
--
Anton Yuzhaninov
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|