Hey all, This is my first time posting so excuse me if I break any rules etc.
I am having a very werid problem with apache 1.3.27, and modperl 1.27 with Mason. Now I don't believe Mason is at fault here since its serving all the other pages correctly and as you will see it only has to do with specific file extensions. However if im wrong I will punt this over to the mason mailing list instead. I am using a full <%perl> configuration the relevant parts are Location => { "/downloads" => { SetHandler => "perl-script", Options => "ExecCGI +Indexes", PerlHandler => $session_package, PerlSendHeader => "On", PerlSetupEnv => "On", }, }, FilesMatch => { "*.html" => { SetHandler => "perl-script", Options => "ExecCGI -Indexes", PerlHandler => $session_package, PerlSendHeader => "On", PerlSetupEnv => "On", }, "*.comp" => { SetHandler => "perl-script", Options => "ExecCGI -Indexes", PerlHandler => $session_package, PerlSendHeader => "On", PerlSetupEnv => "On", }, }, Now the site (*.html files) works perfectly. However in the downloads directory I have a dhandler to pick up all the files (since its impt for me to keep a record of all the downloads) and then it will pick the specific version of the file that relates to the path. Now.... http://www.server.com/downloads/bob Works exactly like I would expect and gives the dhandler output (just happens to be a string saying dhandler here) However http://www.server.com/downloads/bob.exe gives file not found (this also applies to jpg gif etcetc) Now im prob missing something really simple it seems like apache is picking up .exe/.jpg/.gif/and others probably and skiping my Location statement. How do I tell it that I want everything regardless of extension to be passed to the handler in the directory. I have one other alternative and that is can I (from a script: say http://www.server.com/downloads/getfile?file=bob.exe ) initiate the download such that on the client machine the file gets automatically saved as bob.exe. My understanding is that it picks up the filename from the basename of the URI. OK hope this all makes sense. Hoping ppl can help me ive been tearing my hair out for the past few hours on this one. Cheers -- Ross Williamson - Director Mobile : +44 7876308 566 Email : [EMAIL PROTECTED] ------------------------------------------------------------------ This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.