add extension Apache

Alles, was den Apache betrifft, kann hier besprochen werden.

add extension Apache

Postby imad77 » 13. March 2009 03:05

Hi,

I run a script from a Web page to download a file, this Perl script and these files to download are located in Linux server. When I click on the link of the file to download from a Windows station via this Web page , a dialog box will be displayed to ask me to "Open" or "Save" the file (.txt, .doc, .xls) but for some extensions like ".dat" or ".asc", the dialog box ask me to save it only and I have not an "Open" button.


How can I add these extensions (.dat and .xml) to my script to be able to open it with Textpad or Notepad?
I added these lines in this file: /etc/mime.types

text/plain asc txt dat

I added these lines in this file: /etc/httpd/conf/httpd.conf

AddType text/plain .asc .txt .dat

But it does not work fine.

Can someone help me to fix this issue?


Thanks

Imad77
imad77
 
Posts: 2
Joined: 13. March 2009 03:03

Re: add extension Apache

Postby Wiedmann » 13. March 2009 03:24

How can I add these extensions (.dat and .xml) to my script to be able to open it with Textpad or Notepad?

You must ask this the author of your webbrowser.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: add extension Apache

Postby imad77 » 13. March 2009 03:41

I need to confirm if the configuration of Apache is Ok with MIME.

Thanks
imad77
 
Posts: 2
Joined: 13. March 2009 03:03


Return to Apache

Who is online

Users browsing this forum: No registered users and 9 guests