logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: X-Sendfile returns 404-error
Author
wurstbrot



Joined: 21 Sep 2006
Posts: 3

PostPosted: Thu 21 Sep '06 8:57    Post subject: X-Sendfile returns 404-error Reply with quote

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: 7374
Location: Germany, Next to Hamburg

PostPosted: Thu 21 Sep '06 9:21    Post subject: Reply with quote

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

PostPosted: Thu 21 Sep '06 10:36    Post subject: Reply with quote

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 Very Happy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7374
Location: Germany, Next to Hamburg

PostPosted: Thu 21 Sep '06 11:11    Post subject: Reply with quote

Whoops!
i made a mistake in the config!
Options none must be Options Indexes MultiViews

Don't forget to restart Wink


P.S.: Wenn dann Parmaschinken Mr. Green
Back to top
wurstbrot



Joined: 21 Sep 2006
Posts: 3

PostPosted: Thu 21 Sep '06 12:02    Post subject: Reply with quote

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: 611
Location: Milford, MA, USA

PostPosted: Thu 21 Sep '06 16:02    Post subject: Reply with quote

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


Reply to topic   Topic: X-Sendfile returns 404-error View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules