Koozali.org: home of the SME Server

primary domain www not working.

Mumm-Ra

primary domain www not working.
« on: December 05, 2004, 02:11:12 AM »
I've got a problem with http on my primary domain.
Access to www has stopped working.
I can still get to it via <servername>.domainname
All the other domains that I host work perfectly.
I don't see anything in the httpd log files.
Is there anywhere else I can look to find out what's gone on?

guest22

primary domain www not working.
« Reply #1 on: December 05, 2004, 02:09:40 PM »
Hi,

'Stopped working' means it was working before correctly? What does it do/display?

Did you check all the httpd logfiles?

Did you install a custome template that may be affected httpd.conf?

Mumm-Ra

primary domain www not working.
« Reply #2 on: December 05, 2004, 06:21:31 PM »
Yes it was working perfectly before yesterday.
All the httpd log files don't suggest anything has gone wrong.
The only things that I did was install php accelerator that was on the forums a couple of days ago although this tested fine on my test box it didn't seem to work onmy live box.
This came with a custom httpd template which I have now removed, along the the php.ini template. Both the httpd.conf and php.ini files have been re-expanded to removed the phpa code.

Mumm-Ra

primary domain www not working.
« Reply #3 on: December 05, 2004, 06:30:12 PM »
Recently I've also installed several perl modules so that I can use the sender policy framework functionality in ASSP.
The modules are -
Mail-SPF-Query-1.997
Net-CIDR-Lite-0.15
Net-DNS-0.48
Sys-Hostname-Long-1.2
Email-Valid-0.15
Although I can't see how these can have stopped just the primary domain from working

guest22

primary domain www not working.
« Reply #4 on: December 05, 2004, 08:13:04 PM »
So removeing the php.ini and httpd.conf custom-templates and expanding didn't help?

Did you also tested the recently installed perl modules on the test box?

Mumm-Ra

primary domain www not working.
« Reply #5 on: December 05, 2004, 09:08:23 PM »
yes not a problem, but then again I only have my test box on the LAN and browsing to my domain on the test box worked fine.
This is what is confusing me.  i can browse to my primary domain fine on my LAN but not over the net.
The server is in server-only mode so accepts request on the 1 nic installed.

guest22

primary domain www not working.
« Reply #6 on: December 05, 2004, 09:51:14 PM »
Just to make sure here, you CANNOT surf your primary domain over the net, but can on your local lan.

You CAN surf other domains on the same box over the net and local lan.

Right?

Mumm-Ra

primary domain www not working.
« Reply #7 on: December 05, 2004, 10:04:32 PM »
Yeah this is where it get's confusing.
http://www.hspencer.co.uk doesn't work but
http://mail.hspencer.co.uk does.
Any of my other domain that I host work
http://www.fourmonkeyfeet.co.uk
even a domain pointing to my Primary ibay
http://www.hjspencer.co.uk

On my LAN it all works as it should.
My setup is an ADSL router/modem (Vigor 2600) which NAT's port 80 through to my server.
DNS records point all the domains to my IP - 80.176.150.183
I don't mind re-installing ( it's only a family & friends server with not much on it) but I don't want to yet as I want to wait for the Lycoris release which hopefully will be soon.

guest22

primary domain www not working.
« Reply #8 on: December 05, 2004, 10:12:37 PM »
Yep, your domains work/fail as you say...

The first thing that pops into my mind is that a template in /etc/e-smith/templates has been overwritten by a script. Check that dir on dates. Meaning I suspect your httpd.conf is not correct.

Mumm-Ra

primary domain www not working.
« Reply #9 on: December 05, 2004, 10:26:58 PM »
Running ls -clt in the httpd.conf folder revealed no files have been modified within the last 2 weeks (only a fragment for phpsysinfo which I re-installed).  In the virtual Hosts folder there anre no files that have been modified recently.
Even my custom httpd fragments haven't been modified for over 1 month (adding another gallery).
Is there anywhere else in templates that can cause the httpd.conf to go astray.

guest22

primary domain www not working.
« Reply #10 on: December 05, 2004, 10:35:13 PM »
Ok.... go for a '/sbin/e-smith/signal-event post-upgrade' to re-initialize all templates. Let's see what that does...

Mumm-Ra

primary domain www not working.
« Reply #11 on: December 05, 2004, 10:49:13 PM »
Still the same.
I'm so confused.  Never had any problems like this before.
Is there any idea when Lycoris will be releasing the updated version?  I amy be forced to make my test server a live on an go for a re-install. Damn!

guest22

primary domain www not working.
« Reply #12 on: December 05, 2004, 10:55:35 PM »
Just curious here, is your DNS entry for the primary domain 100% ok?

Mumm-Ra

primary domain www not working.
« Reply #13 on: December 05, 2004, 11:13:05 PM »
Oh my god I feel so stupid.
I've just ran a query againt www.hspencer.co.uk and noticed that the IP address against www was 80.176.150.183 where as my ip is 80.176.140.183. I'd already checked this but obviously not close enough!
Code: [Select]
; <<>> DiG 9.1.3 <<>> @ns1.hspencer.co.uk www.hspencer.co.uk ANY
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18135
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;www.hspencer.co.uk. IN ANY

;; ANSWER SECTION:
www.hspencer.co.uk. 10800 IN A 80.176.150.183

;; AUTHORITY SECTION:
hspencer.co.uk. 10800 IN NS ns17.zoneedit.com.
hspencer.co.uk. 10800 IN NS ns1.hspencer.co.uk.

;; ADDITIONAL SECTION:
ns1.hspencer.co.uk. 10800 IN A 80.176.140.183

;; Query time: 48 msec
;; SERVER: 80.176.140.183#53(ns1.hspencer.co.uk)
;; WHEN: Sun Dec 5 23:04:06 2004
;; MSG SIZE rcvd: 117

The serial number in my zone file indicates that I changed it on the 27/11/2004 although I can't remember doing it, but I must have.

Must stop playing!! Although that'll be no fun anymore
Case closed due to a dozy DNS administrator.

Thanks RequestedDeletion

guest22

primary domain www not working.
« Reply #14 on: December 05, 2004, 11:21:48 PM »
Goodnight ;-)