Hosting problem, server is setup to prevent directory listing |
Hosting problem, server is setup to prevent directory listing |
aod1174 |
Mar 10 2007, 04:38 AM
Post
#1
|
Newbie Group: Members Posts: 13 Joined: 9-March 07 Member No.: 2,151 |
ok heres my situation. I recently got web hosting from a popular company (not sure I can mention the name). I got the hosting for a game I play. It's a first person shooter that requires several different files. The game allows clients to be able to download the files from an outside (http) source. Now in the past I have set this up with no problems, but this time theres a problem. It seems that the company I used blocks directory listing of files, which is needed for what I want. I called my company asking if they could fix this, all they said was "You need to create a .htaccess file for this to work". That was as much help as they could be. So seeing as I know NOTHINg of .htaccess files I browsed the net.
From what I make of it, I just open up notepad add a line of text Options +Indexes Click SAVE AS and title it .htaccess then upload it and edit the file name, cause windows does not allow blank names, so it becomes .htaccess.txt... Now I did this with no luck, so I'm guessing I am doing something wrong.. heres my questions: Is that the correct way to make a .htaccess file? Where should the .htaccess file be placed? The files I need are in a folder, so the directory path would look something like this http://www.anysite.com/Foldername/ And then there should be a list of files and other folders (The file/folder structure has to remain in tact) Is there an easier way to do what I'm looking to do? If I haven't made myself clear and you have any questions, please feel free to ask.. Thanks in advance for any help you can be |
Peter1968 |
Mar 13 2007, 11:31 PM
Post
#2
|
Serious Coder Group: Members Posts: 448 Joined: 23-September 06 Member No.: 213 |
Easy answer: switch to a Unix based server that doesn't care what a WAD file is and delivers it as intended. or where you can set up a .htaccess with
CODE AddType application/x-doom wad Hard answer: somehow convince your host to associate WAD's in IIS's /etc/magic or /etc/mime.types file or however it's done, as MIME type application/x-doom which is how they've been registered. Good luck. This post has been edited by Peter1968: Mar 13 2007, 11:33 PM |
aod1174 |
Mar 13 2007, 11:50 PM
Post
#3
|
Newbie Group: Members Posts: 13 Joined: 9-March 07 Member No.: 2,151 |
Easy answer: switch to a Unix based server that doesn't care what a WAD file is and delivers it as intended. or where you can set up a .htaccess with CODE AddType application/x-doom wad Hard answer: somehow convince your host to associate WAD's in IIS's /etc/magic or /etc/mime.types file or however it's done, as MIME type application/x-doom which is how they've been registered. Good luck. Would it just be easier if I told them to switch my server over to a Linux server? That seems like it would be easier then trying to convince them of anything... |
pandy |
Mar 14 2007, 03:51 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Start wih informing them about that .htaccess isn't a configuration file on IIS. That should be useful for them.
See if you can find anything like HTTP Headers, File Types, MIME or Content-types in your CP. Does that host of yours have a FAQ? |
aod1174 |
Mar 14 2007, 01:47 PM
Post
#5
|
Newbie Group: Members Posts: 13 Joined: 9-March 07 Member No.: 2,151 |
Start wih informing them about that .htaccess isn't a configuration file on IIS. That should be useful for them. See if you can find anything like HTTP Headers, File Types, MIME or Content-types in your CP. Does that host of yours have a FAQ? This is all they really have on the FAQ that relates to my problem "Can I configure MIME types on my Linux Hosting Account? You can configure MIME types on your Linux hosting account using a .htaccess file. When you configure MIME types in your .htaccess file, you associate file types with a specific application or action. For example: AddType application/x-shockwave-flash swf AddType specified you are adding a new mime type (file type). application/x-shockwave-flash is the actual mime parameter specs. swf is the extension of the file type." It seems I have to switch it to a linux server |
pandy |
Mar 14 2007, 02:40 PM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Yeah, ot make your host realize you are on an IIS server and either tell you how to do it or do it for you.
Is your host a reseller by any chance? I looked at your name servers and they belong to a company that seems to mainly sell reseller plans. Or maybe you've bought a reseller plan from them. |
aod1174 |
Mar 14 2007, 02:45 PM
Post
#7
|
Newbie Group: Members Posts: 13 Joined: 9-March 07 Member No.: 2,151 |
Yeah, ot make your host realize you are on an IIS server and either tell you how to do it or do it for you. Is your host a reseller by any chance? I looked at your name servers and they belong to a company that seems to mainly sell reseller plans. Or maybe you've bought a reseller plan from them. no clue if their a reseller... I'll make the call now... |
Lo-Fi Version | Time is now: 23rd April 2024 - 09:07 AM |