I have a sub domain. I want to set up virtual host for it locally using xampp (apache).
For example I want to use test.mywebsite.com I want to run local files by opening this sub domain.
I have tried almost all articles/helping meterials online to setup sub domain for virtual host but in vain.
I tried following but nothing work:
httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "E:/xampp/htdocs/project"
ServerName mywebsite.com
ServerAlias test.mywebsite.com
hosts file:
127.0.0.1 mywebsite.com
127.0.0.1 test.mywebsite.com
I'll appreciate for any suggestion/help. Thanks