Answer the question
In order to leave comments, you need to log in
The php file is downloaded to nginx (ospanel). What's wrong with him?
/frontend/build/ - nuxt.js
/www/index.php
- php file that processes requests like /api/orders
it's in the default config. FastCGI installed, but it still didn't work, error:
No connection could be made because the target machine actively refused it) while connecting to upstream
location ~ ^/api/(.*)$ {
root 'путь/www/';
rewrite ^/api/(.*)$ /index.php?q=$1 break;
}
location / {
root 'путь/frontend/build/';
try_files $uri /index.html;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://%ips%:%httpbackport%/frontend/dist/;
}
Answer the question
In order to leave comments, you need to log in
Look at the \userdata\config\Nginx-1.14_vhost.conf file and make your host by analogy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question