LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-13-2010, 04:43 PM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Rep: Reputation: 50
httpd2.2.15 access to localhost test page issue


Can't access localhost test page, but opens localhost page when I use full dns, at least from local network machines???
Running slackware13.1, Httpd2.2.15, 2wire gateway. Firewall web&http pinholes for ports 80,443. Port 80 is working.

Code:
lynx 4400 or http://localhost
returns error:
Quote:
Looking up 4400 first
Making HTTP connection to 4400
Alert! unable to connect to remotehost.
lynx:Can't access startfile Http://4400
4400 is machine name or server box name.
httpd.conf =
Code:
Listen 127.0.0.1:80
ServerName 4400
/etc/hosts =
Code:
127.0.0.1 localhost
192.168.1.xxx 4400.4400host.net 4400
Added 4400host.net to Resolve DNS on 2Wire Gateway(Never had to do this before to access httpd test from same machine or network machine?

Changed HTTPD.conf
Code:
Listen 192.168.x.xxx:80
ServerName 4400host.net
Code:
lynx 4440host.net returns
Quote:
"It Works!"
Never encountered this before, usually httpd test worked for "localhost" with minimal effort. I am concerned to procceed with this odd behavior. Has anyone else encountered this configuration is?
 
Old 06-13-2010, 05:08 PM   #2
natex
LQ Newbie
 
Registered: Dec 2009
Location: Central/Northern New York, USA
Distribution: slackware-current
Posts: 15

Rep: Reputation: 1
'ServerName' must be a fully qualified domain name. What happens when ServerName=4400.4400host.net ?
 
Old 06-14-2010, 03:06 AM   #3
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by natex View Post
'ServerName' must be a fully qualified domain name. What happens when ServerName=4400.4400host.net ?
Code:
lynx 4400
Looking up 4400 first
Making HTTP connection to 4400
Alert! unable to connect to remotehost.
lynx:Can't access startfile Http://4400
Code:
lynx 4400.4400host.net
It Works!
Code:
lynx 4400host.net
It Works!
Is this odd behavior to you? Trying to access localhost returns "Alert! unable to connect to remotehost?"
 
Old 06-15-2010, 05:29 AM   #4
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
I think part of the issue has to do with my having partitions this box for /var/www root document while in slackware13.1 Httpd2.2.15 Default Layout is set for /srv/www
being the root document directory.
http://wiki.apache.org/httpd/DistrosDefaultLayout
While folks are still recommending on forums using /var/www because it is considered the standard? I find this confusing and others say it doesn't matter where you put your root doc directory? It would be helpful if when people provide advice on a particular layout they would provide the one they are using as an example and why they prefer that layout. Just a suggestion. Thanks
 
Old 06-16-2010, 12:12 AM   #5
natex
LQ Newbie
 
Registered: Dec 2009
Location: Central/Northern New York, USA
Distribution: slackware-current
Posts: 15

Rep: Reputation: 1
As I suggested, please change 'ServerName' in httpd.conf to a fully qualified domain name. i.e. "4400.4400host.net"
 
Old 06-16-2010, 05:24 PM   #6
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
natex, thank you.. i had not ignored your suggestion.. i did change
ServerName = 4400.4400host.net then i posted results above:
lynx localhost works and above lynx combos work from installed machine but not lynx 4400.
From network machines only 4400host.net will connect, not localhost, 4400 or ip... so just tell me if this is correct behavior?
I am reinstalling again anyway because I want to partition hdd for /srv instead of /var.
Have other 2 more questions:
1) Can I install webmin on seperate nas box from where i installed httpd?
2) If i am setting up virtualhosts do still config Main Section ServerName with qualified domain name or ip? Was looking at:
http://www.xenocafe.com/tutorials/li...rver/index.php Tutorial maybe outdated.
Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql --- Access denied for user 'test'@'localhost' permalac Linux - Server 15 03-05-2013 09:51 PM
web page database access per page or per session? b0uncer Programming 6 01-13-2007 01:09 PM
http://localhost Page not found Manashi Linux - General 9 04-06-2006 12:19 AM
test for name of localhost in script Lotharster Linux - Newbie 3 02-06-2006 04:38 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 01:35 PM


All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration