How to configure nginx+nuxt+apache?

There is a site on nuxt which is given for any url except /backend. On /backend will be october cms (now gone) on apache.
The folder structure is this:
/front - nuxt
/back - will be october cms, now just index.php with phpinfo();
I was able to make to the nginx gave nuxt. But when you request /backend I get a 404 error, but if you create a folder /backend/backend and put index.php the file is processed. It turns out I can't go to the root /backend. How do I make it so that when the request /backend, I have worked with since Korea.
Now nginx config looks like this:
map $sent_http_content_type $expires {
 "text/html" epoch;
 "text/html; charset=utf-8" epoch;
 default off;
}

server {
 listen 80;
 server_name my website;

 gzip on;
 gzip_types text/plain application/xml text/css application/javascript;
 gzip_min_length 1000;

 location / {
 expires $expires;

 "proxy_redirect" off;
 proxy_set_header Host $Host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header X-Forwarded-Proto $scheme;
 proxy_read_timeout 1m;
 proxy_connect_timeout 1m;
 proxy_pass http://127.0.0.1:3000;
}

 location /backend/ {
 expires $expires;

 "proxy_redirect" off;
 proxy_set_header Host $Host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_read_timeout 1m;
 proxy_connect_timeout 1m;
 proxy_pass http://127.0.0.1:8888/;
}
}
March 19th 20 at 09:13
1 answer
March 19th 20 at 09:15
Solution
It seems necessary was the line rewrite ^/backend(/.*)$ $1 break;

Find more questions by tags Vue.jsApacheNginx