1. Add the following configuration to nginx.conf

location / { try_files $uri $uri/ /index.php? $query_string; } location /excel { alias /home/excel; autoindex on; Autoindex_exact_size off; Autoindex_localtime on (KB, MB, GB); # display local time instead of GMT time}Copy the code

2. The access address is domain name/Excel

For example: http://192.168.22.57:811/excel

3. Other Instructions:

If you do not want to list all lists, you can choose to disable indexing

#autoindex on; Enable the index functionCopy the code

For a detailed explanation of the configuration of the following line, I recommend reading this article, which is quite detailed

location / { try_files $uri $uri/ /index.php? $query_string; }Copy the code