You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Julien OIX <ju...@presidence.univ-nantes.fr> on 2002/01/14 10:20:24 UTC

DirectoryIndex problem ??

hi everyone,

I have a little redirection problem with my apache server ...

here comes a part of my httpd.conf:

NameVirtualHost 193.52.112.79

<VirtualHost miles.presidence.univ-nantes.fr>

Port 8011

ServerName miles.presidence.univ-nantes.fr
ServerAdmin root@miles.presidence.univ-nantes.fr
DocumentRoot "/var/tomcat4/webapps/univ"
ErrorLog logs/error_log

DirectoryIndex index.jsp
UseCanonicalName Off

WebAppConnection    conn1 warp miles.presidence.univ-nantes.fr:8011
WebAppDeploy   /var/tomcat4/webapps/univ conn1 /
WebAppInfo   /webapp-info/

<Directory /var/tomcat4/webapps/univ>
 Options All
 Order allow,deny
 Allow from all
</Directory>

</VirtualHost>

Even if I use tomcat which is not the topic of this mailing list, I
think my problem comes from Apache configuration;


when I try the URL http://193.52.112.79 from the apache server, it
redirects immediatly to http://193.52.112.79/index.jsp, with or without
the DirectoryIndex directive

here's what I get in my access_log with the first URL:

	193.52.112.79 - - [11/Jan/2002:15:03:17 +0100] "GET / HTTP/1.0" 302 234
"-"
	193.52.112.79 - - [11/Jan/2002:15:03:20 +0100] "GET /index.jsp
HTTP/1.0" 200 12553 "-"


but when I try the first URL from an other machine even of the same
domain, it doesn't redirect ....

	193.52.112.53 - - [11/Jan/2002:15:06:01 +0100] "GET / HTTP/1.1" 302 246
"-"

and when I try http://193.52.112.79/index.jsp, it works fine.

	193.52.112.53 - - [11/Jan/2002:15:20:24 +0100] "GET /index.jsp
HTTP/1.1" 200 12566 "-"

I've read the FAQ's, tried to find the appropriate directive, but
nothing works ....

My system:
	Linux RedHat 7.1 Deluxe
	RPM's: apache-1.3.22-1.7.1
	       tomcat4-4.0-1

does someone have a tip for this problem ?

Thanks in advance
-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: julien.oix@presidence.univ-nantes.fr

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org