The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Hosting problem, server is setup to prevent directory listing
aod1174
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Darin McGrew
post Mar 13 2007, 11:07 AM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Maybe your host has blocked WAD files.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 11:25 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



In that case they block .htaccess files too. Seems like an odd thing to do on a Windows server. mellow.gif
http://www.ricksfiles.com/CS/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 11:30 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Hey, put a couple of files of known file types in there and see what happens. Throw in a faked file type too. Rename a text file something.pandy for instance.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
aod1174
post Mar 13 2007, 12:17 PM
Post #5


Newbie
*

Group: Members
Posts: 13
Joined: 9-March 07
Member No.: 2,151



QUOTE(pandy @ Mar 13 2007, 12:30 PM) *

Hey, put a couple of files of known file types in there and see what happens. Throw in a faked file type too. Rename a text file something.pandy for instance.


there is a known file type in there. in cstike/gfx/env there are bmp files.. the "pandy" file is now up as well...

these are the options I'm given for folders "Red Web Browse Write Set Root"

if that helps at all
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 12:31 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



No, that's a .pandy.txt file. I don't find any BMPs but I found some text files in s ub directory.

I was thinking the server maybe is configured to tell you the file can't be found for unknown file types. I don't know if that's common on Windows. A nix server wouldn't do that.

Anyway, if I'm right you need to tell the server the MIME type of those files. I have no idea about how to do that on IIS. Let's google some. ninja.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 12:36 PM
Post #7


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



That was quickly done and it seems I guessed right. Lo and behold "IIS 6.0 does not serve unknown MIME types", http://support.microsoft.com/kb/326965 .
In the article there they talk about the server's main configuration, nothing that I can see about how a single user can do it. huh.gif

Oh dear. Could you zip the files? That would take care of it. Next time, go with a nix host. happy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
aod1174
post Mar 13 2007, 09:52 PM
Post #8


Newbie
*

Group: Members
Posts: 13
Joined: 9-March 07
Member No.: 2,151



QUOTE(pandy @ Mar 13 2007, 01:36 PM) *

That was quickly done and it seems I guessed right. Lo and behold "IIS 6.0 does not serve unknown MIME types", http://support.microsoft.com/kb/326965 .
In the article there they talk about the server's main configuration, nothing that I can see about how a single user can do it. huh.gif

Oh dear. Could you zip the files? That would take care of it. Next time, go with a nix host. happy.gif


Well I could zip the files, but the problem with that is they files need to be in their original format.. See how it works is this.. I have 2 servers, the server in question and a gaming server. The client connects to the gaming server to play. If the client does not have the map, or any of the files the map uses, they start to download it from the gaming server. Seeing as it's a gaming server, the download takes forever. By adding a CVAR I can redirct the client to the server in question where they can download the needed files in seconds... The clients computer will not download a zip file and then extract it, so the files have to be in their oringial state...

So basicly what your saying is theres nothing I can do? Theres no way to accomplish what I'm trying to do?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
aod1174   Hosting problem   Mar 10 2007, 04:38 AM
Peter1968   Options +Indexes is the entry you need in a .htacc...   Mar 10 2007, 05:27 AM
pandy   Looks right to me. You place the .htaccess in the ...   Mar 10 2007, 05:30 AM
aod1174   But thats the thing.. I did all that and it's ...   Mar 10 2007, 05:46 AM
Peter1968   What is the server software your host uses? Basica...   Mar 10 2007, 06:57 AM
aod1174   What is the server software your host uses? Basic...   Mar 11 2007, 06:01 PM
Peter1968   Tell us the URL of your site and one of us will te...   Mar 11 2007, 07:11 PM
Christian J   My example is for pache. That should be Apache....   Mar 11 2007, 07:20 PM
aod1174   www.ricksfiles.com Thats my URL, the files that I...   Mar 11 2007, 11:17 PM
Darin McGrew   Here's the answer for what server is being use...   Mar 12 2007, 01:40 AM
pandy   Anyone have experience with MS IIS? I'm da I...   Mar 12 2007, 01:55 AM
Darin McGrew   I'm da IIS expert!My sympathies. :-D   Mar 12 2007, 02:09 AM
Peter1968   I'm da IIS expert!My sympathies. :-D II...   Mar 12 2007, 04:48 AM
aod1174   Yes I have a control Panel. In fact I serched it f...   Mar 13 2007, 09:56 AM
pandy   Since when does IIS use .htaccess? I called my c...   Mar 12 2007, 01:51 AM
aod1174   Since when does IIS use .htaccess? I called my ...   Mar 12 2007, 02:08 AM
pandy   Thank you, Darin. http://web.telia.com/~u18121512/...   Mar 12 2007, 02:20 AM
aod1174   Thank you, Darin. http://web.telia.com/~u18121512...   Mar 12 2007, 02:26 AM
pandy   I think you missed my post above about how to do ...   Mar 12 2007, 02:32 AM
aod1174   I think you missed my post above about how to do...   Mar 12 2007, 02:42 AM
pandy   I don't know "where" to do that if...   Mar 12 2007, 03:03 AM
Darin McGrew   Maybe your host has blocked WAD files.   Mar 13 2007, 11:07 AM
pandy   In that case they block .htaccess files too. Seems...   Mar 13 2007, 11:25 AM
pandy   Hey, put a couple of files of known file types in ...   Mar 13 2007, 11:30 AM
aod1174   Hey, put a couple of files of known file types in...   Mar 13 2007, 12:17 PM
pandy   No, that's a .pandy.txt file. I don't find...   Mar 13 2007, 12:31 PM
pandy   That was quickly done and it seems I guessed right...   Mar 13 2007, 12:36 PM
aod1174   That was quickly done and it seems I guessed righ...   Mar 13 2007, 09:52 PM
Christian J   Here's a BMP if someone's interested! ...   Mar 13 2007, 03:22 PM
pandy   Not really. :P   Mar 13 2007, 05:17 PM
Peter1968   Easy answer: switch to a Unix based server that do...   Mar 13 2007, 11:31 PM
aod1174   Easy answer: switch to a Unix based server that d...   Mar 13 2007, 11:50 PM
pandy   Start wih informing them about that .htaccess isn...   Mar 14 2007, 03:51 AM
aod1174   Start wih informing them about that .htaccess isn...   Mar 14 2007, 01:47 PM
pandy   Yeah, ot make your host realize you are on an IIS ...   Mar 14 2007, 02:40 PM
aod1174   Yeah, ot make your host realize you are on an IIS...   Mar 14 2007, 02:45 PM
pandy   Nothing wrong with that in case they are. Just won...   Mar 14 2007, 02:59 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 04:27 PM