---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- Hello folks. I have installed the JServ into the Apache Server following all instructions and for some oddball reasons, I cannot get it to work as it should be. The following stuff down below is the entire setup of my Apache Server as it is. The server is composed of the following: Apache 1.3.11 - Mandrake 7.0 RPM Version Blackdown 1.1.8v1 - Java Port to Linux Sun JDSK JServ 1.1b1 You are welcome to do the www.digi-host.com/status/jserv/ to see what the problem I been encountering...since it says that it is Forbidden..which says it seems to be working...but cannot let me see it though. Secondly.. I tried to view the java applets by the following: http://www.digi-host.com/servlets/Hello which it is located in the /home/httpd/servlets directory. I did a check on the logs of the JServ and Mod_Jserv and they are both functioning. So... I been beating myself up the head for past week and still have no go on this. If anyone is willing to help by having access to the site and look it over with me, I would appreciate it. But it also allows some form of malicious hacker to have fun with it as well....but I needed to get this working by tomorrow or Wednesday before I lose the client. So..if anyone is willing to help, by all means... ICQ me and Email me and we will work it out to work on this. My ICQ is 10653726 and you can reach me at [EMAIL PROTECTED] or [EMAIL PROTECTED] Very much appreciated. [root@dns1 conf]# ls addon-modules/ httpd.conf magic ssl/ apache-mime.types jserv/ php3.ini vhost/ [root@dns1 conf]# tail -n 400 httpd.conf ## ## httpd.conf -- Apache HTTP server configuration file ## #---------------------- Use *ONLY* httpd.conf --------------------------- # ResourceConfig /dev/null AccessConfig /dev/null #---------------- Dynamic Shared Object (DSO) Support --------------------- LoadModule jserv_module modules/mod_jserv.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule env_module modules/mod_env.so LoadModule config_log_module modules/mod_log_config.so LoadModule agent_log_module modules/mod_log_agent.so LoadModule referer_log_module modules/mod_log_referer.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule status_module modules/mod_status.so LoadModule info_module modules/mod_info.so LoadModule includes_module modules/mod_include.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule dir_module modules/mod_dir.so LoadModule cgi_module modules/mod_cgi.so LoadModule asis_module modules/mod_asis.so LoadModule imap_module modules/mod_imap.so LoadModule action_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so #LoadModule proxy_module modules/libproxy.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so LoadModule anon_auth_module modules/mod_auth_anon.so #LoadModule dbm_auth_module modules/mod_auth_dbm.so #LoadModule db_auth_module modules/mod_auth_db.so LoadModule digest_module modules/mod_digest.so LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule expires_module modules/mod_expires.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so #LoadModule example_module modules/mod_example.so LoadModule unique_id_module modules/mod_unique_id.so LoadModule setenvif_module modules/mod_setenvif.so ClearModuleList AddModule mod_jserv.c #AddModule mod_mmap_static.c #AddModule mod_vhost_alias AddModule mod_env.c AddModule mod_log_config.c AddModule mod_log_agent.c AddModule mod_log_referer.c AddModule mod_mime_magic.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_speling.c AddModule mod_userdir.c #AddModule mod_proxy.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_auth_anon.c #AddModule mod_auth_dbm.c #AddModule mod_auth_db.c AddModule mod_digest.c AddModule mod_cern_meta.c AddModule mod_expires.c AddModule mod_headers.c AddModule mod_usertrack.c #AddModule mod_example.c #AddModule mod_unique_id.c AddModule mod_so.c AddModule mod_setenvif.c #----------------- Name Space and Server Settings --------------------- DocumentRoot /home/httpd/html #UserDir public_html DirectoryIndex index.html index.htm index.shtml index.cgi Default.htm default.htm index.php3 FancyIndexing on 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 ReadmeName README HeaderName HEADER IndexIgnore .??* *~ *# HEADER* README* RCS AccessFileName .htaccess TypesConfig /etc/httpd/conf/apache-mime.types DefaultType text/plain AddEncoding x-compress Z AddEncoding x-gzip gz AddLanguage en .en AddLanguage fr .fr AddLanguage de .de AddLanguage da .da AddLanguage el .el AddLanguage it .it LanguagePriority en fr de Alias /icons/ /home/httpd/icons/ ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/ ScriptAlias /protected-cgi-bin/ /home/httpd/protected-cgi-bin/ ApJServAction .jhtml /servlet/org.apache.servlet.ssi.SSI AddType application/x-httpd-php3 .php3 .phtml .php AddType application/x-httpd-php3-source .phps Addtype text/html .shtml AddHandler cgi-script .cgi AddType text/html .shtml #AddHandler send-as-is asis AddHandler imap-file map AddHandler type-map var AddHandler jsp-handler .jsp Action jsp-handler /servlet/gnujsp #MetaDir .web #MetaSuffix .meta # Customizable error response (Apache style) # these come in three flavors # # 1) plain text #ErrorDocument 500 "The server made a boo boo. # n.b. the (") marks it as text, it does not get output # # 2) local redirects #ErrorDocument 404 /missing.html # to redirect to local url /missing.html #ErrorDocument 404 /cgi-bin/missing_handler.pl # n.b. can redirect to a script or a document using server-side-includes. # # 3) external redirects #ErrorDocument 402 http://some.other_server.com/subscription_info.html # # mod_mime_magic allows the server to use various hints from the file itself # to determine its type. MimeMagicFile /etc/httpd/conf/magic 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 #--------------------- Global Access Configuration ------------------------ # This section defines server settings which affect which types of services # are allowed, and in what circumstances. # This part of httpd.conf used to be split in access.conf # First, we configure the "default" set of permissions. Used to be # restrictive, but tweaked by <[EMAIL PROTECTED]> to enable # FrontPage extensions and misc. performance patches. <Directory /> Options Indexes Includes FollowSymLinks AllowOverride None </Directory> <Directory /home/httpd/cgi-bin> AllowOverride None Options ExecCGI </Directory> <Directory /home/httpd/protected-cgi-bin> order deny,allow deny from all allow from localhost allow from .netwolves.com AllowOverride None Options ExecCGI </Directory> # Allow server status reports, with the URL of http://servername/server-status # Change the ".your_domain.com" to match your domain to enable. # Server Status Information Page <Location /status/apache> SetHandler server-status order allow,deny allow from all </Location> # Server Java Server Status Page #<Location /status/jserv/> #SetHandler jserv-status #order allow,deny #allow from all #</Location> # Local system documentation from localhost Alias /doc /usr/doc <Directory /usr/doc> order allow,deny allow from all Options Indexes FollowSymLinks </Directory> # There have been reports of people trying to abuse an old bug from pre-1.1 # days. This bug involved a CGI script distributed as a part of Apache. # By uncommenting these lines you can redirect these attacks to a logging # script on phf.apache.org. Or, you can record them yourself, using the script # support/phf_abuse_log.cgi. <Location /cgi-bin/phf*> deny from all ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi </Location> #---------------------- Server Configuration ---------------------------- ServerType standalone Port 80 HostnameLookups off User nobody Group nobody ServerAdmin [EMAIL PROTECTED] ServerRoot /etc/httpd BindAddress 216.18.17.208 NameVirtualHost 216.18.17.208 Listen 80 # ErrorLog: The location of the error log file. If this does not start # with /, ServerRoot is prepended to it. ErrorLog logs/error_log LogLevel warn # The following directives define some format nicknames for use with # a CustomLog directive (see below). 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 #CustomLog logs/access_log common #CustomLog logs/referer_log referer #CustomLog logs/agent_log agent CustomLog logs/access_log combined PidFile /var/run/httpd.pid ScoreBoardFile /etc/httpd/httpd.scoreboard LockFile /etc/httpd/httpd.lock ServerName www.digi-host.com UseCanonicalName off #CacheNegotiatedDocs Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 8 MaxSpareServers 20 StartServers 10 MaxClients 150 MaxRequestsPerChild 500 #ProxyRequests On #CacheRoot /var/cache/httpd #CacheSize 5 #CacheGcInterval 4 #CacheMaxExpire 24 #CacheLastModifiedFactor 0.1 #CacheDefaultExpire 1 #NoCache a_domain.com another_domain.edu joes.garage_sale.com #################################### # SGI Performance Settings # #################################### # # # To use this feature, you must uncomment mod_mmap_static in the modules # section on top of this file, on 2 lines: LoadModule and Addmodule <IfModule mod_mmap_static.c> QSC on </IfModule> ### To use mapped file you have to put a line like this: # mmapfile /home/httpd/html/file_to_map_in_memory # # You should also tune Child Processes. Please read the documentation on # your server at: http://localhost/manual/misc/perf-mja.html. This page # also explains how to avoid accept serialization by turning SingleListen on # and binding ports or IPs to different CPUs. #SingleListen On #################################### # Add-on Modules and Virtual Hosts # #################################### # # Each time we install an add-on module , the post-install script of the RPM # adds an "Include" line to read the configuration for that module. When we # remove the module, we keep the Include line, but we zero out the config # file so Apache doesn't complain. # # We also put virtual hosts "Includes" in this section. This will be used by # administration scripts. Instead of parsing all httpd.conf to modify a # vhost, we just include the config file. Every vhost has its own config # file. # Configuration Modules goes here Include conf/addon-modules/mod_auth_external.conf Include conf/addon-modules/mod_auth_inst.conf Include conf/addon-modules/mod_auth_mysql.conf Include conf/addon-modules/mod_dav.conf Include conf/addon-modules/mod_fastcgi.conf Include conf/addon-modules/mod_perl.conf Include conf/addon-modules/mod_php3.conf Include conf/addon-modules/mod_put.conf Include conf/ssl/mod_ssl.conf Include conf/ssl/ssl.default-vhost.conf Include /etc/httpd/conf/jserv/jserv.conf # Virtual Hosts Goes here Include conf/vhost/digi-host.com.conf Include conf/vhost/digi-host.net.conf Include conf/vhost/nirmal.net.conf Include conf/vhost/snord.digi-host.com.conf Include conf/vhost/web-djinn.com.conf Include conf/vhost/web-djinn.net.conf Include conf/vhost/yourshop.com.conf [root@dns1 conf]# ls addon-modules/ httpd.conf magic ssl/ apache-mime.types jserv/ php3.ini vhost/ [root@dns1 conf]# cd jserv [root@dns1 jserv]# ls example.properties jserv.properties zone.properties jserv.conf jserv.secret.key [root@dns1 jserv]# tail -n 150 jserv.conf ############################################################################### # Apache JServ Configuration File # ############################################################################### # Note: this file should be appended or included into your httpd.conf # <IfModule mod_jserv.c> # Whether Apache must start Apache JServ or not (On=Manual Off=Autostart) # Syntax: ApJServManual [on/off] # Default: "Off" ApJServManual off # Server Java Server Status Page <Location /status/jserv/> SetHandler jserv-status order allow,deny allow from all </Location> # Properties filename for Apache JServ in Automatic Mode. # In manual mode this directive is ignored # Syntax: ApJServProperties [filename] # Default: "./conf/jserv.properties" ApJServProperties /etc/httpd/conf/jserv/jserv.properties ApJServLogFile /var/log/httpd/mod_jserv.log # Syntax: ApJServLogLevel [debug|info|notice|warn|error|crit|alert|emerg] ApJServLogLevel info ApJServDefaultProtocol ajpv12 ApjServDefaultHost localhost ApJServDefaultPort 8007 ApJServVMTimeout 20 # Passes parameter and value to specified protocol. # Syntax: ApJServProtocolParameter [name] [parameter] [value] # Note: Currently no protocols handle this. Introduced for future protocols. ApJServSecretKey /etc/httpd/conf/jserv/jserv.secret.key ApJServMount /servlets /root ApJServMountCopy on ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI #ApJServAction .xml /servlets/org.apache.cocoon.Cocoon ############################## W A R N I N G ################################## # Remember to disable or otherwise protect the execution of the Apache JServ # # Status Handler (see right above) on a production environment since this may # # give untrusted users the ability to obtain restricted information on your # # servlets and their initialization arguments such as JDBC passwords and # # other important information. The Apache JServ Status Handler should be # # accessible only by system administrators. # ############################################################################### #</IfModule> [root@dns1 jserv]# ls example.properties jserv.properties zone.properties jserv.conf jserv.secret.key [root@dns1 jserv]# tail -n 150 jserv.properties ############################################################################### # Apache JServ Configuration File # ############################################################################### ################################ W A R N I N G ################################ # Unlike normal Java properties, JServ configurations have some important # extentions: # # 1) commas are used as token separators # 2) multiple definitions of the same key are concatenated in a # comma-separated list. ############################################################################### # # Execution parameters ####################### # The Java Virtual Machine interpreter. # Syntax: wrapper.bin=[filename] (String) # Note: specify a full path if the interpreter is not visible in your path. wrapper.bin=/usr/local/jdk/bin/java wrapper.classpath=/usr/lib/apache/ApacheJServ.jar wrapper.classpath=/usr/local/JSDK2.0/lib/jsdk.jar wrapper.classpath=/usr/lib/apache/htdocs/twz1jdbcForMysql.jar wrapper.classpath=/usr/lib/apache/java/ApacheJSSI.jar wrapper.classpath=/usr/lib/apache/java/servlet-2.0.jar Default: ajpv12 # # General parameters ###################### # Set the default IP address or hostname Apache JServ binds (or listens) to. # bindaddress=localhost # Set the port Apache JServ listens to. port=8007 # # Servlet Zones parameters ########################### # List of servlet zones Apache JServ manages zones=root # Configuration file for each servlet zone (one per servlet zone) root.properties=/etc/httpd/conf/jserv/zone.properties # # Thread Pool parameters ######################### # Enables or disables the use of the thread pool. pool=false # Indicates the number of idle threads that the pool may contain. pool.capacity=10 # Indicates the pool controller that should be used to control the # level of the recycled threads. # Syntax: pool.controller=[full class of controller] (String) # Default: org.apache.java.recycle.DefaultController pool.controller=org.apache.java.recycle.DefaultController # # Security parameters ##################### # Enable/disable the execution of org.apache.jserv.JServ as a servlet. security.selfservlet=true security.maxConnections=50 # Backlog setting for very fine performance tunning of JServ. # Unless you are familiar to sockets leave this value commented out. # security.backlog=5 security.allowedAddresses=127.0.0.1 security.authentication=true security.secretKey=/etc/httpd/conf/jserv/jserv.secret.key #security.challengeSize=5 # # Logging parameters #################### log=true log.file=/var/log/httpd/jserv.log log.timestamp=true log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz] log.queue.maxage = 5000 log.queue.maxsize = 1000 log.channel=true log.channel.info=true log.channel.servletException=true log.channel.jservException=true log.channel.warning=true log.channel.servletLog=true log.channel.critical=true # log.channel.debug=true [root@dns1 jserv]# ls example.properties jserv.properties zone.properties jserv.conf jserv.secret.key [root@dns1 jserv]# tail -n 150 zone.properties ############################################################################### # Servlet Zone Configuration File # ############################################################################### ################################ W A R N I N G ################################ # # Unlike normal Java properties, JServ configurations have some important # extentions: # # 1) commas are used as token separators # 2) multiple definitions of the same key are concatenated in a # comma-separated list. # ############################################################################### # List of Repositories ####################### # The list of servlet repositories controlled by this servlet zone # Syntax: repositories=[repository],[repository]... # Default: NONE # Note: The classes you want to be reloaded upon modification should be put # here. repositories=/home/httpd/servlets # Classloader parameters ######################### autoreload.classes=true autoreload.file=true init.timeout=10000 destroy.timeout=10000 session.useCookies=true session.timeout=1800000 session.checkFrequency=30000 # SingleThreadModel Servlets parameters ######################################## singleThreadModelServlet.initialCapacity=5 singleThreadModelServlet.incrementCapacity=5 singleThreadModelServlet.maximumCapacity=10 ################### S E R V L E T P A R A M E T E R S ###################### ################################## N O T E #################################### # When "classname" is specified, it means a Java dot-formatter full class name # without the ".class". For example, a class with source file named # "Dummy.java" with a package name "org.fool" is defined as "org.fool.Dummy". # # Since each servlet may have lots of private initialization data, Apache JServ # allows you to store those servlet initArgs in a separate file. To do this, # simply do not set any initArgs in this file: Apache JServ will then look for # a file named "[servlet classname].initargs" in the same directory of that # class. Note that this may work with even class archives. ############################################################################### # Startup Servlets ################### # Comma or space delimited list of servlets to launch on startup. # This can either be a class name or alias. # Syntax: servlets.startup=[classname or alias],[classname or alias],... # Default: NONE # servlets.startup=hello,snoop,org.fool.Dummy # Servlet Aliases ################## servlet.jserv.code=org.apache.jserv.JServ servlet.jervssi.code=org.apache.jservssi.JServSSI # Global Init Parameters ######################### # Servlet Init Parameters ########################## # Aliased Servlet Init Parameters ################################## [root@dns1 jserv]# ------------------------------------------ Need to get hold of me? You can try those following addresses: [EMAIL PROTECTED] - System Adminstrator [EMAIL PROTECTED] - Netwolves Technologies - Product Engineer ------------------------------------------------------------ Come visit FindLaw, the leading web portal focused on law and government. *** http://www.findlaw.com *** -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]