You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richard Peacock <ri...@minorplanet.com> on 2009/03/24 17:24:31 UTC

[users@httpd] Apache not displaying JPG images in certain folders

Good afternoon all. 

I have made posts regarding this problem on the OpenSuse forum
(http://forums.opensuse.org/applications/410912-apache-help-needed-pleas
e.html) but I am not getting very far very quick! I apologise in advance
if this is not the correct place to ask for help but I thought I would
give it a try anyway.

If I use a DIRECTORY directive as below, I can get a directory listing
OK but if I right click > save as ... I get a 0kb file.  Likewise if I
click an image, I get a broken link icon.

Alias /music /home/myuser/lan/music
<Directory "/home/myuser/lan/music">
	Options Indexes
	Order allow,deny
	Allow from all
</Directory>

The directory in question is a remote-share, mounted as the local user
"myuser" in /etc/fstab.

My questions are:
1. Am I using the correct directive (Directory)? Should I use Location
instead?
2. Do I require any additional "Options" or entries within this
directive in order to be able to view JPEG images (just on a side note,
LOCAL JPG images display just fine)?

Once more, I am sorry if this is not an Apache question - I'm also
fairly new to this so please be gentle!!
Many thanks for taking the time to read this, if you have any questions,
you're welcome to ask me!

Kind regards
Richard


**********************************************************************
Privileged/Confidential Information may be contained in this 
message. If you are not the addressee indicated in this 
message (or responsible for delivery of the message to such 
person), you must not copy, distribute or take any action in 
reliance to it.
In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately 
if you or your employer do not consent to Internet email for 
messages of this kind. Opinions, conclusions and other 
information in this message that do not relate to the official 
business of Minorplanet Systems plc shall be understood as 
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
********************************************************************** 
 

---------------------------------------------------------------------
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] Apache not displaying JPG images in certain folders

Posted by Richard Peacock <ri...@minorplanet.com>.
Further to my email below, I found a solution using the ProxyPass directive.
It's working now, thanks to those who tried to help and thanks to the rest for taking the time to read :)

Rich

-----Original Message-----
From: Richard Peacock [mailto:richard.peacock@minorplanet.com] 
Sent: 24 March 2009 17:27
To: users@httpd.apache.org
Subject: RE: [users@httpd] Apache not displaying JPG images in certain folders

Hello Eric

Thank you for the suggestion. I did not seem to have this option in httpd.conf or any Included .CONF files so I added it as below.

EnableSendfile Off

I tried this and still does not display an image :(

Out of curiosity, I enabled it (EnableSendfile On) but this did not work either (and yes, I did remember to "rcapache2 restart" when I had made the changes and saved the config file!).

I find it very strange that I can see a directory listing but not access any of the files.


Richard
 

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com] 
Sent: 24 March 2009 17:13
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache not displaying JPG images in certain folders

On Tue, Mar 24, 2009 at 12:24 PM, Richard Peacock
<ri...@minorplanet.com> wrote:
> Good afternoon all.
>
> I have made posts regarding this problem on the OpenSuse forum
> (http://forums.opensuse.org/applications/410912-apache-help-needed-pleas
> e.html) but I am not getting very far very quick! I apologise in advance
> if this is not the correct place to ask for help but I thought I would
> give it a try anyway.
>
> If I use a DIRECTORY directive as below, I can get a directory listing
> OK but if I right click > save as ... I get a 0kb file.  Likewise if I
> click an image, I get a broken link icon.


EnableSendFile off?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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



**********************************************************************
Privileged/Confidential Information may be contained in this 
message. If you are not the addressee indicated in this 
message (or responsible for delivery of the message to such 
person), you must not copy, distribute or take any action in 
reliance to it.
In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately 
if you or your employer do not consent to Internet email for 
messages of this kind. Opinions, conclusions and other 
information in this message that do not relate to the official 
business of Minorplanet Systems plc shall be understood as 
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
********************************************************************** 
 

---------------------------------------------------------------------
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



**********************************************************************
Privileged/Confidential Information may be contained in this 
message. If you are not the addressee indicated in this 
message (or responsible for delivery of the message to such 
person), you must not copy, distribute or take any action in 
reliance to it.
In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately 
if you or your employer do not consent to Internet email for 
messages of this kind. Opinions, conclusions and other 
information in this message that do not relate to the official 
business of Minorplanet Systems plc shall be understood as 
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
********************************************************************** 
 

---------------------------------------------------------------------
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] Apache not displaying JPG images in certain folders

Posted by Richard Peacock <ri...@minorplanet.com>.
Hello Eric

Thank you for the suggestion. I did not seem to have this option in httpd.conf or any Included .CONF files so I added it as below.

EnableSendfile Off

I tried this and still does not display an image :(

Out of curiosity, I enabled it (EnableSendfile On) but this did not work either (and yes, I did remember to "rcapache2 restart" when I had made the changes and saved the config file!).

I find it very strange that I can see a directory listing but not access any of the files.


Richard
 

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com] 
Sent: 24 March 2009 17:13
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache not displaying JPG images in certain folders

On Tue, Mar 24, 2009 at 12:24 PM, Richard Peacock
<ri...@minorplanet.com> wrote:
> Good afternoon all.
>
> I have made posts regarding this problem on the OpenSuse forum
> (http://forums.opensuse.org/applications/410912-apache-help-needed-pleas
> e.html) but I am not getting very far very quick! I apologise in advance
> if this is not the correct place to ask for help but I thought I would
> give it a try anyway.
>
> If I use a DIRECTORY directive as below, I can get a directory listing
> OK but if I right click > save as ... I get a 0kb file.  Likewise if I
> click an image, I get a broken link icon.


EnableSendFile off?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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



**********************************************************************
Privileged/Confidential Information may be contained in this 
message. If you are not the addressee indicated in this 
message (or responsible for delivery of the message to such 
person), you must not copy, distribute or take any action in 
reliance to it.
In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately 
if you or your employer do not consent to Internet email for 
messages of this kind. Opinions, conclusions and other 
information in this message that do not relate to the official 
business of Minorplanet Systems plc shall be understood as 
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
********************************************************************** 
 

---------------------------------------------------------------------
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] Apache not displaying JPG images in certain folders

Posted by Eric Covener <co...@gmail.com>.
On Tue, Mar 24, 2009 at 12:24 PM, Richard Peacock
<ri...@minorplanet.com> wrote:
> Good afternoon all.
>
> I have made posts regarding this problem on the OpenSuse forum
> (http://forums.opensuse.org/applications/410912-apache-help-needed-pleas
> e.html) but I am not getting very far very quick! I apologise in advance
> if this is not the correct place to ask for help but I thought I would
> give it a try anyway.
>
> If I use a DIRECTORY directive as below, I can get a directory listing
> OK but if I right click > save as ... I get a 0kb file.  Likewise if I
> click an image, I get a broken link icon.


EnableSendFile off?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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