Category : Apache

XAMPP – Create subdomain (virtualhost)

Edit Apache Config The file is located “c:xamppapacheconfextrahttpd-vhosts.conf”: Add this lines if not already exists: <VirtualHost> DocumentRoot C:/xampp/htdocs/ ServerName localhost ServerAdmin admin@localhost </VirtualHost> Then add the following to have “” point to <VirtualHost subdomain.localhost> ServerName localhost ServerAdmin webmaster@localhost DocumentRoot /home/httpd/htdocs/subdomain/ ServerAlias subdomain.localhost </VirtualHost> Edit HOSTS File You can find your HOSTS file in

Read More →