0

I wanted to see how I can have a domain where I host my PHP projects without having to be creating a vhost for each one.

I mean:

https://example.com/projectA -> /usr/share/nginx/html/projects/projectA/public
https://example.com/projectB -> /usr/share/nginx/html/projects/projectB/public
https://example.com/projectC -> /usr/share/nginx/html/projects/projectC/public

I guess I should use regular expressions in the 'location' line but I have not succeeded, I get 404 error.

How could I do it? Thanks in advance

0 Answers0