hide subfolder?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
canadave
-


Joined: 12 Apr 2005
Posts: 17

PostPosted: Sat Dec 03, 2005 1:43 am    Post subject: hide subfolder? Reply with quote

Hi all,

Question:

Let's say I have a folder in my webserver directory named "A". Inside A are two subfolders, "X" and "Y". I just want to hide Y, but not A or X. How can I do that? I tried going into the config section dealing with hiding directories, and I know how to hide "A", but not "Y" alone.

Thanks!
Dave
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Dec 03, 2005 12:42 pm    Post subject: Reply with quote

You would need to put into the hidden files box:

/a/y or
/a/y/*.*

Method 1 should hide the folder, method 2 will hide the files inside the folder but still show the folder.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Dec 03, 2005 4:26 pm    Post subject: Re: hide subfolder? Reply with quote

canadave,

By hiding a subdirectory, do you mean making access to it forbidden or disabling directory listing for it while its files remain accessible?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
canadave
-


Joined: 12 Apr 2005
Posts: 17

PostPosted: Sat Dec 03, 2005 4:52 pm    Post subject: Reply with quote

Andy,

Thanks...I tried that (figured it was the way to go), but it doesn't work. I guess I should be more explicit: the names of the directories in question are as follows:

"Dave's pizza recipe" is the main folder--I want people to be able to see that and access it. Inside that is a subfolder called "images," which (this is the answer to aprelium's question) I don't want people to access or see in the simple directory listing (it only contains a web page header image). Also inside "Dave's pizza recipe" is a single file: "Dave's pizza recipe.html." I want that file alone to be visible and accessible.

Thanks for your help,
Dave
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Dec 03, 2005 7:49 pm    Post subject: Reply with quote

An easy way to make the "images" subfolder inaccessible is to insert a blank index.html file in the subfolder.
You could also put a message in the index.html that says something like "Access Denied". That's what I do.
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Dec 03, 2005 8:32 pm    Post subject: Reply with quote

You can use the new Rules for Directory Listing and Deny Access for
/images , this can be done from the Directory Listing -> Scope area
, Hopefully this fixes whatever problem your having.

Sincerely, TRUSTpunk
Back to top View user's profile Send private message Visit poster's website
canadave
-


Joined: 12 Apr 2005
Posts: 17

PostPosted: Sat Dec 03, 2005 10:51 pm    Post subject: Reply with quote

Hmmmm....these are *sort* of fixes, but not really what I was hoping for. I've managed to get the images subfolder to not be accessible (if I click on it, I get a "page not able to be displayed"), but the subfolder itself is still visible. I want it to be entirely hidden (otherwise I'll probably start getting emails like, "I just tried to click on the images to see pictures of your pizza, and I can't--what gives???" :)

Dave
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Dec 04, 2005 2:36 pm    Post subject: Reply with quote

canadave,

To make /Dave's pizza recipe/image unlistable, add it to the Deny table of Directory Listing > Scope.

To make "image" hidden from the listing of /Dave's pizza recipe, add image to the Hidden Files list.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
canadave
-


Joined: 12 Apr 2005
Posts: 17

PostPosted: Sun Dec 04, 2005 5:36 pm    Post subject: Reply with quote

Quote:
To make "image" hidden from the listing of /Dave's pizza recipe, add image to the Hidden Files list.


lol...ok, I guess I'm just dense. I already knew that...I guess my question is, exactly what's the syntax for doing that? I already tried putting "/Dave's pizza recipe/images" in there--without quotes and with quotes. Neither worked. I tried /Dave's pizza recipe/images/ (note trailing slash). That didn't work either. Then on a whim I tried just "images", but of course that didn't work because the server was looking for that in the root directory. And I just tried "./images" (no quotes)--still didn't work. All of these attempts, I could still see the "images" subfolder when I go into the "Dave's pizza recipe" folder.


Thanks,
Dave[/quote]


Last edited by canadave on Tue Dec 06, 2005 5:47 pm; edited 1 time in total
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Mon Dec 05, 2005 3:18 am    Post subject: Reply with quote

Quote:
Dave's pizza recipe

You may need to escape the apostrophe.
Of course, I could be mistaken.
Back to top View user's profile Send private message
canadave
-


Joined: 12 Apr 2005
Posts: 17

PostPosted: Mon Dec 05, 2005 7:47 am    Post subject: Reply with quote

Hmm, that was a good thought, but it didn't work. I just renamed the "Dave's pizza recipe" folder to simply "pizza", and then tried to hide "/pizza/images" in the Directory Listing section of the config page. Didn't work :(
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Dec 05, 2005 10:03 am    Post subject: Reply with quote

Quote:
Hidden Files: The file names that are equal or that match with the listed file name patterns in this table are not included in the directory listings. See the "Patterns Format" appendix for more information about patterns. This table should only contain file names with no path references.

http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-configuration.html#HOSTS-DIRLIST-HIDDEN

You cannot enter a path into the Hidden paths, thats why its not working.
Back to top View user's profile Send private message Visit poster's website
canadave
-


Joined: 12 Apr 2005
Posts: 17

PostPosted: Mon Dec 05, 2005 6:18 pm    Post subject: Reply with quote

Oh :( So there's currently no way to do this, then, I guess, other than the suggestions offered earlier in this thread....oh well! :) Thanks for the answer though, I appreciate it.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Dec 05, 2005 7:38 pm    Post subject: Reply with quote

Im sure this can be done if aprelium made it support path references. All they
would need to do is have the server check the path to see if it has Hidden files.

Sincerely, TRUSTpunk
Back to top View user's profile Send private message Visit poster's website
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Dec 05, 2005 7:43 pm    Post subject: Reply with quote

I'm not sure what you're doing wrong. Aprelium's direction's above work perfectly.
I made a test folder on my server. Inside that test folder I put folderA and folderB.
I then went to Console > Default Host Configure > Directory Listing > Hidden Files
and added folderB to the list and restarted the server to apply changes.

When I browsed the test folder, only folderA was visible, yet I was still able to
access folderB with a direct link to an image I placed inside.
Back to top View user's profile Send private message Visit poster's website
canadave
-


Joined: 12 Apr 2005
Posts: 17

PostPosted: Mon Dec 05, 2005 8:19 pm    Post subject: Reply with quote

WHOA!

OK, I just tried your test (set up a test folder, then subfolders folderA and folderB), and I was able to hide folderB using your method. I then went back and tried just adding "images" (no slashes, no other path info) to the Hidden Files list...and that works--my images subfolder in my "pizza recipe" folder is no longer visible. So my problem is solved!

However, I see a drawback to that, which a future version of Abyss might want to look at. As a test, I then went and changed the name of "folderB" to "images" (in other words, now I have two unrelated subfolders that are both named "images"). Sure enough, that subfolder went hidden too, even though it's in a completely different folder than the other "images" subfolder.

So path info for hiding directories would definitely be on my wish list for future improvements :)

Anyways, my own issue is resolved....thanks for all your help, guys...Abyss is the best!

Cheers,
Dave
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Dec 05, 2005 8:24 pm    Post subject: Reply with quote

Yes, I noticed this as well. I guess we'll just have to make sure our folders are
uniquely named until there is an improvement on this.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Dec 06, 2005 1:29 pm    Post subject: Reply with quote

canadave wrote:
So path info for hiding directories would definitely be on my wish list for future improvements :)

Thanks. This suggestion will be added to our to do list.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group