You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by jeremy co <je...@gmail.com> on 2009/05/08 17:57:23 UTC

[users@httpd] apache cannot display images

Hi,

I'm pretty new to apache , I haven't change httpd.conf much yet, just root
directory changed.


what happen is I put jpg file in root directory and try to c=access it via ,
www.somedomain.com/pic.jpg

and I get url of file instead in firefox and  in IE I get image not
displayed thumbnail with propertise of filetype "not available"

I guess apache wouldn't send content type to browser but jpeg Mime is in
effect by default.

What am I miss here?


Jeremy

Re: [users@httpd] apache cannot display images

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 09.05.09 09:35, Igor Cicimov wrote:
> The folder where you put the image and the image itself should be world
> readable.

No.

It just has to be accessible by apache process, on un*x it means that only
'execute' bit is required for either user or group apache is running at.

e.g.

User httpd
Group httpd

drwx--x--- 2 uhlar httpd 4096 Feb 26 14:53 /home/webs/www.fantomas.sk/images/

will be just enough.

the 'read' permission is only required for cases any of modules needs to get
the directory listing, e.g. directory listing by "Options Indexes",
content negotiation by "Options Multiviews" or mistakes checked by
mod_speling.
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"One World. One Web. One Program." - Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" - Adolf Hitler

---------------------------------------------------------------------
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 cannot display images

Posted by André Warnier <aw...@ice-sa.com>.
Igor Cicimov wrote:
> The folder where you put the image and the image itself should be world
> readable.

If that was the issue, then the OP would get a "forbidden" response, not 
a "non-available".

> 
> On Sat, May 9, 2009 at 5:51 AM, André Warnier <aw...@ice-sa.com> wrote:
> 
>> jeremy co wrote:
>>
>>> Hi,
>>>
>>> I'm pretty new to apache , I haven't change httpd.conf much yet, just root
>>> directory changed.
>>>
>>>
>>> what happen is I put jpg file in root directory and try to c=access it via
>>> ,
>>> www.somedomain.com/pic.jpg
>>>
>>> and I get url of file instead in firefox and  in IE I get image not
>>> displayed thumbnail with propertise of filetype "not available"
>>>
>>> I guess apache wouldn't send content type to browser but jpeg Mime is in
>>> effect by default.
>>>
>>> What am I miss here?
>>>
>>>  That we do not know yet.
>> But people who would like to help you, may miss :
>> - the kind of system on which this Apache is running
>> - what version of Apache this is
>> - what exactly did you change in httpd.conf ?
>> - are you running these browsers on the same machine where Apache is
>> installed or not ? Can you describe your configuration a little bit ?
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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


Re: [users@httpd] apache cannot display images

Posted by Igor Cicimov <ic...@gmail.com>.
The folder where you put the image and the image itself should be world
readable.

On Sat, May 9, 2009 at 5:51 AM, André Warnier <aw...@ice-sa.com> wrote:

> jeremy co wrote:
>
>> Hi,
>>
>> I'm pretty new to apache , I haven't change httpd.conf much yet, just root
>> directory changed.
>>
>>
>> what happen is I put jpg file in root directory and try to c=access it via
>> ,
>> www.somedomain.com/pic.jpg
>>
>> and I get url of file instead in firefox and  in IE I get image not
>> displayed thumbnail with propertise of filetype "not available"
>>
>> I guess apache wouldn't send content type to browser but jpeg Mime is in
>> effect by default.
>>
>> What am I miss here?
>>
>>  That we do not know yet.
>
> But people who would like to help you, may miss :
> - the kind of system on which this Apache is running
> - what version of Apache this is
> - what exactly did you change in httpd.conf ?
> - are you running these browsers on the same machine where Apache is
> installed or not ? Can you describe your configuration a little bit ?
>
>
>
> ---------------------------------------------------------------------
> 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 cannot display images

Posted by André Warnier <aw...@ice-sa.com>.
jeremy co wrote:
> Hi,
> 
> I'm pretty new to apache , I haven't change httpd.conf much yet, just root
> directory changed.
> 
> 
> what happen is I put jpg file in root directory and try to c=access it via ,
> www.somedomain.com/pic.jpg
> 
> and I get url of file instead in firefox and  in IE I get image not
> displayed thumbnail with propertise of filetype "not available"
> 
> I guess apache wouldn't send content type to browser but jpeg Mime is in
> effect by default.
> 
> What am I miss here?
> 
That we do not know yet.

But people who would like to help you, may miss :
- the kind of system on which this Apache is running
- what version of Apache this is
- what exactly did you change in httpd.conf ?
- are you running these browsers on the same machine where Apache is 
installed or not ? Can you describe your configuration a little bit ?



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