Create Custom Server in XAMPP

Creat Custom Server in XAMPP

You can create a custom server which redirects to the specific folder in your XAMPP

Check the file named httpd-vhosts.conf in the path C:\xampp\apache\conf\extra

Backup the file by renaming it to httpd-vhosts2.conf

Now open the original file as an administrator and add the below code to end of the file with your customization

    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/public"
    ErrorLog "logs/"
    CustomLog "logs/" common

custom server,xampp