Mamp is a php+nginx+mysql integrated environment under MAC, supports multi-site, different versions of PHP. Today someone asked Mamp how to display the file list problem, here to record.
Knowledge Supplement
A Web site for security reasons, the default is to disallow access to the list of files in the directory. When you request a directory:
St=>start: Start e=>end: End cond1=>condition: Is there a file in the index file list? Cond2=>condition: Is it allowed to display a list of files? Cond3=>condition: Have you specified 404 pages? Op1=>operation: Show Default file op2=>operation: Show file list op3=>operation: Displays the specified 404 page op4=>operation: Displays 404 errors at the server level st- >cond1->econd1 (yes)->op1->econd1 (NO)->cond2 (bottom) cond2 (yes)->op2->econd2 (NO)->cond3 ( right) Cond3 (yes)->op3->econd3 (NO)->op4->e
- Default index file list (typically index.html,index.htm,index.php)
- Site configuration in 404 related instructions, you can specify the files accessed at 404
Configure Mamp
:
- Tick Indexs
- Set the value of directory index to *
Here are the configuration files for configuring Nginx to open the list of Access files:
http://blog.csdn.net/testcs_dn/article/details/39644147
Ps:
You can focus on my Github, CSDN and Weibo