How to get an echo from mod_echo?

This is a discussion on How to get an echo from mod_echo? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello all, I thought this would be easy, but it's too much for me. I've got mod_echo compiled ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-27-2003
Edmund
 
Posts: n/a
Default How to get an echo from mod_echo?

Hello all,

I thought this would be easy, but it's too much for me.

I've got mod_echo compiled in:
->../bin/httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_echo.c
(...)

And the directive is at the top level of my httpd.conf (i.e., it's not
within a <Directory> or a <VirtualHost> or <Location>):
ProtocolEcho On
The ServerName is localhost, and it's listening on 127.0.0.1:21000,
but when I start the server, I can't seem to get an echo. If I
request a page, it just serves the page, and if I telnet to port
21000, it responds as a normal webserver -- nothing is echoed:

->telnet localhost 21000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
**ECHO THIS, PLEASE!!***
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not
understand.<br />
</p>
<hr />
<address>Apache/2.0.46 (Unix) Server at localhost Port 80</address>
</body></html>
Connection closed by foreign host.


It behaves like a normal webserver:

->telnet localhost 21000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Page for Apache Installation</title>
(...)

Connection closed by foreign host.

Also, notice the error message: it says it's listening on port 80,
but it's not. I configured it to listen to port 21000 with the Listen
directive, and of course I'm telnetting to port 21000, so obviously
this is a canned error message, or something is really messed up:

->su -c 'nmap -sS localhost'
Password:

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on fncsejm (127.0.0.1):
(The 1592 ports scanned but not shown below are in state: closed)
Port State Service
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp
111/tcp open sunrpc
515/tcp open printer
3306/tcp open mysql
6000/tcp open X11
10000/tcp open snet-sensor-mgmt
21000/tcp open unknown

So clearly, nothing is listening on port 80, as netstat agrees with
nmap:

->su -c 'netstat -natp | grep LISTEN'
Password:
tcp 0 0 127.0.0.1:32768 0.0.0.0:*
LISTEN 682/xinetd
tcp 0 0 0.0.0.0:515 0.0.0.0:*
LISTEN 700/lpd Waiting
tcp 0 0 0.0.0.0:21000 0.0.0.0:*
LISTEN 6119/httpd
tcp 0 0 0.0.0.0:3306 0.0.0.0:*
LISTEN 744/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN 606/portmap
tcp 0 0 0.0.0.0:6000 0.0.0.0:*
LISTEN 921/X
tcp 0 0 0.0.0.0:10000 0.0.0.0:*
LISTEN 877/perl
tcp 0 0 0.0.0.0:21 0.0.0.0:*
LISTEN 682/xinetd
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 667/sshd
tcp 0 0 0.0.0.0:23 0.0.0.0:*
LISTEN 682/xinetd
tcp 0 0 127.0.0.1:25 0.0.0.0:*
LISTEN 757/sendmail: accep

So what's the juju to get mod_echo to actually echo something?

Thanks in advance

Edmund
 


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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0