Hello!
OS: FreeBSD 11-RELEASE
Engine: nginx-1.10.1_2,2
App language: php70-7.0.12
CMS: Symfony 1.4
I have a problem with Location in HTTP header.
Old server (Apache, PHP5) reply for all browsers:
Location: http://www.my.web/
New server (nginx, PHP7) reply for all browsers:
: http: //www.my.web/
The above generates problem only on Edge & IE which cannot handle it during login redirection.
I've forced to add Location HTTP header in nginx but I think it's not a solution. It generates another problem although login redirection works properly.
Please read a post on http://stackoverflow.com/questions/...nt-redirect-after-login-and-get-http-302-code where all I've described with details.
Thanks for your help.
Arek
OS: FreeBSD 11-RELEASE
Engine: nginx-1.10.1_2,2
App language: php70-7.0.12
CMS: Symfony 1.4
I have a problem with Location in HTTP header.
Old server (Apache, PHP5) reply for all browsers:
Location: http://www.my.web/
New server (nginx, PHP7) reply for all browsers:
: http: //www.my.web/
The above generates problem only on Edge & IE which cannot handle it during login redirection.
I've forced to add Location HTTP header in nginx but I think it's not a solution. It generates another problem although login redirection works properly.
Please read a post on http://stackoverflow.com/questions/...nt-redirect-after-login-and-get-http-302-code where all I've described with details.
Thanks for your help.
Arek
Code:
location /
{
root /www/data;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?q=$request_uri;
}
location ~ \.php($|/)
{
set $script $uri;
set $path_info "";
if ($uri ~ "^(.+\.php)(/.+)")
{
set $script $1;
set $path_info $2;
}
try_files $uri = 404;
root /www/data;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
fastcgi_read_timeout 600;
fastcgi_buffers 8 64k;
fastcgi_buffer_size 128k;
fastcgi_connect_timeout 600;
fastcgi_send_timeout 600;
fastcgi_param SCRIPT_FILENAME $document_root$script;
fastcgi_param PATH_INFO $path_info;
include fastcgi_params;
fastcgi_param SCRIPT_NAME $script;
add_header Location $script always;
}