1

I've Vue project here is my path vue in Ubuntu 18.04

/var/www/html/vue/{ project here }

the problem is my css path are /css which refer to /var/www/html/css How to set up my css in vue project refer in folder here is my nginx setup

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    listen 443 ssl;
    root /var/www/html;

    index index.html index.htm index.nginx-debian.html;

    location /vue {
        // I try to make root path but It's not workking error 500 when I uncomment #root
           #root /var/www/html/vue;
           try_files $uri $uri/ /vue/index.html;
    }
}

1 Answer 1

2

You can try the following with your current config:

 location /css {
    alias /var/www/html/css;
 }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.