You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ben-Nes Michael <mi...@canaan.co.il> on 2003/08/07 18:14:57 UTC
[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
Re: [users@httpd] Serving default file in directory whatever the URL is.
Posted by DvDmanDT <dv...@telia.com>.
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" <mi...@canaan.co.il>
To: "Apache List" <us...@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