Dear All,
I have a pressing problem.
Just migrated a bunch of webpages onto a new server (old server was not my doing).
There're lots of pages served as virtual hosts like this:
Code:
<VirtualHost *:80>
UseCanonicalName Off
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} ^/(.*)cmd.exe(.*) [OR]
RewriteCond %{REQUEST_FILENAME} ^/(.*)root.exe(.*)
RewriteRule ^(.*) https://www.microsoft.com$1 [L,R]
RewriteCond /export/www/root/%{HTTP_HOST} !-d
RewriteCond /export/www/root/%{HTTP_HOST} !-f
RewriteRule ^(.*) http://www.myhomepage.com/ [L,R]
VirtualDocumentRoot /export/www/root/%0
VirtualScriptAlias /export/www/root/%0/cgi-bin/
</VirtualHost>
Also, I have many aliases, like this:
Code:
Alias /ettcsa/ "/export/www/pildid/ettcsa/"
Alias /atma/ "/export/www/pildid/atma/"
Now, if I point my browser to a picture file inside one of the virtual hosts, it will work just fine.
However, if I try to open a picture (of any extension, gif, jpg etc) which is under one of the aliased routes, like:
http://mysite.com/ettcsa/pic.gif
Then Apache first sends back a HTTP 200 answer, tells the client the type and size of the file, then as transfer would begin, it just closes the connection.
This is easiest to test by using wget. If I go ahead and do wget
http://mysite.com/ettcsa/pic.gif, then wget will try about 20 times to get the file, every time complaining about zero sized answer, then eventually it gives up.
However, if I put another kind of file, for example, a .php file into that dir and I try opening it, I get the page correctly. Same happens if the exension is unknown to Apache, like ".asfasfasf", or the file has no extension at all... I just don't understand...
What is my problem, what do you think?
L.