Networking Forums

Networking Forums > Computer Networking > Linux Networking > ad-hoc web server

Reply
Thread Tools Display Modes

ad-hoc web server

 
 
lbrtchx@gmail.com
Guest
Posts: n/a

 
      11-27-2008, 06:51 PM
Hi,
~
In order to avoid viruses and things I use knoppix to access the
internet
~
Now, sometimes I need to setup an ad-hoc web server to show case some
work. I don't need a domain name to be resolve, nor do I need this
permanently
~
I thought all I had to do is:
~
1) set up my router to forward http request to port 80 to the IP
address of the internal box where I
~
2) have a service running accepting connections and serving pages on
port 80 from a USB external drive
~
But when I went to check this from a local internet caffee I was
404'ed
~
What else do I need to do?
~
Thanks
lbrtchx
 
Reply With Quote
 
 
 
 
Burkhard Ott
Guest
Posts: n/a

 
      11-27-2008, 07:39 PM
Am Thu, 27 Nov 2008 11:51:48 -0800 schrieb lbrtchx:

> 1) set up my router to forward http request to port 80 to the IP
> address of the internal box where I


Did you DNAT?

> 2) have a service running accepting connections and serving pages on
> port 80 from a USB external drive
> ~
> But when I went to check this from a local internet caffee I was
> 404'ed
> ~
> What else do I need to do?


Watch the error logfile check that the webserver uses the right location,
probably you have running a virtual host then you need the host: part in
http/1.1.

cheers
 
Reply With Quote
 
lbrtchx@gmail.com
Guest
Posts: n/a

 
      11-27-2008, 10:39 PM
> Did you DNAT?
~
I am not sure if I DNATed or not, but I did set up the router to
forward external requests on port 80 to the internal address of the
box (192.168.1.???) that was picked up using DHCP. I used to do that
same thing when I owned a domain name and I don't remember having any
trouble setting it up
~
> Watch the error logfile check that the webserver uses the right location,
> probably you have running a virtual host then you need the host: part in
> http/1.1.

~
OK. What do you mean, when you say "check that the webserver uses the
right location"?
~
This is what I see when I run lsof
~
sh-3.1# lsof -i -n -P
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
pump 2725 root 0u IPv4 7650 TCP *:68 (LISTEN)
java 3622 root 10u IPv6 10823 TCP *:80 (LISTEN)
java 3622 root 18u IPv6 10826 TCP *:8009 (LISTEN)
java 3622 root 19u IPv6 10830 TCP 127.0.0.1:8005 (LISTEN)
~
lbrtchx
 
Reply With Quote
 
Bob Tennent
Guest
Posts: n/a

 
      11-28-2008, 02:38 AM
On Thu, 27 Nov 2008 11:51:48 -0800 (PST), (E-Mail Removed) wrote:
> Hi,
> ~
> In order to avoid viruses and things I use knoppix to access the
> internet
> ~
> Now, sometimes I need to setup an ad-hoc web server to show case some
> work. I don't need a domain name to be resolve, nor do I need this
> permanently
> ~
> I thought all I had to do is:
> ~
> 1) set up my router to forward http request to port 80 to the IP
> address of the internal box where I
> ~
> 2) have a service running accepting connections and serving pages on
> port 80 from a USB external drive
> ~
> But when I went to check this from a local internet caffee I was
> 404'ed
> ~
> What else do I need to do?


Does Knoppix run a web server by default? Maybe you have to start it up
or configure it.

Bob T.
 
Reply With Quote
 
Johannes Bauer
Guest
Posts: n/a

 
      11-29-2008, 02:09 AM
(E-Mail Removed) schrieb:

> OK. What do you mean, when you say "check that the webserver uses the
> right location"?


He means that when you get a 404 everything on layer 3 is working fine.
This means your router is doing it's job just as it should, just the
webserver (application layer 7!) is not configured correctly.

Regards,
Johannes

--
"Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
-- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
<48d8bf1d$0$7510$(E-Mail Removed)>
 
Reply With Quote
 
lbrtchx@gmail.com
Guest
Posts: n/a

 
      11-30-2008, 08:52 PM
> ... just the webserver (application layer 7!) is not configured correctly.
~
I think this is not the case since it is what I checked first and it
works just fine when I go
~
http://192.168.X.X/
~
lbrtchx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating the USER accounts (and passwords) from one Windows server to another: Web Hosting server Spin Windows Networking 2 07-15-2009 01:54 PM
Minuteman's Production server. your provider's email server sends a message back to the Production server. Don Saklad Linux Networking 0 05-19-2007 07:17 AM
Longhorn Server 6001 with NAP: DHCP Server can't reach IAS Server Shrek Windows Networking 3 04-02-2007 06:21 PM
OpenVPN working between client and server only, but not able to access any machines in server subnet GS Linux Networking 10 12-06-2006 10:48 AM
I can´t access from Device Mobile to RRAS Server, Windows Server 2 Carlos Ortega-Colombia Windows Networking 1 11-02-2005 10:23 PM



1 2 3 4 5 6 7 8 9 10 11