Welcome! Log In Create A New Profile

Advanced

Re: Переброс 404 ошибок на apache backend

February 15, 2011 05:38AM
Пасиб за попытку помочь,
я как то не так реализовал ?

/etc/init.d/nginx start
Starting nginx: [emerg]: "proxy_pass" may not have URI part in location given by regular expression, or inside named location, or inside the "if" statement, or inside the "limit_except" block in /etc/nginx/sites-enabled/qqq.qqq.pro.conf:11
nginx.

[code]
server {
listen 192.168.1.7:80;
server_name QQ.QQ.pro www.QQ.QQ.pro;

location / {
try_files $uri $uri/ @apache;
}

location @apache {
proxy_pass http://192.168.1.7:81/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

client_body_buffer_size 32k;
proxy_connect_timeout 10;
proxy_send_timeout 30;
proxy_read_timeout 30;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_temp_path /tmp;

}
location ~* \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf| ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)$ {
root /home/conv2/public_html;
expires 30d;
}

location ~ /\. {
deny all;
}
}

[/code]
Subject Author Posted

Переброс 404 ошибок на apache backend

alexam February 13, 2011 04:35PM

Re: Переброс 404 ошибок на apache backend

kav February 14, 2011 02:22AM

Re: Переброс 404 ошибок на apache backend

renegade February 14, 2011 02:48AM

Re: Переброс 404 ошибок на apache backend

alexam February 15, 2011 05:38AM

Re: Переброс 404 ошибок на apache backend

Vladimir Rusinov February 15, 2011 05:42AM

Re: Переброс 404 ошибок на apache backend

alexam February 15, 2011 06:09AM

Re: Переброс 404 ошибок на apache backend

Aleksandr Sytar February 15, 2011 06:22AM

Re: Переброс 404 ошибок на apache backend

Igor Sysoev February 14, 2011 02:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready