This is a discussion on Re: how to allow downloading a .map file within the Linux Web Servers forums, part of the Web Server and Related Forums category; Gandalf Parker wrote: > Apologies if this is RTFM stupid.... > > I have a site for a popular strategy ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Gandalf Parker wrote:
> Apologies if this is RTFM stupid.... > > I have a site for a popular strategy game (Dominions 2) which wants to be > able to offer the games map files as nightly randomly-generated variations. > The .tga images are ok but for some of the popular .tga he wants to simply > generate the text .map files so people can click on them and get the > download popup. > > Unfortunately Apache (debian linux in case it matters) is treating them as > html map files. Is there a way by .htaccess or http.conf to set a > particular directory as treating .map files as .txt files? Remove any AddType or AddHandler referring to .map and add AddType text/plain .map Joshua |
|
|||
|
jslive@gmail.com wrote in news:cer93f$2lg@odak26.prod.google.com:
> Gandalf Parker wrote: >> >> Unfortunately Apache (debian linux in case it matters) is treating > them as >> html map files. Is there a way by .htaccess or http.conf to set a >> particular directory as treating .map files as .txt files? > > Remove any AddType or AddHandler referring to .map and add > AddType text/plain .map THanks. I should have added. I was hoping for something spcific to a directory so that I didnt have to break map files for the whole machine. Gandalf Parker |
| Thread Tools | |
| Display Modes | |
|
|