Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

hosting cobalt webserver at home

Thread Tools
 
Search this Thread
 
Old 14 June 2004, 11:31 PM
  #1  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default hosting cobalt webserver at home

scratching my head over this one...

I can host an IIS webserver on my Win2k machine no probs, but not on my Sun Cobalt webserver

I have a fixed ip on my router. And use port forwarding to direct IP address and port to my internal machine

I can access the webserver via Telnet no probs, but not via HTTP. I have setup the correct ports on the router for port 80 but it just doesnt get through

any ideas ?
Sean
Old 14 June 2004, 11:33 PM
  #2  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

i can access the webserver no probs via the internal network too, just not via the internet
Old 14 June 2004, 11:49 PM
  #3  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

You forwarding from 80 -> 80 and not redirecting too e.g. 80 -> 1080
Old 15 June 2004, 12:02 AM
  #4  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

ive tried all sorts, eventually when working will be x to 80, but even if i set up 80 to 80 to test connectivity it doesnt work
Old 15 June 2004, 12:13 AM
  #5  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

You getting any specific errors?

The router shouldn't care what's hosting the website behind it especially if it's just plain HTTP requests. I had some probs hosting sites that redirected ports, but that was down to the app on the server.

Does it not even work with a very plain and simple html page?

Stefan
Old 15 June 2004, 12:15 AM
  #6  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

no its getting on my ****, i know the routing rules are fine coz i can do everything else i want like access the IIS server if i want, or access Telnet on the webserver, it must be something to do with the webserver and HTTP. Maybe something like it doesnt support NAT or something ??
Old 15 June 2004, 08:54 AM
  #7  
Iain
Scooby Regular
 
Iain's Avatar
 
Join Date: Nov 1998
Posts: 203
Likes: 0
Received 0 Likes on 0 Posts
Default

I would check the web server logs or security logs on you're cobalt server.

I have the same idea set up at home with a linux server. No probs at all.
Might be a security issue on you're cobalt server.

Trending Topics

Old 15 June 2004, 05:26 PM
  #8  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

yes think your riht iain. I have rulled out connectivity issue as i can get to the same server via Telnet. When im back home i'll check the logs and look at the firewall etc
cheers
Old 15 June 2004, 07:19 PM
  #9  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

Can you browse to the server on your local subnet using HTTP?

Stefan
Old 15 June 2004, 07:41 PM
  #10  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

Can you telnet from the outside world to port 80?
Old 16 June 2004, 12:08 AM
  #11  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by ozzy
Can you browse to the server on your local subnet using HTTP?

Stefan
yes can acces sit fine on my internal network, just not via the internet via my router's fixed IP

never tried to telnet on port 80. Do you mean configure my router to forward port 80 requests to my server on 23 ??

sean
Old 16 June 2004, 12:16 AM
  #12  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

No, the port the webserver is listening on, you should see a response like:

Trying n.n.n.n...
Connected to n.
Escape character is '^]'.
Old 16 June 2004, 07:06 AM
  #13  
SiDHEaD
Scooby Regular
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Default

You're not trying to access it via your external ip, but from a machine on you're local subnet are you? If your router has any kind of firewall it may well be saying no thanks.
Old 19 June 2004, 12:10 AM
  #14  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

i'm defo trying to access from internet via another ISP. I have even disabled the firewall on the webserver temporary to rule out ant firewall issues.

the only log im getting is:


[18/Jun/2004:12:00:00 +0100] "HEAD / HTTP" 200 0 "-" "-"
mi16.205.com 212.183.131.161 - - [18/Jun/2004:12:00:36 +0100] "GET /mi16.205.com/205.htm HTTP/1.0" 302 220 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"

this proves im getting to the webserver via the net, and trying to access my virtual site called <IP>/mi16.205.com, but its just not displaying any pages...
Old 19 June 2004, 12:19 AM
  #15  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Default

re-read the thread, post deleted

Last edited by judgejules; 19 June 2004 at 12:28 AM.
Old 19 June 2004, 01:07 AM
  #16  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by rb5_336
[18/Jun/2004:12:00:00 +0100] "HEAD / HTTP" 200 0 "-" "-"
mi16.205.com 212.183.131.161 - - [18/Jun/2004:12:00:36 +0100] "GET /mi16.205.com/205.htm HTTP/1.0" 302 220 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"

