Home >Backend Development >PHP Tutorial >Serving different routes depending the port webserver serves my applciation in laravel.

Serving different routes depending the port webserver serves my applciation in laravel.

王林
王林Original
2024-07-17 11:57:17320browse

Dude check this out:

Serving different routes depending the port webserver serves my applciation in laravel. How I resolve different routes on an application using same url but different port?
Serving different routes depending the port webserver serves my applciation in laravel.
0
Serving different routes depending the port webserver serves my applciation in laravel.

In my case I want to create a small monolith but:

  • Admin panel will be served upon port 8443
  • Normal app will be served upon port 80/443

I am using laravel 11 and the route config resides on different files:

  • routes/admin.php for admin panel
  • routes/web.php for the normal application

But…

Open Full Question

I managed to serve a same application with different routes depending the port that webserver serves the application.

The above is the detailed content of Serving different routes depending the port webserver serves my applciation in laravel.. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn