Welcome! Log In Create A New Profile

Advanced

циклическая переадресация

December 30, 2014 02:05PM
Добрый день! Вот простой конфиг, но почему-то возникает циклическая переадресация, поправьте пожалуйтса

location /roundcube/ {
<------>alias /usr/share/roundcubemail/;
<------>index index.php;
<------>error_page 404 @apache;
}
location ~ ^/roundcube/(.+\.php)$ {
<------>alias /usr/share/roundcubemail/$1;
<------>fastcgi_pass unix:/var/run/php-fpm.apache.sock;
<------>fastcgi_index index.php;
<------>fastcgi_param SCRIPT_FILENAME $request_filename;
<------>return 301 https://1.2.3.4$request_uri;
<------>include fastcgi_params;
<------>error_page 502 = @apache;
<------>error_page 404 = @apache;
}
location @apache {
<------>error_log off;
<------>proxy_pass http://127.0.0.1:8080;
<------>proxy_redirect http://127.0.0.1:8080 /;
<------>proxy_set_header Host $host;
<------>proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
<------>proxy_set_header X-Forwarded-Proto $scheme;
}
Subject Author Posted

циклическая переадресация

hitarcher December 30, 2014 02:05PM

Re: циклическая переадресация

hitarcher December 30, 2014 02:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
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