Answer the question
In order to leave comments, you need to log in
How to set location for nginx in ospanel?
Installed OSPanel (Open Server) on windows.
Configuration: Apache_2.4-PHP_7.2-7.3-x64+Nginx_1.17_vhostn.conf
which contains the following parameters:
location ~ ^/api/(.*)$ {
root '%hostdir%/www';
try_files $uri $uri/ /index.php;
}
location / {
root '%hostdir%/frontend/build';
try_files $uri /file.html;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question