V
V
Vladimir Borisyuk2019-07-15 09:56:32
Nginx
Vladimir Borisyuk, 2019-07-15 09:56:32

How to get several laravel web projects to work on the same nginx ip address?

The task is to run several laravel projects on nginx on one ip address like you.ip.adress\project-name-one, you.ip.adress\project-name-two. OS Win 10 x64, OSPanel 5.2.2. How to configure nginx? nginxv1.12

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2019-07-15
@megafax

Make 2 locations (~* ^/project-one/ and ~* ^/project-two/) with different documentroots in nginx and wrap both in php-fpm.
In general, if you have OSPanel - aka OpenServer - then just get 2 hosts and specify additionally in the settings the search for the root dock on public

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question