MAMP display file list

Source: Internet
Author: User
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:
  1. Check Indexs
  2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.