VirtualHosts wont serve webfonts
Posted: 21. April 2014 03:40
Hi, I have a working XAMPP portable install on Win7 64. I have sites that serve webfonts (*.ttf, *.woff, *.svg, etc.). If I drop the website inside of /htdocs and load it, I have no problems. However, when using the site with a VirtualHost, I get a 404 error on the webfonts. I've tried AddTypes in .htaccess, etc. but nothing. This is my vhost config:
Any help would be greatly appreciated...really ripping my hair out on this one!
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:\Portable Apps\_Internet Tools\XAMPP\htdocs"
ServerName localhost
ErrorLog "logs/localhost.error.log"
CustomLog "logs/localhost.access.log" combined
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\Stuff\The Vault\Work\Tech\__Test Area\_test.local"
ServerName test.local
ErrorLog "logs/works.localhost.dev.error.log"
CustomLog "logs/works.localhost.dev.access.log" combined
<Directory "D:\Shane\The Vault\Work\Tech\__Test Area\_test.local">
AllowOverride All
Require all granted
Options Indexes FollowSymLinks
</Directory>
</VirtualHost>
Any help would be greatly appreciated...really ripping my hair out on this one!