Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By cfcindia
I am trying to modify my drupal droplet nginx configuration to serve files from an another location.
/var/www/html/mysite <-- already configured and works fine and is accessible through the webserver
/var/www/html/resources <-- I want to configure the webserver to serve content from this directory
The modification I made in /etc/nginx/sites-available/drupal is not taking effect
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/html/mysite;
index index.php index.html index.htm;
.
.
.
location ~* ^/more/ {
root /var/www/html/resources;
index index.html index.htm;
try_files $uri $uri/ =404;
}
}
Still resources served from under the /resources is throwing 404 for e.g. http://cfcindia.org/resources/en/books/pdf/AGF.pdf
what is the nginx configuration changes to serve files from /resources?
I am an nginx newbie, and have researched existing community questions, and the internet, but could not get it to work. HELP!
Rabi