I'm new to Apache. I'm trying to configure it on my localhost to do some testing. I've already deployed a PHP
web site on Apache and it works well. My httpd-vhosts.conf is:
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs"
ServerName shop.com
ServerAlias www.shop.com
ErrorLog "c:\temp\shop.com-error_log"
CustomLog "c:\temp\shop.com-access_log" common
</VirtualHost>
Also I added entries for shop.com
and www.shop.com
in hosts
file. Now I can use shop.com
to access my website. However, when the browser opens my web site, shop.com
changed to localhost
in the browser address bar. Is it possible to make browser still show shop.com
while it actually serves files in C:\xampp\htdocs
?