Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nginx предлагает сохранит ь php страницу .
Hello!
On Wed, Dec 02, 2009 at 10:02:30AM -0500, 100matolog wrote:
> nginx-0.7.64
> php-fpm-0.6-5.2.11
>
> worker_processes 100;
> worker_priority -5;
> worker_rlimit_nofile 51200;
>
> events {
> worker_connections 51200;
> use kqueue;
> }
>
> http {
> include mime.types;
> default_type application/octet-stream;
>
> log_format main '$remote_addr - $remote_user [$time_local] $request '
> '"$status" $body_bytes_sent "$http_referer" '
> '"$http_user_agent" "$http_x_forwarded_for"';
>
> server_names_hash_bucket_size 512;
> sendfile on;
> tcp_nopush on;
> keepalive_timeout 70 30;
> send_timeout 30s;
> reset_timedout_connection on;
> resolver 127.0.0.1;
> resolver_timeout 10s;
>
> open_file_cache max=100000 inactive=40s;
> open_file_cache_valid 60s;
> open_file_cache_min_uses 2;
> open_file_cache_errors on;
>
>
> ########################SERVER_LOCALHOST##############################
>
> server {
> listen 80;
> server_name fpm.test.ua;
> location / {
> root /usr/local/www/nginx;
> index index.html index.htm index.php;
> access_log /var/log/nginx/localhost-access.log;
> }
> }
Закрылся location, закрылся сервер.
> #####################################################################
> if (!-e $request_filename) {
> rewrite ^.*$ /index.php last;
> }
Директива if может использоваться только в контексте server или
location. Тут должен случиться syntax error.
Приведённый конфиг - не тот, с которым у вас работает nginx.
[...]
Maxim Dounin
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|