DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8553>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8553

"Invalid virtual host name" error starting mod_webapp.c

           Summary: "Invalid virtual host name" error starting mod_webapp.c
           Product: Apache httpd-1.3
           Version: 1.3.24
          Platform: Sun
               URL: http://www.orie.cornell.edu/~martin
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Other mods
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: [EMAIL PROTECTED]


I am getting the following error when starting Apache with the mod_webapp 
module:

# ../bin/apachectl startssl
[Fri Apr 26 07:45:25 2002] [warn] module mod_webapp.c is already added, skipping
Syntax error on line 1142 of /export/home/apache_modssl/conf/httpd.conf:
Invalid virtual host name
../bin/apachectl startssl: httpd could not be started

I have the following pertinent lines in httpd.conf:

LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c

<IfModule mod_webapp.c>
            WebAppConnection conn warp 127.0.0.1:8080
            WebAppDeploy     cocoon    conn  /cocoon
</IfModule>

I have two questions:

1)  Why is mod_webapp.c already loaded?  This is the first reference to it in 
the httpd.conf file.

2) Why is the virtual host name invalid?
  
The error refers to the line "WebAppConnection conn warp 127.0.0.1:8080".  No
value seems to work for the host name (e.g. localhost).


# ./httpd -V -l
Server version: Apache/1.3.24 (Unix)
Server built:   Apr 26 2002 06:47:09
Server's Module Magic Number: 19990320:11
Server compiled with....
 -D EAPI
 -D HAVE_MMAP
 -D USE_MMAP_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D HAVE_PTHREAD_SERIALIZED_ACCEPT
 -D HTTPD_ROOT="/export/home/apache_modssl"
 -D SUEXEC_BIN="/export/home/apache_modssl/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_XFERLOG="logs/access_log"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"

# ./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_status.c
  mod_info.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_access.c
  mod_auth.c
  mod_cern_meta.c
  mod_expires.c
  mod_headers.c
  mod_so.c
  mod_setenvif.c
  mod_ssl.c
  mod_php4.c
  mod_auth_kerb.c
  mod_auth_mysql.c
  mod_perl.c
suexec: disabled; invalid wrapper /export/home/apache_modssl/bin/suexec

I downloaded the current webapp from cvs.apache.org, according to the 
instructions in jakarta-tomcat-connectors-4.0.2-01-src/webapp/README.txt.
I only used the "--with-apxs=" option. Everything compiled OK and I copied the 
.so file (./apache-1.3/mod_webapp.so) into my apache libexc directory 
(/misc/apache/libexec).

# ldd ./apache-1.3/mod_webapp.so
        libsendfile.so.1 =>      /usr/lib/libsendfile.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libiconv.so.2 =>         /usr/lib/libiconv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

Reply via email to