Skip to content

Nekroido/xamppvhosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VirtualHosts and hosts file entries generator for XAMPP

Setting everything up

Copy VirtualHosts.exe to XAMPP root folder. Create new folder "home", it's where your projects will reside. The folder structure should be like this:

home/domain/public_html - for http://domain/ and http://www.domain/
home/domain/subdomain - for http://subdomain.domain/ and http://www.subdomain.domain/

Finally add these lines to the end of your httpd.conf file:

<Directory "C:/xampp/home">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted
</Directory>
Include conf/vhosts.cnf

Using

The application requires Administrative rights in order to write to %WINDIR%/System32/drivers/etc/hosts file. To generate VirtualHosts file and add entries to hosts file just run the app. To remove entries from hosts file add "restore" or "clean" parameter. You can use shortcuts in the package.

Customizing

You can edit included Template.txt file in you want to have custom entries for your Apache VirtualHosts configuration. "{0}" is for server name and "{1}" is path.

About

VirtualHosts and hosts file entries generator for XAMPP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages