Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ad-hoc web server

 
   Linux (Home) -> Networking RSS
Next:  Wrong mime-type from server  
Author Message
lbrtchx

External


Since: Dec 27, 2007
Posts: 8



(Msg. 1) Posted: Thu Nov 27, 2008 11:51 am
Post subject: ad-hoc web server
Archived from groups: comp>os>linux>networking (more info?)

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
Back to top
Login to vote
lbrtchx

External


Since: Dec 27, 2007
Posts: 8



(Msg. 2) Posted: Thu Nov 27, 2008 3:39 pm
Post subject: Re: ad-hoc web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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
Back to top
Login to vote
Burkhard Ott

External


Since: Aug 13, 2008
Posts: 9



(Msg. 3) Posted: Thu Nov 27, 2008 9:39 pm
Post subject: Re: ad-hoc web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
Back to top
Login to vote
Bob Tennent

External


Since: Sep 14, 2003
Posts: 102



(Msg. 4) Posted: Fri Nov 28, 2008 3:38 am
Post subject: Re: ad-hoc web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 27 Nov 2008 11:51:48 -0800 (PST), lbrtchx RemoveThis @gmail.com 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.
Back to top
Login to vote
Johannes Bauer

External


Since: Nov 20, 2004
Posts: 5



(Msg. 5) Posted: Sat Nov 29, 2008 4:09 am
Post subject: Re: ad-hoc web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

lbrtchx.DeleteThis@gmail.com 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$5402220f@news.sunrise.ch>
Back to top
Login to vote
lbrtchx

External


Since: Dec 27, 2007
Posts: 8



(Msg. 6) Posted: Sun Nov 30, 2008 1:52 pm
Post subject: Re: ad-hoc web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> ... 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
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Linux Server v/s Windows Server ( WebServer - LAMP v/s WAMP) - Hello all, I dont know the exact group where I should post my questions. So, I m doing it on most of the groups which support components of LAMP stack. My client wants to use WAMP ( Windows + apache + MySQL + PHP ). But the site performance is very slo...

win2003 server and linux server coexist - the point is to save money by not buying MS Exchange and ISA. the main server is running win2003 server, and it connects to switch and ADSL router. is it possible to set up a seperate server running linux to server as a web proxy server and a mail..

server - Hallo, I have to decide for an http server configuration. The server will have 3-7 PHP/mysql sites with (at peak times) 1000-2000 conncarent connections. So I am looking for a Xeon 2,4GHz, 1GB Ram and 100Mb NIC, RAID disks. I am wondering if the above..

can I be seen behind the server?. - I'd like to know what are methods of making your IP seen on the internet if you're in local network and you're connected to the internet through server with firewall or proxy. Is it passible at all?. What changes to the server configuration would hav...

Newbie server - Hi everyone, Im looking for some advice as I am about to set up my own home network server, I have two XP machines with one used as file share and internet share. I now have a third machine which i want to use as a file server and internet share, i have....
       Linux (Home) -> Networking All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact