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

王林
Release: 2024-07-17 11:57:17
Original
211 people have browsed it

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!

source:dev.to
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!