I launch sail up for the first time, go to localhost and automatically redirects from http:// localhost/ to http://localhost/tutorial/. What could be the reason? screenshot
Asked
Active
Viewed 436 times
0
-
Is the tutorial running on port 80? What port is Sail on? – Brian Thompson Nov 09 '21 at 17:18
-
image: sail-8.0/app extra_hosts: - 'host.docker.internal:host-gateway' ports: - '${APP_PORT:-80}:80' environment: WWWUSER: '${WWWUSER}' LARAVEL_SAIL: 1 XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}' XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}' – Korgi228 Nov 09 '21 at 17:32
-
That doesn't necessarily mean it's running on port 80 - `docker container ls` will tell you what is actually mapped – Brian Thompson Nov 09 '21 at 17:36
-
displays port 80 – Korgi228 Nov 09 '21 at 17:39
-
Having the same problem. Some configuration is just wrong but no one figured it out yet. – Huy Phạm Apr 26 '22 at 11:11
1 Answers
0
Someone figured out the problem is caused by the cache of your browser. The stackoverflow link is: Localhost redirecting to localhost/tutorial I tried this myself, it works very well.

Ye Ning
- 1
- 1