修改Nginx配置
1sudo nano /etc/nginx/sites-available/example.com
1server {
2 listen 80;
3 server_name example.com;
4 root /var/www/example.com;
5 index index.html index.htm;
6 location / {
7 autoindex on; # Enable directory listing
8 autoindex_exact_size off; # Show file sizes in human-readable format
9 autoindex_localtime on; # Show file times in local time zone
10 try_files $uri $uri/ =404;
11 }
12 }