MAMP display file list MAMP is an integrated environment of PHP + Nginx + MySQL in Mac. it supports multiple sites and different versions of PHP. Someone asked MAMP how to display the file list. here is a record.
Knowledge supplement
For the sake of security, a website is forbidden to access the file list in the directory by default. When you request a directory:
St => start: start e => end: end cond1 => condition: Is there a file in the index file list? Cond2 => condition: can the file list be displayed? Cond3 => condition: Do you want to specify the 404 page? Op1 => operation: displays the default file op2 => operation: displays the file list op3 => operation: displays the specified 404 page op4 => operation: display server-level 404 error st-> cond1-> econd1 (yes)-> op1-> econd1 (no)-> cond2 (bottom) cond2 (yes) -> op2-> econd2 (no)-> cond3 (right) cond3 (yes)-> op3-> econd3 (no)-> op4-> e
- The corresponding indexfile (generally index.html, index.htm, index. php)
- In the website configuration section 404, you can specify the MAMP:
- Check Indexs
- Set the Directory index value *
Here, you can configure the Nginx configuration file to enable the access file list:
Http://blog.csdn.net/testcs_dn/article/details/39644147
PS:
You can follow me on Github, CSDN, and Weibo