Forum Moderators: phranque

Message Too Old, No Replies

Directory Indexes & Icons Problem

         

webzila

6:57 am on Feb 11, 2005 (gmt 0)

10+ Year Member



Hello,
My host uses the Apache/1.3.33 Server and an H-Sphere Control Panel.

In the Web Services options for my domain I have the 'Indexes' option set to 'Fancy' so that if someone visits a directory without an index file then it would list all the files in that folder..

That part works and the files do get listed but icons that appear next the the file do not load. By default, the path of the icon gif files leads to an /icons/ folder but there is something wrong with it. The icons folder doesnt work even though its full of gif files. When you go there it just displays a blank page and when you try to link or visit one of the picture files within that folder you get a 404 error as if that file is not even there...

I have tried deleting and re-uploading that folder and that didnt fix the problem. I wish I could just change the indexing option so that the icon img src link would point to some other folder other than links but I cant find that option anywhere in the control panel.

I have a ticket opened with my host regarding this but its been about a month and they keep telling me that their senior admins will look into this.

Is there anything that I can do regarding this problem myself or is there anything that I can tell my host (as in tell them how to fix this if I dont have access to the proper files on the server myself).

I can provide some links that would serve as an example of what I am talking about (ask if you need it). This is really annoying me.

Thanks

BjarneDM

10:30 am on Feb 11, 2005 (gmt 0)

10+ Year Member



The /icons/ folder is an alias/link to a folder - usually
Alias /icons/ "/usr/share/httpd/icons/"
.

If you are able to directly edit your .htaccess files you should be able to set a new alias or a completely new setup for this. All of the icons are in the public domain, so you can just take them and put them in a folder of your own.

Get hold of a sample httpd.conf file and see how it's done.

If you can see the icons in the [<server>...] folder but they don't show up then my diagnosis is that there's some kind of permission problem with the folder in question.

You are stating that you get a 404 error message. Are you sure it's 404 and not 403? And what do you see to the left of the icons: an icon representing the picture or just a short textual description? I was able to simulate most of your experience as by removing the read rights from all of the files in the /icons/ folder, so that might be the problem here too.

You can download an Apache tarball, unpack it and get hold of everything needed that way.

dcrombie

10:34 am on Feb 11, 2005 (gmt 0)



The /icons/ directory is usually an Alias defined in httpd.conf to somewhere else on the server.

Edit: too slow ;)

webzila

6:33 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



My icons folder is located here:
[webzila.com...]

It is full of images but if you click on the link all you get is a blank page. Then I created another folder called icon:
[webzila.com...]

As you can see all the files show up there but all the icon images to the left of the file names are either broken or show up as text description...

I should also mentioned that this is a shared hosting account. I am not sure if I have access to httpd.conf file. I thought that I would ask anyways since my host is having problems fixing this issue themselves.

webzila

7:59 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



I just tried adding the following line of code to my .htaccess file and that causes an 500 Internal Server Error

#Alias for icons
Alias /icons/ /hsphere/local/home/user/domain.com/icon/

I removed my username and domain from the code above.
Why does it produce an internal server error?

BjarneDM

9:26 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



As to the /icons/ from webzila itself something is wrong with the server setup.

This is the exact same behaviour I'm seeing when I don't give my server read access to the files in the /icons/ folder. So the server has some permission problem with the real /icons/ folder that the alias is pointing to: you've got read access to the actual folder, but not to the icon-files themselves. The reason you get a 404 instaed of a 403 is that the Apache 403 is redirected to show a webpage instead of the Apache generic error-message.

As to the 500 error that's because you are specifying two aliases for /icons/. I was actually wondering whether this would work or not.

As to you getting a blank page when accessing the /icons/ folder, that's very possibly because multiviews has been set for the /icons/ folder. That seems to be the default setting in a httpd.conf for the /icons/ alias, but gives all kinds of strange behaviour when one is accessing the folder directly.

So, until you can persuade your hosting firm to fix that permission problem, your only option is to specify the whole icon thing from scratch in your own root .htacces file - but using another folder name than /icons/. As stated earlier, you can find the receipt for this by looking at an actual httpd.conf. The solution ought to be simple: just copy/paste the relevant section and change all the references to /icons/ to your own folder alias.

webzila

10:37 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



Thanks, I will look into the suggestions that you have provided. I think I understand this issue better now so I will contact my host again regarding this also.

Thank you

Alphageek

5:36 am on Feb 21, 2005 (gmt 0)



Webzila, I think you and I use the same web hosting company... I'm having the exact same issue and haven't been able to find a work-around. I haven't submitted a trouble ticket yet, since I was hoping to get it figured out some other way.

Did you ever find a work-around? I'm having the exact same issues: on the default directory listing page, all of the icons (blank.gif, text.gif, sound2.gif, etc.) appear as missing images. The properties of these missing images is supposedly the /icons directory in the root of the web site, but I can create the directory and upload some images to it and it makes no difference.

TIA for any help, :)
Steve

webzila

6:47 am on Feb 21, 2005 (gmt 0)

10+ Year Member



Hi Alphageek,
My webhost finally fixed the problem. They didnt really explain what the problem was and it took them a while to fix it it. One day I just got a reply to my trouble ticket simply stating that the problem was fixed and it was.

I am not sure what they did but they couldnt solve the issue right away. In my final post of the trouble ticket I asked them to look at the following post: [forum.psoft.net...]
That was the last post on my part and after that the problem was fixed.

We could very well be using the same host. I dont know if I can (or should) post the name of the host here. PM or email me and I ll let you know if youre still interested.

Thanks