I have 2 txt files that I placed at /home/forge/laravel58/public/files; I want to index those 2 txt files when I goto my site/files
I've tried
location /files {
#auth_basic "Restricted";
#auth_basic_user_file /home/forge/laravel58/.htpasswd;
alias /home/forge/laravel58/public/files;
autoindex on;
}
Go to : site/files, and see
403 Forbidden Nginx
from How can I index files only from specific folder of my public/ - Nginx?
No comments:
Post a Comment