Problem with Wildcard Subdomains

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Problem with Wildcard Subdomains

Postby timkant » 18. October 2010 16:27

Hey Everybody,

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
127.0.0.1 *.smartfact.dev
, but no result.

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!
timkant
 
Posts: 1
Joined: 18. October 2010 16:18

Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 5 guests