[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Tux setup problems



Hi,

I'm having trouble setting up Tux and Apache on Red Hat Linux 7.1. Tux
serves static pages fine but it doesn't fall back to Apache to serve stuff
that it can't do (it serves a 404 instead).

This is my configuration; changed as little as possible from the default:

 * bog standard RHL7.1 install (RPM versions kernel-smp-2.4.2-2,
   apache-1.3.19-5 and tux-2.0.26-1)
 * diff -u /etc/httpd/conf/{httpd.conf.orig,httpd.conf}: see attachment.
 * contents of /proc/sys/net/tux: see attachment.

I've attached a transcript of a test session; hopefully one of you can see
something obviously stupid because I've been at this for a couple of days
with no luck :-(

Thanks in advance,
Gary

[ Gary Benson, Red Hat Europe ][ gbenson@redhat.com ][ GnuPG 60E8793A ]

--- /etc/httpd/conf/httpd.conf.GHB	Thu Mar 29 18:53:01 2001
+++ /etc/httpd/conf/httpd.conf	Mon Sep 10 14:01:51 2001
@@ -179,7 +179,7 @@
 #
 #Listen 3000
 #Listen 12.34.56.78:80
-Listen 80
+Listen 127.0.0.1:8080
 
 #
 # BindAddress: You can support virtual hosts with this option. This directive
@@ -363,7 +363,7 @@
 # Port: The port to which the standalone server listens. For
 # ports < 1023, you will need httpd to be run as root initially.
 #
-Port 80
+#Port 80
 
 #
 # If you wish httpd to run as a different user or group, you must run
/proc/sys/net/tux/application_protocol: 0
/proc/sys/net/tux/max_header_len:       3000
/proc/sys/net/tux/referer_logging:      0
/proc/sys/net/tux/redirect_logging:     1
/proc/sys/net/tux/all_userspace:        0
/proc/sys/net/tux/max_free_requests:    1000
/proc/sys/net/tux/zerocopy_sendfile:    1
/proc/sys/net/tux/zerocopy_header:      1
/proc/sys/net/tux/cgi_cpu_mask:         -1
/proc/sys/net/tux/cgi_inherit_cpu:      0
/proc/sys/net/tux/noid:                 0
/proc/sys/net/tux/compression:          0
/proc/sys/net/tux/max_object_size:      0
/proc/sys/net/tux/virtual_server:       0
/proc/sys/net/tux/zerocopy_parse:       1
/proc/sys/net/tux/push_all:             0
/proc/sys/net/tux/ack_pingpong:         1
/proc/sys/net/tux/nonagle:              2
/proc/sys/net/tux/logentry_align_order: 5
/proc/sys/net/tux/serverport:           80
/proc/sys/net/tux/logging:              0
/proc/sys/net/tux/clientport:           8080
/proc/sys/net/tux/404_page:             404.html
/proc/sys/net/tux/cgiroot:              /var/www/html/
/proc/sys/net/tux/cgi_gid:              99
/proc/sys/net/tux/cgi_uid:              99
/proc/sys/net/tux/mode_allowed:         4
/proc/sys/net/tux/mode_forbidden:       0
/proc/sys/net/tux/max_keepalives:       10000
/proc/sys/net/tux/max_connect:          10000
/proc/sys/net/tux/max_backlog:          2048
/proc/sys/net/tux/defer_accept:         1
/proc/sys/net/tux/max_output_bandwidth: 0
/proc/sys/net/tux/keepalive_timeout:    30
/proc/sys/net/tux/threads:              2
/proc/sys/net/tux/logfile:              /var/log/tux
/proc/sys/net/tux/documentroot:         /var/www/html/
1. Run "service httpd start" and "service tux start".
2. Try to get an existing, static page "http://localhost/";, which should 
   be served by Tux:

| $ telnet localhost 80
| Trying 127.0.0.1...
| Connected to localhost.localdomain.
| Escape character is '^]'.
| GET / HTTP/1.0
| 
| HTTP/1.1 200 OK
| Content-Type: text/html
| Date: Mon, 10 Sep 2001 13:30:59 GMT
| Server: TUX/2.0 (Linux)
| Content-Length: 2890
| 
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
[rest of index.html follows]

3. Try to get a page which is a ScriptAlias, and thus should cause Tux to 
   fetch it from Apache:

| $ telnet localhost 80  
| Trying 127.0.0.1...
| Connected to localhost.localdomain.
| Escape character is '^]'.
| GET /cgi-bin/hello.sh HTTP/1.0
| 
| HTTP/1.1 404 Not Found
| Content-Length: 29
| 
| <HTML> Page Not Found </HTML>Connection closed by foreign host.

4. Just to be sure, fetch the CGI from Apache:

| $ telnet localhost 8080
| Trying 127.0.0.1...
| Connected to localhost.localdomain.
| Escape character is '^]'.
| GET /cgi-bin/hello.sh HTTP/1.0
| 
| HTTP/1.1 200 OK
| Date: Mon, 10 Sep 2001 13:32:36 GMT
| Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux)
| Connection: close
| Content-Type: text/html
| 
| <i>Hello world</i>
| Connection closed by foreign host.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []