Hehe, thats how i started man. :)
what OS/Tomcat Build are you using?
Maybe i can help :)
louie miranda (axis0.ath.cx)
------------------------------------------
Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)
----- Original Message -----
From: "Neil Streeter" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 5:17 AM
Subject: I give up!! - SOMEONE PLEASE HELP!
> Let me see if I have this straight!
>
> You can't configure *apache* with mod_webapp and tomcat so that it
> serves .html and .jsp from the same directory - right... (I can't that's
> for sure)
>
> I have tried every configuration possible - thinking that I could get
> the examples working without bypassing apache and using tomcat-only on
> port 8080 (which of course works fine)... I want everything to go
> through apache first... for obvious reasons...
>
> I either get 404 errors from apache that it can't find index.html
> [refering to /usr/local/jakarata/webapps/examples/jsp/index.html] (but
> directly calling a .jsp works fine) -- or I get the apache directory
> listing but .jsp files are not 'interpreted' and apache graciously spits
> back jsp source code as text.. (depending on the order modules are
> loaded in httpd.conf)
>
> I tried the httpd.conf Alias command to alias /examples/ to
> /usr/local/jakarta/webapps/examples... in conjunction with the
> WebAppConnection and WebAppDeploy directives thinking this would solve
> the 404 errors...no go...
>
> I have tried everything in between that I can think of too... but no
> success... My assumption is therefore that we will need to seperate out
> .jsp files from .html files -- much the same way we do with .cgi perl
> files in the 'cgi-bin' directory... correct???
>
> I also have not been able to get 'WebAppInfo /webapp-info' config
> directive to do didly squat...
>
> My server.xml and web.xml are 'out of the box' on jakarta-4.0.2 and a
> newly compiled mod_webapp from the jakarta-tomcat-connectors and
> apr-apache tars... I thought the new version might solve some of my
> problems... nope...
>
> attached - you will find what httpd.conf looks like now... Strangely - I
> could swear that everything was working fine with the 'default'
> httpd.conf that comes with apache (without the Alias - either)... but
> when we customized it for our setup - it quit working...
>
> Am I missing something here?
>
> Many thanks,
> ns
>
----------------------------------------------------------------------------
----
> # Refer to httpd.first for complete directions
>
> # ===============================================
> # Section 1: Global Environment
> # ===============================================
> # The directives in this section affect the overall operation of Apache,
> # such as the number of concurrent requests it can handle or where it
> # can find its configuration files.
>
> ServerType standalone
> ServerRoot /usr/local/apache
> #LockFile /usr/local/apache/logs/httpd.lock
> PidFile /usr/local/apache/logs/httpd.pid
> #ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
> #ResourceConfig conf/srm.conf
> #AccessConfig conf/access.conf
> Timeout 300
> KeepAlive On
> MaxKeepAliveRequests 100
> KeepAliveTimeout 15
> MinSpareServers 5
> MaxSpareServers 10
> StartServers 5
> MaxClients 150
> MaxRequestsPerChild 0
>
> # -----------------------------------------------
> # Dynamic Shared Object (DSO) Support & Modules
> # -----------------------------------------------
> LoadModule expires_module libexec/mod_expires.so
> LoadModule headers_module libexec/mod_headers.so
> LoadModule rewrite_module libexec/mod_rewrite.so
> LoadModule webapp_module libexec/mod_webapp.so
> LoadModule php4_module libexec/libphp4.so
> LoadModule auth_ldap_module libexec/auth_ldap.so
> <IfDefine SSL>
> LoadModule ssl_module libexec/libssl.so
> </IfDefine>
>
> # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
> ClearModuleList
> AddModule mod_env.c
> AddModule mod_log_config.c
> AddModule mod_mime.c
> AddModule mod_negotiation.c
> AddModule mod_status.c
> AddModule mod_info.c
> AddModule mod_include.c
> AddModule mod_autoindex.c
> AddModule mod_dir.c
> AddModule mod_cgi.c
> AddModule mod_asis.c
> AddModule mod_imap.c
> AddModule mod_actions.c
> AddModule mod_userdir.c
> AddModule mod_alias.c
> AddModule mod_rewrite.c
> AddModule mod_access.c
> AddModule mod_auth.c
> AddModule mod_expires.c
> AddModule mod_headers.c
> AddModule mod_so.c
> AddModule mod_setenvif.c
> <IfDefine SSL>
> AddModule mod_ssl.c
> </IfDefine>
> AddModule mod_webapp.c
> AddModule mod_perl.c
> AddModule mod_php4.c
> AddModule auth_ldap.c
>
> # ===============================================
> # Section 2: 'Main' server configuration
> # ===============================================
> #Listen 80
> #Listen 443
> #BindAddress *
>
> Port 80
>
> # -----------------------------------------------
> # Have to listen to both standard HTTP port and HTTPS port
> # -----------------------------------------------
> <IfDefine SSL>
> Listen 80
> Listen 443
> </IfDefine>
>
>
>
>
> # -----------------------------------------------
> # user, groups, etc
> # -----------------------------------------------
> User nobody
> Group nobody
> ServerAdmin [EMAIL PROTECTED]
> ServerName web.mydomain.com
>
>
>
> DocumentRoot "/usr/local/apache/htdocs"
>
>
> # -----------------------------------------------
> # Configure the "default" to be a very restrictive
> # -----------------------------------------------
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> Order Deny,Allow
> Deny from all
> </Directory>
>
> # -----------------------------------------------
> # Main document root
> # -----------------------------------------------
> <IfModule mod_dir.c>
> DirectoryIndex index.html index.htm welcome.html welcome.htm home.html
home.htm
> </IfModule>
>
> <Directory "/usr/local/apache/htdocs">
> Options Indexes FollowSymLinks MultiViews Includes
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> # -----------------------------------------------
> # htaccess
> # -----------------------------------------------
> AccessFileName .limit
> # The following lines prevent .htaccess files from being viewed by Web
clients.
> <Files ~ "^\.limit">
> Order Allow,Deny
> Deny from all
> Satisfy All
> </Files>
>
> # -----------------------------------------------
> # Intranet: Limited to on-campus access
> # -----------------------------------------------
> <Directory "/usr/local/apache/htdocs/intranet">
> AllowOverride AuthConfig
> Options Includes
> AuthType Basic
> AuthUserFile "/usr/local/apache/bin/users"
> AuthGroupFile /dev/null
> Satisfy any
> <Limit GET POST OPTIONS PROPFIND>
> Order Deny,Allow
> Deny from all
> Allow from .mydomain.com
> </Limit>
> <LimitExcept GET POST OPTIONS PROPFIND>
> Order Deny,Allow
> Deny from all
> </Limit>
> </Directory>
>
> # -----------------------------------------------
> # User directories
> # -----------------------------------------------
> <IfModule mod_userdir.c>
> UserDir www
> </IfModule>
>
> <Directory "/zoo/*/*/www/">
> AllowOverride FileInfo AuthConfig Limit
> Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
> <Limit GET POST OPTIONS PROPFIND>
> Order Allow,Deny
> Allow from all
> </Limit>
> <LimitExcept GET POST OPTIONS PROPFIND>
> Order Deny,Allow
> Deny from all
> </LimitExcept>
> </Directory>
>
> # -----------------------------------------------
> # mime types
> # -----------------------------------------------
> #CacheNegotiatedDocs
> UseCanonicalName On
> <IfModule mod_mime.c>
> TypesConfig /usr/local/apache/conf/mime.types
> </IfModule>
> DefaultType text/plain
>
> <IfModule mod_mime_magic.c>
> MIMEMagicFile /usr/local/apache/conf/magic
> </IfModule>
>
> # -----------------------------------------------
> # Log files
> # -----------------------------------------------
> HostnameLookups Off
> ErrorLog /usr/local/apache/logs/error_log
> # Possible values include: debug, info, notice, warn, error, crit, alert,
emerg.
> LogLevel debug
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i" agent
> CustomLog /usr/local/apache/logs/access_log combined
> #CustomLog /usr/local/apache/logs/referer_log referer
> #CustomLog /usr/local/apache/logs/agent_log agent
> ServerSignature On
>
> # -----------------------------------------------
> # Aliases
> # -----------------------------------------------
> <IfModule mod_alias.c>
> Alias /icons/ /usr/local/apache/icons/
> <Directory /usr/local/apache/icons>
> Options Indexes MultiViews
> AllowOverride None
> Order Allow,Deny
> Allow from all
> </Directory>
> ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
> <Directory /usr/local/apache/cgi-bin>
> Options None
> AllowOverride None
> Order Allow,Deny
> Allow from all
> </Directory>
> </IfModule>
>
> <IfModule mod_alias.c>
> Alias /examples/ /usr/local/jakarta-tomcat-4.0.2/webapps/examples/
> <Directory /usr/local/jakarta-tomcat-4.0.2/webapps/examples>
> Options Indexes MultiViews
> AllowOverride None
> Order Allow,Deny
> Allow from all
> </Directory>
> </IfModule>
>
> # -----------------------------------------------
> # Jakarata/JSP example connector to web.nmc.edu/examples
> # added by Neil -- 2/7/02
> # -----------------------------------------------
> WebAppConnection warpConnection warp web.mydomain.com:8008
> WebAppDeploy examples warpConnection /examples/
> WebAppInfo /webapp-info
>
>
>
> # -----------------------------------------------
> # Redirects
> # -----------------------------------------------
>
> # -----------------------------------------------
> # Content negotiation
> # -----------------------------------------------
> <IfModule mod_autoindex.c>
> IndexOptions FancyIndexing
>
> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
>
> AddIconByType (TXT,/icons/text.gif) text/*
> AddIconByType (IMG,/icons/image2.gif) image/*
> AddIconByType (SND,/icons/sound2.gif) audio/*
> AddIconByType (VID,/icons/movie.gif) video/*
>
> AddIcon /icons/binary.gif .bin .exe
> AddIcon /icons/binhex.gif .hqx
> AddIcon /icons/tar.gif .tar
> AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
> AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
> AddIcon /icons/a.gif .ps .ai .eps
> AddIcon /icons/layout.gif .html .shtml .htm .pdf
> AddIcon /icons/text.gif .txt
> AddIcon /icons/c.gif .c
> AddIcon /icons/p.gif .pl .py
> AddIcon /icons/f.gif .for
> AddIcon /icons/dvi.gif .dvi
> AddIcon /icons/uuencoded.gif .uu
> AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
> AddIcon /icons/tex.gif .tex
> AddIcon /icons/bomb.gif core
>
> AddIcon /icons/back.gif ..
> AddIcon /icons/hand.right.gif README
> AddIcon /icons/folder.gif ^^DIRECTORY^^
> AddIcon /icons/blank.gif ^^BLANKICON^^
>
> DefaultIcon /icons/unknown.gif
>
> #AddDescription "GZIP compressed document" .gz
> #AddDescription "tar archive" .tar
> #AddDescription "GZIP compressed tar archive" .tgz
>
> # HeaderName is the name of a file which should be prepended to
> # directory indexes.
> ReadmeName README
> HeaderName HEADER
>
> IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
> </IfModule>
>
> <IfModule mod_mime.c>
> AddEncoding x-compress Z
> AddEncoding x-gzip gz tgz
> AddLanguage da .dk
> AddLanguage nl .nl
> AddLanguage en .en
> AddLanguage et .ee
> AddLanguage fr .fr
> AddLanguage de .de
> AddLanguage el .el
> AddLanguage he .he
> AddCharset ISO-8859-8 .iso8859-8
> AddLanguage it .it
> AddLanguage ja .ja
> AddCharset ISO-2022-JP .jis
> AddLanguage kr .kr
> AddCharset ISO-2022-KR .iso-kr
> AddLanguage nn .nn
> AddLanguage no .no
> AddLanguage pl .po
> AddCharset ISO-8859-2 .iso-pl
> AddLanguage pt .pt
> AddLanguage pt-br .pt-br
> AddLanguage ltz .lu
> AddLanguage ca .ca
> AddLanguage es .es
> AddLanguage sv .se
> AddLanguage cz .cz
> AddLanguage ru .ru
> AddLanguage zh-tw .tw
> AddLanguage tw .tw
> AddCharset Big5 .Big5 .big5
> AddCharset WINDOWS-1251 .cp-1251
> AddCharset CP866 .cp866
> AddCharset ISO-8859-5 .iso-ru
> AddCharset KOI8-R .koi8-r
> AddCharset UCS-2 .ucs2
> AddCharset UCS-4 .ucs4
> AddCharset UTF-8 .utf8
>
> <IfModule mod_negotiation.c>
> LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru
ltz ca es sv tw
> </IfModule>
>
> AddType application/x-httpd-php .php .php4
> AddType application/x-httpd-php-source .phps
> AddType application/x-tar .tgz
>
> AddHandler cgi-script .cgi .pl
>
> # To use server-parsed HTML files
> AddType text/html .shtml .html .htm
> AddHandler server-parsed .shtml .html .htm
>
> #AddHandler send-as-is asis
> AddHandler imap-file map
> #AddHandler type-map var
> </IfModule>
>
> # Format: Action media/type /cgi-script/location
> # Format: Action handler-name /cgi-script/location
> #MetaDir .web
> #MetaSuffix .meta
> #ErrorDocument 404 /missing.html
>
> <IfModule mod_setenvif.c>
> BrowserMatch "Mozilla/2" nokeepalive
> BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
force-response-1.0
> BrowserMatch "RealPlayer 4\.0" force-response-1.0
> BrowserMatch "Java/1\.0" force-response-1.0
> BrowserMatch "JDK/1\.0" force-response-1.0
> </IfModule>
>
> # -----------------------------------------------
> # Server Info => http://web.nmc.edu/server-info
> # -----------------------------------------------
> <Location /server-info>
> SetHandler server-info
> Order Deny,Allow
> Deny from all
> Allow from .mydomain.com
> </Location>
>
> # -----------------------------------------------
> # Server Status => http://web.nmc.edu/server-status
> # -----------------------------------------------
> ExtendedStatus On
> <Location /server-status>
> SetHandler server-status
> Order Deny,Allow
> Deny from all
> Allow from .mydomain.com
> </Location>
>
> # -----------------------------------------------
> # An old Apache hack still thrown around; fwds. hits to apache
> # -----------------------------------------------
> <Location /cgi-bin/phf*>
> Deny from all
> ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
> </Location>
>
> # ===============================================
> # Section 3: Virtual Hosts
> # ===============================================
>
> # Use this for www.mydomain.com when we switch from current server
> #NameVirtualHost my.ip.add.here
> #<VirtualHost my.ip.add.here>
> # ServerAdmin [EMAIL PROTECTED]
> # DocumentRoot /usr/local/htdocs
> # ServerName www.mydomain.com
> # ErrorLog logs/error_log
> # CustomLog logs/log common
> #</VirtualHost>
>
> #<VirtualHost _default_:*>
> #</VirtualHost>
>
> <IfDefine SSL>
> AddType application/x-x509-ca-cert .crt
> AddType application/x-pkcs7-crl .crl
> </IfDefine>
>
> <IfModule mod_ssl.c>
> SSLPassPhraseDialog builtin
> #SSLSessionCache none
> #SSLSessionCache shmht:/usr/local/apache/logs/ssl_scache(512000)
> #SSLSessionCache shmcb:/usr/local/apache/logs/ssl_scache(512000)
> SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache
> SSLSessionCacheTimeout 300
> SSLMutex file:/usr/local/apache/logs/ssl_mutex
> SSLRandomSeed startup builtin
> SSLRandomSeed connect builtin
> #SSLRandomSeed startup file:/dev/random 512
> #SSLRandomSeed startup file:/dev/urandom 512
> #SSLRandomSeed connect file:/dev/random 512
> #SSLRandomSeed connect file:/dev/urandom 512
> SSLLog /usr/local/apache/logs/ssl_engine_log
> SSLLogLevel info
> </IfModule>
>
> <IfDefine SSL>
> # SSL Virtual Host Context
> <VirtualHost _default_:443>
> # General setup for the virtual host
> DocumentRoot "/usr/local/apache/htdocs"
> ServerName web.mydomain.com
> ServerAdmin [EMAIL PROTECTED]
> ErrorLog /usr/local/apache/logs/error_log
> TransferLog /usr/local/apache/logs/access_log
> SSLEngine on
> SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
> SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
> #SSLCertificateFile /usr/local/apache/conf/ssl.crt/server-dsa.crt
> SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
> #SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server-dsa.key
> #SSLCertificateChainFile /usr/local/apache/conf/ssl.crt/ca.crt
> #SSLCACertificatePath /usr/local/apache/conf/ssl.crt
> #SSLCACertificateFile /usr/local/apache/conf/ssl.crt/ca-bundle.crt
> #SSLCARevocationPath /usr/local/apache/conf/ssl.crl
> #SSLCARevocationFile /usr/local/apache/conf/ssl.crl/ca-bundle.crl
> #SSLVerifyClient require
> #SSLVerifyDepth 10
>
> #<Location />
> #SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
> # and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
> # and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
> # and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
> # and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
> # or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
> #</Location>
>
> # SSL Engine Options:
> #SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
> <Files ~ "\.(cgi|shtml|phtml|php3?)$">
> SSLOptions +StdEnvVars
> </Files>
> <Directory "/usr/local/apache/cgi-bin">
> SSLOptions +StdEnvVars
> </Directory>
>
> SetEnvIf User-Agent ".*MSIE.*" \
> nokeepalive ssl-unclean-shutdown \
> downgrade-1.0 force-response-1.0
> CustomLog /usr/local/apache/logs/ssl_request_log \
> "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> </VirtualHost>
> </IfDefine>
>
>
>
>
>
----------------------------------------------------------------------------
----
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>