Welcome! Log In Create A New Profile

Advanced

Re: FreeBSD & nginx

Anton Yuzhaninov
November 23, 2010 08:38AM
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@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

FreeBSD & nginx

KaMaToZzz November 23, 2010 07:20AM

Re: FreeBSD & nginx

Alexander Petrovsky November 23, 2010 07:28AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 07:30AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 07:39AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 07:58AM

Re: FreeBSD & nginx

Дмитрий Андреев November 23, 2010 07:46AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 07:46AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 08:31AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 08:48AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 08:58AM

Re: FreeBSD & nginx

Anton Yuzhaninov November 23, 2010 08:38AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 08:38AM

Re: FreeBSD & nginx

DeD MustDIE November 23, 2010 09:08AM

Re: FreeBSD & nginx

Anton Gorlov November 23, 2010 09:32AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 09:48AM

Re: FreeBSD & nginx

Sergey Averyanov November 23, 2010 09:54AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 10:08AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 10:27AM

Re: FreeBSD & nginx

Валентин Бартенев November 23, 2010 11:08AM

Re: FreeBSD & nginx

KaMaToZzz November 25, 2010 02:21AM

Re: FreeBSD & nginx

xpahos@gmail.com November 25, 2010 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready