When I run,
php artisan serve --host=myapp.dev --port=8000
It starts a laravel development serve at myapp.dev:8000.
But when i open the myapp.dev link on the browser, it forces the http to https and logs invalid request (unsupported SSl request).
What do you advise me to do to resolve this?
This is the command line:
$ php artisan serve --host=myapp.dev --port=8000
Laravel development server started: http://myapp.dev:8000
[Mon Apr 13 22:13:58 2020] PHP 7.4.4 Development Server (http://myapp.dev:8000) started
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38072 Accepted
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38074 Accepted
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38072 Invalid request (Unsupported SSL request)
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38072 Closing
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38074 Invalid request (Unsupported SSL request)
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38074 Closing
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38076 Accepted
[Mon Apr 13 22:15:45 2020] 127.0.0.1:38076 Invalid request (Unsupported SSL request)
hosts file
cat /etc/hosts
127.0.0.1 localhost
127.0.0.1 myapp.dev
127.0.1.1 jeremyPc
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
.env file
APP_URL=http://myapp.dev:8000
when i open the myapp.dev link on the browser, it forces the http to https
http://myapp.dev:8000/ => https://myapp.dev:8000/
but, localhost:8000/ or http://localhost:8000 is still work.
Please, help me~