In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how xampp hides index.php". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how xampp hides index.php.
Xampp hide index.php methods: 1, configure httpd-vhosts.conf and httpd.conf files; 2, open the native host file, and add a virtual domain name at the end of the file.
Operating environment: macOS10.15.4 system, thinkphp v5.0.7 & & XAMPP (PHP) version 5.6.30, MacBook Air 2019 computer
How does xampp hide index.php?
MAC + XAMPP + TP5 + Virtual Domain name + Hidden index.php
1. Configure the Apache / Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf file
Sudo vim / Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf / / deal with multi-site localhost access DocumentRoot "/ Applications/XAMPP/xamppfiles/htdocs" ServerName localhost// DocumentRoot "/ Applications/XAMPP/xamppfiles/htdocs/zerg/public" / / replace with your own website root directory ServerName cm.com / / with your own virtual domain name
2. Configure Apache / Applications/XAMPP/xamppfiles/etc/httpd.conf
Sudo vim / Applications/XAMPP/xamppfiles/etc/httpd.conf# Virtual hosts / / enable virtual host configuration Include etc/extra/httpd-vhosts.conf / / remove the # before the statement
3. Configure native host files
Sudo vim / etc/hosts// add virtual domain name configuration 127.0.0.1 cm.com at the end of the file
If the index.php entry file cannot be hidden, the reason may be that the virtual domain name is illegal. Just reset the virtual domain name.
At this point, I believe you have a deeper understanding of "how xampp hides index.php". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.