this proves im getting to the webserver via the net, and trying to access my virtual site called <IP>/mi16.205.com, but its just not displaying any pages...
Part of that logfile is missing, each line starts with the IP address of the connecting host.

There are two log lines there, one is a HEAD request for "/", the next is a GET for the "/mi16.205.com/205.htm" page. Is that purely you making those? It looks like your initial HEAD sends back HTML containing a meta refresh because of the 200 OK, but a HEAD should only send headers in response.

tail -f the the access and error logs and make a request with a web browser that doesn't send HEAD requests
Old 19 June 2004, 10:14 PM
  #17  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

Ok update here, still n progress, but ive got a concrete example

Here are 2 lines from my access file under the httpd directory

the first line is me acessing from the internet, 2nd line via the internal network. Both requesting the same page.

cobalt.home 212.183.131.161 - - [19/Jun/2004:21:34:50 +0100] "GET /test.html HTTP/1.0" 302 208 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"

cobalt.home 192.168.1.10 - - [19/Jun/2004:21:35:05 +0100] "GET /test.html HTTP/1.1" 200 342 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"

I dont understand why im getting a 302 error via the web when its exactly the same file ?????????????
Old 20 June 2004, 12:35 AM
  #18  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

The request from the outside sends an HTTP 1.0 request, whereas your internal one sends an HTTP 1.1. Shouldn't matter, as long as a host header was sent.

Let's see your httpd.conf, and from both the inside and outside, can you telnet to port 80 of your webserver and type:

HEAD / HTTP/1.0<return>
HOST: your.webservers.fqdn<return><return>

and paste the output.
Old 20 June 2004, 02:01 PM
  #19  
Chris L
Scooby Regular
 
Chris L's Avatar
 
Join Date: May 2000
Location: MY00,MY01,RX-8, Alfa 147 & Focus ST :-)
Posts: 10,371
Likes: 0
Received 0 Likes on 0 Posts
Default

You should be charging for this Steve
Old 21 June 2004, 10:29 AM
  #20  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

I only usually charge for programming
Old 21 June 2004, 10:31 AM
  #21  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Wink

Originally Posted by Chris L
You should be charging for this Steve
He's not fixed it yet
Old 21 June 2004, 12:39 PM
  #22  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

when i telnet to port 80 (either via the net or internally) i just get a blank telnet session.

I have since had a tip to use a different browser. When access the site via Firefox, it actually tells it has a problem resolving the DNS address of the virtual site. So i'm trying to get DNS on my webserver to try and use its own DNS entries rather than my ISPs to resolve to the local server
Old 21 June 2004, 02:01 PM
  #23  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by rb5_336
when i telnet to port 80 (either via the net or internally) i just get a blank telnet session.
That'll be because you're using yet another useless MS product, their excuse for a telnet client It hides the initial response from the server, you can type there but I don't think you'll see what you type it either

Originally Posted by rb5_336
I have since had a tip to use a different browser. When access the site via Firefox, it actually tells it has a problem resolving the DNS address of the virtual site. So i'm trying to get DNS on my webserver to try and use its own DNS entries rather than my ISPs to resolve to the local server
Try the telnet thing with a different client if needs be. Or mail me the IP address and I'll do it

If you were getting no DNS resolution you wouldn't be able to connect to the webserver using the name. Instead of setting up DNS, you can just add the hostnames to your hosts file.
Old 21 June 2004, 07:15 PM
  #24  
rb5_336
Scooby Regular
Thread Starter
 
rb5_336's Avatar
 
Join Date: Oct 2002
Location: Sussex
Posts: 955
Likes: 0
Received 0 Likes on 0 Posts
Default

even with putty its still a blank screen, internal and via web ??
Old 21 June 2004, 07:25 PM
  #25  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

Are you telnetting to the hostname? If it can't resolve it'll sit there until DNS times out. Try the IP address, and don't forget the host: header, or mail me your httpd.conf and external IP address and I'll take a look.
Old 21 June 2004, 08:23 PM
  #26  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by ozzy
He's not fixed it yet
I have now
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
XRS
Computer & Technology Related
18
16 October 2015 01:38 PM
BLU
Computer & Technology Related
11
02 October 2015 12:53 PM
Pro-Line Motorsport
ScoobyNet General
9
28 September 2015 09:48 PM



Quick Reply: hosting cobalt webserver at home



All times are GMT +1. The time now is 06:30 PM.