I have a little problem configuring wildcard subdomains in Apache with Xampp on Mac.
I've set up Vhosts for the apps I'm running locally, and everything is running just nice.
However, when I try to set up a wildcard subdomain, things seem to screw up. This is what I did to create a wildcard subdomain:
In the httpd-vhosts.conf file I added this:
ServerAlias appname.dev http://www.appname.dev *.appname.dev
In the httpd-xampp.conf I added this:
Alias smartfact-app/trunk "/Applications/xampp/htdocs/smartfact-app/trunk"
Allow from all
In the hosts file I added this:
I also tried to add
, but no result.127.0.0.1 *.smartfact.dev
Can sombody tell me what I'm doing wrong? When I try to approach the app with http://appname.dev it works just fun, but when i try to use http://foo.appname.dev of http://bar.appname.dev I get no response.
Thanks in advance!