1 |
It seems to me that when I setup .cgi and .pl via an addhandler |
2 |
statement such as: |
3 |
|
4 |
AddHandler cgi-script .cgi .pl |
5 |
|
6 |
apache will try to execute anything containing .pl or .cgi. |
7 |
|
8 |
If i have a file, foo.pl for example. |
9 |
http://localhost/foo.pl will execute (good) |
10 |
now if I move it to foo.txt |
11 |
http://localhost/foo.txt will show me the contents of the file (good) |
12 |
now if I move it to foo.pl.txt |
13 |
http://localhost/foo.pl.txt will try to execute it, as it will if i |
14 |
canme it foo.cgi.txt. |
15 |
calling it foo.php.txt will still print it out, but the new lines are |
16 |
stripped etc, it looks like it's been run through and spat out php. |
17 |
|
18 |
Is this intended behaviour? It kind of seems like something gone wrong. |
19 |
|
20 |
Thanks, |
21 |
Korth |
22 |
-- |
23 |
() The ASCII Ribbon Campaign - against HTML Email, |
24 |
/\ vCards, and proprietary formats. |
25 |
-- |
26 |
gentoo-server@g.o mailing list |