This is a bit of a beginner question, but I'm trying to make Nginx serve a static file server that contains symlinked folders. Eg, the root directory might contain directories A and B, which each contain symlinks to one other, eg A/B -> B
and B/A -> A
and I'd like http://localhost/A/B/A/B
to follow the symlinks and render the index.html
in B.
This is the config file I've tried after reading many tutorials and examples, but I'm still not quite understanding:
http {
server {
listen 8011;
location / {
autoindex on;
disable_symlinks off;
root /Users/me/project/test_project/build;
}
}
}
events {
worker_connections 4096; ## Default: 1024
}
http://localhost:8011/A/
is working, I get404 Not Found
, onlyhttp://localhost:8011/
works, so maybe I'm not even telling it to handle requests to subdirectories? Not sure. Thanks