i have the following nginx config:
server {
listen 80;
listen [::]:80;
listen 443;
listen [::]:443;
server_name oreqizer.com;
location / {
root /var/www/oreqizer/homepage/;
}
location /blog/ {
alias /var/www/oreqizer/blog/public/;
}
}
I want to have my blog (Hexo platform) available at /blog
. You can check the website at http://oreqizer.com/blog . HTML is served fine from the directory I specified, but requests for .css and .js are going to /
, which will be my homepage, thus having different files and assets.
How can I make asset requests from browser go to /blog
?