I'm using XAMPP on Windows and I'm trying to set up a virtual site on 8080 port. I'm using the following conf:
Listen 80
Listen 8080
NameVirtualHost *:80
NameVirtualHost *:8080
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *:8080>
DocumentRoot "C:/xampp/htdocs/site2/"
ServerName localhost
</VirtualHost>
In site2 I have files...
site2/img/profile_pic.png and site2/icons/led/map.png
I can open the first one in my browser using the http://localhost:8080/img/profile_pic.png but the second one returns 404 when I try to open it (http://localhost:8080/icons/led/map.png)
The funny thing is that when I enter http://localhost:8080/icons it list the folder c:\xampp\apache\icons
Whats happening here?