XAMPP phpMyAdmin subdomain on localhost

Create a localhost subdomain for phpMyAdmin on XAMPP

  • Open xampp\apache\conf\extra\http-vhosts.conf and append the following (modify the DocumentRoot for your XAMPP installation path):


## Added to serve as primary recipient of web requests:
<VirtualHost *:80>
    DocumentRoot "C:/Users/XYZ/xampp/htdocs"
    ServerName localhost
</VirtualHost>


## Added to get phpMyAdmin onto a subdomain:
<VirtualHost *:80>
    DocumentRoot "C:/Users/XYZ/xampp/phpMyAdmin/"
    ServerName phpmyadmin.localhost
</VirtualHost>






  •  Open C:\Windows\System32\drivers\etc\hosts and append the following:
127.0.0.1       phpmyadmin.localhost





  • Restart Apache


No comments:

Post a Comment

XAMPP phpMyAdmin subdomain on localhost

Create a localhost subdomain for phpMyAdmin on XAMPP Open xampp\apache\conf\extra\http-vhosts.conf and append the following (modify the Docu...