*BUMP*by noob - Migration from Other Servers
go to fastcgi_params and fastcgi_param SERVER_NAME $server_name; change $server_name to $host.by noob - Migration from Other Servers
Hi, was trying to make exact same block work, but unfortunately. basically in nginx it translates like this: try_files $uri $uri/ /index.php; and maybe even like this: try_files $uri $uri/ @rewrite; location @rewrite { rewrite ^/(.*)$ /index.php/$1 break; } tried many methods, but it never passes to index.php anything. like www.example.com/zf/syncby noob - Migration from Other Servers
Hi, here is attached .conf (actual domain changed to changedtoexample.com) the log it produces for example on https://temp.changedtoexample.com is: 20364#0: *1 open() "/home/www/crm/temp/home/www/crm/temp/index.php" failed (2: No such file or directory)by noob - Migration from Other Servers
Hi Andrejs, Thank you for you replay. It seems that rewrite works, but somehow nginx doubles it, i.e.: 32225#0: *1 open() "/home/www/subdomain/home/www/subdomain/index.php" failed (2: No such file or directory) it should be just /home/www/subdomain/index.php i tried to play in many ways for example instead of location { root / }, i would change location { root /home/www }.by noob - Migration from Other Servers
Hello, Could you please help me transport these mod rewrites into nginx? RewriteRule ^(.*)$ %{SERVER_NAME}$1 RewriteCond %{SERVER_NAME} ^(.*)\.domain\.com$ RewriteRule ^(+)\.domain\.com/(.*)$ /home/www/$1/$2 cannot make it work in nginx :(by noob - Migration from Other Servers
![]() |
![]() |
![]() |
![]() |
![]() |