httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <>
Subject Re: [users@httpd] Directorymatch Help Needed
Date Thu, 06 Jan 2005 18:31:39 GMT
Hash: SHA1

Jon Block wrote:
| I have a directory that I'm referencing within my virtual host such
that if
| you request:
| That pony directory is an alias that really goes to:
| \\\ponyshare3\yay.html
| I want to be able to use directory match to say "if a request is made into
| \\\ponyshare3 and the file isn't found, call an error document.
| This used to be really simple when the file was on the local machine:
| <DirectoryMatch "C:/ponyshare[0-9]+">
|  ErrorDocument 404 /bla.html
| </DirectoryMatch>
| But now that I'm trying to use a unc path, I can't get it to work:
| <DirectoryMatch "\\\\\\ponyshare[0-9]+">
| 	ErrorDocument 404 /bla.html
| </DirectoryMatch>
| I have to use a regular expression because there is a number after the
| ponyshare folder name.
| Am I doing something obviously wrong? Can someone help?

You're making it considerably harder than you need to.

<DirectoryMatch "ponyshare[0-9]+">
ErrorDocument 404 /bla.html

DirectoryMatch is a substring match, and so needs only contain part of
the total string.

- --
Rich Bowen -
There's more than one way to eat a rhesus
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message