httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fenlason, Josh" <jfenla...@ptc.com>
Subject RE: [users@httpd] ErrorDocument Question
Date Mon, 19 Jun 2006 21:36:07 GMT
Hitting localhost/foo/bar.html or localhost/foo/bar with the following
configuration works.

<Directory "/foo">
   Options Indexes FollowSymLinks MultiViews
   MultiviewsMatch Handlers Filters
   AddHandler type-map var
   AllowOverride None
   allow from all
</Directory>

I also had to add bar.html.var in /foo, with the following contents:
	URI: bar

	URI: bar.html.en
	Content-language: en
	Content-type: text/html

	URI: bar.html.fr
	Content-language: fr
	Content-type: text/html

Thanks.
,
Josh.


> -----Original Message-----
> From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of 
> Joshua Slive
> Sent: Monday, June 19, 2006 3:36 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] ErrorDocument Question
> 
> On 6/19/06, Fenlason, Josh <jfenlason@ptc.com> wrote:
> > I'm trying to go the MultiView route, but I'm having a 
> little trouble.
> > I added
> > <Directory "/foo">
> >   Options Indexes MultiViews
> >   AllowOverride None
> >   Order allow,deny
> >   Allow from all
> > </Directory>
> >
> > /foo contains
> >   bar.html.en
> >   bar.html.fr
> >   bar.html.ja
> >
> > When I go to localhost/foo/bar.html the page can't be 
> found.  I'm sure 
> > I'm missing something stupid, but I'm not sure what.  Any 
> suggestions?
> > I'm on Apache 2.2.2 if that makes any difference.  Thanks.
> 
> Well, yes, there probably is a silly mistake someplace.  But 
> it becomes almost impossible to detect when you obscure your 
> examples ("foo", "bar").  For example, do you know that 
> <Directory> must point to real filesystem directories like 
> /usr/local/apache2/htdocs/foo and not web-directories like /foo?
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message