[Vuejs]-Nginx Config for to projects under the same server_name

0👍

Sure, you can accomplish what you want with “location” directive.

Example:

server {
    listen 80;
    server_name example.com;

    location / {
        # document root, proxy pass or whatever to vuejs.
    }

    location /api {
        # document root, proxy pass or whatever to symfony.
    }
}

Leave a comment