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:
<VirtualHost *:80>
ServerName appname.dev
ServerAlias appname.dev http://www.appname.dev *.appname.dev
DocumentRoot "/Applications/xampp/htdocs/appnamep/trunk"
</VirtualHost>
In the httpd-xampp.conf I added this:
Alias smartfact-app/trunk "/Applications/xampp/htdocs/smartfact-app/trunk"
<Directory "/Applications/xampp/htdocs/smartfact-app/trunk">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
In the hosts file I added this:
127.0.0.1 smartfact.dev
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!