RE: [users@httpd] ErrorDocument Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of 
> Joshua Slive
> Sent: Monday, June 19, 2006 3:36 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: [users@httpd] ErrorDocument Question
> 
> On 6/19/06, Fenlason, Josh <jfenlason@xxxxxxx> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux