kosmic1
01-27-2003, 05:17 PM
I just added an IP based site that for a few days has been pointing to the name servers on the dedicated server I'm using. the site comes up fine with http://thisisdasite.com but NOT when I type http://www.thisisdasite.com
When I try it with the WWW in front, I get an Ensim login screen (appliance admin / reseller admin / site admin) You all know the one I'm talking about, I'm sure. :)
Anyhow, as far as I can tell, everything LOOKS fine in my BIND settings. My PTR is in place, I can FTP into the site, and I can pull it up via the IP address and also with just http:// WITHOUT the www prefix. In looking at the host list for the domain, the (A) address for www is there and pointing to the IP address.
I'm NEW to Ensim, so I'm sure this is a simple fix. Can one of the web Gurus out there help me?
Thanks,
K1
cyansmoker
01-27-2003, 07:43 PM
I am confused: did you add this site using the Ensim UI?
kosmic1
01-27-2003, 07:46 PM
Yep, did all through the Ensim CP.
I made sure that "site name" had mydomain.com and that "apache web server" had www.mydomain.com in it
Everything in Ensim *looks* like it should work fine, and the site does come up with http://mydomain.com but just not when i type in http://mydomain.com
cyansmoker
01-27-2003, 07:56 PM
I dunno what it looks like in the latest releases, but in 3.0, you would have to look in /etc/httpd/conf/virtual/sitexx (sitexx being your site #) and check that the server name is 'www.yourdomain.com' and that an alias exists without the 'www' prefix.
kosmic1
01-27-2003, 10:03 PM
Thanks Cyan and also Mike in the UK. I will see if I can edit that file without messing anything up. :)
Stomp442
01-27-2003, 10:51 PM
Originally posted by kosmic1
Thanks Cyan and also Mike in the UK. I will see if I can edit that file without messing anything up. :)
That may fix you up, but it isn't addressing whatever caused the problem in the first place.
Can you think of anything at all you may have done, a customization or something, that may have had something to do with this? I know there is at least one apache.py floating around there that will cause exactly the problem you describe.
.
kosmic1
01-27-2003, 10:56 PM
The only thing I can think of is that I had the site set up as a name based site at first. I deleted it and removed all entries in BIND for it, then added the site again as an IP based site. The only thing I can think of that I did "wrong" was that I didn't stop and restart BIND.
By the way, what does an "apache.py" file do? As I mentioned, I'm totally new to all of this. My limited linux knowledge isn't carrying me very far.
cyansmoker
01-27-2003, 11:18 PM
The apache.py file is a template used to create the files I suggested you edit.
Actually, if you look here (http://www.webhostingtalk.com/showthread.php?s=&threadid=53421&highlight=apache.py) and more importantly here (http://www.webhostingtalk.com/showthread.php?s=&threadid=63654&highlight=apache.py) you will find much more information regarding this file.