httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DvDmanDT" <dvdma...@telia.com>
Subject Re: [users@httpd] Serving default file in directory whatever the URL is.
Date Thu, 07 Aug 2003 17:22:01 GMT
Yes, it's possible, and it's easy... This is almost copied from my htaccess
file, with some changes...

Action do-something /image_db.php
AddHandler do-something .png .jpg .gif .jpeg .bmp


// DvDmanDT
MSN: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
----- Original Message ----- 
From: "Ben-Nes Michael" <miki@canaan.co.il>
To: "Apache List" <users@httpd.apache.org>
Sent: Thursday, August 07, 2003 6:14 PM
Subject: [users@httpd] Serving default file in directory whatever the URL
is.


> Hi All
>
> I use file that called image_db.php to output a binary image to the
browser.
>
> I would like to force serving the image_db.php file even when another file
> is asked.
>
> I mean
>
> http://someurl.com/images/world.jpg ->
> http://someurl.com/images/image_db.php
>
> Also I don't want a redirect, I want that the url will state that a
> jpg/gif/doc file is served and not a php one.
>
> Is it possible at all ?
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> Fax: 972-4-6990098
> http://www.canaan.net.il
> --------------------------
>
>
> ---------------------------------------------------------------------
> 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