Welcome! Log In Create A New Profile

Advanced

Re: port_in_redirect

DUBOURG Kevin
June 09, 2011 02:24PM
Hello,

Thanks for your return. I have this virtual Host :

server {
listen 8088;
server_name XXXX.XXXX.fr;
port_in_redirect off;
server_name_in_redirect off;
access_log /var/log/nginx/phpmyadmin.access_log;
error_log /var/log/nginx/phpmyadmin.error_log;
root /var/www;

location /phpmyadmin {
alias /var/www/phpmyadmin;
index index.php index.html index.htm;
}

index index.php;
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}

When i go to http://xxx.xxxx.fr/phpmyadmin/, i'm login and click "execute".

Next i redirect to http://xxx.xxxx.fr:8088/phpmyadmin/index.php (it's a
problem, because it's behind a loadbalancer).

Normaly with port_in_redirect in my configuration, it should redirect to
http://xxx.xxxx.fr/phpmyadmin/index.php.

No ?


Le 09/06/2011 20:14, Maxim Dounin a écrit :
> Hello!
>
> On Thu, Jun 09, 2011 at 08:05:05PM +0200, DUBOURG Kevin wrote:
>
>> Hello !
>>
>> I have Nginx 1.0.2 and port_in_redirect nginx doesn't work ...
>>
>> This paramater work for you in this version ?
> Works ok here in 1.0.4 (too lazy to compile 1.0.2 just to test,
> there were no changes in this area). What do you mean by "doesn't
> work"?
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

port_in_redirect

DUBOURG Kevin June 09, 2011 02:06PM

Re: port_in_redirect

Maxim Dounin June 09, 2011 02:16PM

Re: port_in_redirect

DUBOURG Kevin June 09, 2011 02:24PM

Re: port_in_redirect

Maxim Dounin June 09, 2011 02:56PM

Re: port_in_redirect

DUBOURG Kevin June 14, 2011 11:52AM

Re: port_in_redirect

DUBOURG Kevin June 14, 2011 11:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready