httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan van den Berg" <>
Subject [users@httpd] CGI script with & without dash in name on Apache 2.0.55
Date Wed, 15 Feb 2006 10:30:06 GMT
I have a very strange problem.

I have written a cgi script that has an image file (counter) as output.
I run it like this:

This runs perfectly. However when I rename the program from 'nph' ->
'nph-hits' (same UID/GID and system rights) and I run it my browser asks
what to do with the file ("octet-stream save as/open with")?!?! So like

The content of the script and all the rights are exactly the same?!
However Apache seems to be handling it differently. I am running Apache
2.0.55 with just plain perl 5.8.4 (no mod_perl).

This is very strange to say the least. I can rename the file to anything
as long as there is no dash in there. So that's probably causing the
problem but I can't find any information on this. Who has a solution for

(The program needs to have a dash because of a migration from an older
tool with a dash in the name).



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message