XAMPP configuring virtual hosts specific steps

Source: Internet
Author: User
Tags magento2
1. Install the XAMPP installation package to D, after the installation is complete, exit the XAMPP integration environment, go to the next step, configure the virtual host; first create a new directory Magento2 and Test folder in the Xampp/htdocs directory (this folder is the entire contents of your project).

PS. When creating multiple virtual hosts, you also need to create a new folder containing all of your items, such as Magento2 and test, if you need to create the folder again.

2. Locate your XAMPP installation directory, open the following directory: Apache/conf/extra directory Locate the httpd-vhosts.conf file, and then open it in Notepad.

3. After opening http-vhosts.conf, add the following code at the bottom:


  
   
    
    ServerName www.magento2.com DocumentRoot "D:/XAMPP/htdocs/magento2"
   
    
     
      Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all  Order Deny,Allow  Allow from all  Require all granted
   
    
  
   
  
   
    
    ServerName www.test.com DocumentRoot "D:/XAMPP/htdocs/test"
   
    
     
      Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all  Order Deny,Allow  Allow from all    Require all granted
   
    
  
   

4. In addition, you need to configure the C-drive host file, find the following directory: C-Disk/windows/system32/drivers/etc directory, find the Hosts file, open with Notepad, add 127.0.0.1 www.magento2.com Save, Such as:

127.0.0.1   www.magento2.com127.0.0.1   www.test.com

5. Configure the virtual host to complete, restart the XAMPP integration environment.

The above describes the XAMPP configuration virtual host specific steps, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • 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.