R
R
Romi2022-02-01 11:58:59
Nginx
Romi, 2022-02-01 11:58:59

Why can't I run two sites AT THE SAME TIME in Laradock - is this how it should be, or can it be configured?

My configs are in

laradock/nginx/sites

that is, for example:

laradock/nginx/sites/test-site-1.conf
laradock/nginx/sites/test-site-2.conf


everything is set up, and separately (if I rename one of the configs, for example, to test-site-1.conf.bak ) , they work fine,

but if I try to run them in the form I gave above, the server does not rise.

What exactly am I doing wrong?

And can this be solved somehow?

And then every time I have to rename the configs to switch between projects, and this is inconvenient.

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Romi, 2022-02-04
@romicohen

I found what the salt is, it was necessary to comment out this line in the nginx config:
listen [::]:443 ssl ipv6only=on;
or rather, don’t even uncomment)) (there is initially ssl off)
everything works, thanks to those who responded - your comments directed my thoughts along the right path

A
Alexander Karabanov, 2022-02-01
@karabanov

Do nginx -tit and see where the problem is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question