Hello all,

I have problem with my configuration : Apache 2.0.54 - Tomcat
5.0.28
I have a problem to map ".class". (It works fine for .jsp)
when called "toto" (instead of toto.class) as there is no toto
i get a 404 error !

thanks 4 your help !

Pierre



****

Mon httpd.conf

### Section 1: Global Environment

ServerRoot "/usr/local/apache"
ErrorLog logs/error_log

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
#LockFile logs/accept.lock
</IfModule>
</IfModule>

# ScoreBoardFile: File used to store internal server process
information.
<IfModule !mpm_netware.c>
<IfModule !perchild.c>
#ScoreBoardFile logs/apache_runtime_status
</IfModule>
</IfModule>

<IfModule !mpm_netware.c>
PidFile logs/httpd.pid
</IfModule>

Timeout 300

KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>

<IfModule worker.c>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>

# listen on all ports
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
LoadModule jk2_module modules/mod_jk2.so

### Section 2: 'Main' server configuration

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
#
# If you wish httpd to run as a different user or group, you
must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run
httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as
nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or
semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
#
User nobody
Group #-1
</IfModule>
</IfModule>

ServerAdmin [EMAIL PROTECTED]
ServerName www.home.net
UseCanonicalName Off

#
# 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
LogFormat "%{User-agent}i" agent

LogLevel debug
CustomLog logs/access.log common

DocumentRoot "/home/test/webapps/servlets-examples"

<Directory /home/test/webapps/servlets-examples>
Options None
AllowOverride None
</Directory>

DirectoryIndex index.html index.jsp

<Directory />
Options None
AllowOverride None
</Directory>

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>


Alias /servlet
/home/test/webapps/servlets-examples/WEB-INF/classes



NameVirtualHost *

<VirtualHost *>
ServerName www.home.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/test/webapps/servlets-examples/
ErrorLog logs/home.net-errorlog
CustomLog logs/home.net-access.log common



<location "/servlet/*">
JkUriSet worker ajp13:localhost:8009
</location>
</VirtualHost>

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • mapping class in apache problem Pierre Faudon

Reply via email to