Forum Moderators: phranque

Message Too Old, No Replies

Apache does not work with pictures

it works with html and php but does not sends other files to the browser

         

daemonroot

8:32 am on Aug 27, 2010 (gmt 0)

10+ Year Member



Hello Colleagues,
I have a strange problem with one apache 1.3 installation.
It uses php 5.2.12 as fastcgi and works fine with text html files and php files but does not show pictures.
If I try to load a picture with mi browser I get zero file length content and 200 OK response.
In apache access file there is logged successful access to the file and the answer 200 OK. There is nothing in error.log.

What could be wrong? All my pictures have zero size.

Thanks in advance
All ideas are welcome.

jdMorgan

12:48 pm on Aug 27, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you passing *all* requests to php scripts (including image, multimedia, css, and external JavaScript file requests), or just requests for "page" URLs?

Jim

daemonroot

1:14 pm on Aug 27, 2010 (gmt 0)

10+ Year Member



No, only requests to php scripts are sends to fastcgi, but I have a feeling that other objects also sent to the fastcgi but in the configuration is written that only php should be handled by fastcgi app.

my config is following:
<VirtualHost *>
ServerAdmin usr1@usr1.com
DocumentRoot /vhosts/user1/html
ServerName usr1.com
ServerAlias *.usr1.com
ErrorLog /var/www/vhosts/user1/logs/error_log
CustomLog /var/www/vhosts/user1/logs/access_log common
AddHandler php5-fastcgi .php
FastCgiExternalServer /vhosts/user1/html -socket /vhosts/user1/apache.sock
<Directory /vhosts/user1/html>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>