View Single Post
  #1  
Old 12th September 2012, 13:57
vmos2 vmos2 is offline
Member
 
Join Date: Nov 2008
Posts: 57
Thanks: 1
Thanked 0 Times in 0 Posts
Default using * in ip address always redirects to first site

Good morning, I'm using ubuntu 12.04 with apache and ispconfig 3.0.4.6.

In this setup I've created a reseller and the reseller will have multiple clients. Each client will be able to add their own sites. I've got two problems (or maybe one depending on how you look at it)

If a client leaves the wildcard * in the ip address drop down field and creates more than one site, each site will redirect to the first one created.

I could get around this by using an IP address instead of *, but I can't find a way of allowing more than one client to use the same IP. This server is going to have a whole bunch of clients and only one IP so they can't have more than one each.

Can anyone point me in the right direction for either of these issues?

/edit, actually strictly speaking it's not the first site created, it seems to pick the first alphabetically

/edit/edit mostly fixed it. In /etc/apache2/ports.conf, I had this line hashed out

NameVirtualHost *:80

not entirely sure why that was, but un-hashing it fixes the issue. The only thing is that going to the servers IP address now brings up the first website instead of the holding page. Hang on I may have the answer.

Yep that's it. I created a site called 0000000000000000000000000.com so it'll always be first alphabetically and I'll put the holding page there.

Last edited by vmos2; 12th September 2012 at 14:42.
Reply With Quote
Sponsored Links