I am new with xampp. its my first time using this.
I'm trying to creating a virtual directory where I can run and test my website locally. I know I can stick my work inside the default virtual directory D:\xampp\htdocs and do my work there but I rather create my own directories.
anyways I opened up httpd-vhosts.conf file in D:\xampp\apache\conf\extra and added a virtual directory like this:
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot D:/xampp/htdocs/
ServerName localhost
ServerAdmin admin@localhost
</VirtualHost>
<VirtualHost local.holyghostit.com:80>
DocumentRoot D:/AAWebsiteProjects/holyghostit/
ServerName local.holyghostit
ServerAdmin admin@local.holyghostit.com
<Directory "D:/AAWebsiteProjects/holyghostit/">
Options Indexes FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
the part in orange gets added once. no changing done there. the blue part is the default local directory in xampp/htdocs which I am not wanting to use to as my workspace.
the red part is where I am stuck.
my project is located in D:\WebsiteProjects\holyghostit
are my declarations correct in the red part?
Next thing I did was I edited httpd.conf in D:\xampp\apache\conf
I replaced:
#LoadModule rewrite_module modules/mod_rewrite.so
with:
LoadModule rewrite_module modules/mod_rewrite.so
Then finally I edited the hosts file in C:\WINDOWS\system32\drivers\etc\
I added this to the bottom of the file:
127.0.0.1 local.holyghostit.com
So are my configurations correct?
And if I want to browse my website, what do I type into the url?
my computer is named msi
do I type:
msi/holyghostit/index.php?
or:
localhost/holyghostit.com/index.php?
because I've tried different combinations and nothing seems to be working. Can someone help please.
Thanks