Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: X-Sendfile returns 404-error |
|
Author |
|
wurstbrot
Joined: 21 Sep 2006 Posts: 3
|
Posted: Thu 21 Sep '06 8:57 Post subject: X-Sendfile returns 404-error |
|
|
Good morning,
I have tried to use X-Sendfile to return images, I have dynamically created. For this, I use this headers in index.php:
Code: |
header("Content-type: image/png");
header("X-Sendfile: G:\imageCache\node13\node80.png);
|
But I don't recive the image, instead, I get:
Quote: |
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
|
The file path is correct. Does anyone have an idea, what I'm doing wrong?
Wurstbrot |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7404 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 21 Sep '06 9:21 Post subject: |
|
|
Hi Wurstbrot!
Is the G:\imageCache\node13 inside of the docroot?
If not you have to enable the access in httpd.conf
Code: |
<Directory "g:/imageCache/node13">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
|
Hope that helps
P.S.: Welche Wurst ist denn auf dem Brot? Salami? |
|
Back to top |
|
wurstbrot
Joined: 21 Sep 2006 Posts: 3
|
Posted: Thu 21 Sep '06 10:36 Post subject: |
|
|
Hi
imageCache is not in docRoot. I use an alias to get into this directory. But the access is enabled.
Your solution doesn't help
Wurstbrot
PS.: Wenn dann Schinken  |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7404 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 21 Sep '06 11:11 Post subject: |
|
|
Whoops!
i made a mistake in the config!
Options none must be Options Indexes MultiViews
Don't forget to restart
P.S.: Wenn dann Parmaschinken  |
|
Back to top |
|
wurstbrot
Joined: 21 Sep 2006 Posts: 3
|
Posted: Thu 21 Sep '06 12:02 Post subject: |
|
|
Quote: | Options none must be Options Indexes MultiViews |
No, that doesn't help, too.
Quote: | Don't forget to restart |
Off course. |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 614 Location: Milford, MA, USA
|
Posted: Thu 21 Sep '06 16:02 Post subject: |
|
|
You can only send files from the current directory (of the php page) or subdirectories of it.
See the note in the section titled Limitations/Issues/Security at http://celebnamer.celebworld.ws/stuff/mod_xsendfile/.
This makes sense in a virtual-hosting environment, where you wouldn't want one client to send files from another's directory.
If you are inclined to build mod_xsendfile from source - you can get the source from http://celebnamer.celebworld.ws/stuff/mod_xsendfile/mod_xsendfile.c and change line 269 to omit the APR_FILEPATH_SECUREROOT flag.
-tom- |
|
Back to top |
|
|
|
|
|
|