nginx - Laravel + varnish port redirect -


i have virtual machine laravel 5 + nginx + varnish on board.

varnish works on port 80, nginx on 8080.

when go admin panel:

admin.mysite.ru 

it must redirect admin.mysite.ru/user/login/ if user not log in. correct. when happend, redirected admin.mysite.ru:8080/user/login/, that's wrong.

redirect code simple: redirect()->guest('/user/login/');

thats problem come after installed varnish, so, cant understand how resolve problem. give advice or solution? thank you!

add following nginx configuration (inside http or server block):

port_in_redirect off; 

this should solve problem.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -