S
S
Slexx12342020-04-08 17:27:12
Nginx
Slexx1234, 2020-04-08 17:27:12

Where does ISPManager store host configurations?

Proxying localhost:3000 does not work (nuxtjs is spinning there) all requests except /api and /storage should go to localhost:3000
Here is my nginx config.

server {
  server_name bonus.ru;
  charset off;
  index index.php index.html;
  disable_symlinks if_not_owner from=$root_path;
  include /etc/nginx/vhosts-includes/*.conf;
  include /etc/nginx/vhosts-resources/bonus/*.conf;
  access_log /var/www/httpd-logs/bonus.ru.access.log;
  error_log /var/www/httpd-logs/bonus.ru.error.log notice;
  ssi on;
  set $root_path /var/www/bonus/data/www/bonus.ru/public;
  root $root_path;
  listen 0.0.0.0:80;

    location / {
        proxy_pass http://localhost:3000;
    }

    location /storage {
        root /var/www/bonus/data/www/bonus.ru/public;
    }

    location /api {
    try_files /does_not_exists @fallback;
  }

  location @fallback {
    proxy_pass http://127.0.0.1:8080;
    proxy_redirect http://127.0.0.1:8080 /;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Port $server_port;
    access_log off;
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question