Forum » Hidden / Per page discussions » Security and Access Control
Started by: Automatic
On: 1234964600|%e %b %Y, %H:%M %Z|agohover
Number of posts: 4
rss icon RSS: New posts
This is the discussion related to the wiki page Security and Access Control.
How do I allow access to my directories ?
puppetboypuppetboy 1241450704|%e %b %Y, %H:%M %Z|agohover

I want clients to my website to be able to follow directories to the items of interest.
example:
http://oh-god.com:5080/dir/hot-tub/IMG_0002.jpg

Reply  |  Options
Unfold How do I allow access to my directories ? by puppetboypuppetboy, 1241450704|%e %b %Y, %H:%M %Z|agohover
Re: How do I allow access to my directories ?
roboman51roboman51 1258745224|%e %b %Y, %H:%M %Z|agohover

Were you ever able to get this to work?

I've read (http://www.xitami.com/wiki:directory-lists) and understand that you need to have a file called ".httpdir" in the folder that you want to allow directory lists BUT I'm running X5 on Windows XP SP3 and I still can't get directory lists to work. I've even added the http.css to the webpage root (but that's not really required). The .httpdir files were created by a simple "copy con .httpdir" and they really are there but they don't seem to have any effect.

I've used Xitami since the mid-90's but this is my first time on X5.

Reply  |  Options
Unfold Re: How do I allow access to my directories ? by roboman51roboman51, 1258745224|%e %b %Y, %H:%M %Z|agohover
Re: How do I allow access to my directories ?
pieterhpieterh 1258746273|%e %b %Y, %H:%M %Z|agohover

Make sure the .httpdir file can be read by the X5 process. What happens when you try to access the directory URL? Do you get a 404 error or something else?

Reply  |  Options
Unfold Re: How do I allow access to my directories ? by pieterhpieterh, 1258746273|%e %b %Y, %H:%M %Z|agohover
Error page
roboman51roboman51 1258754377|%e %b %Y, %H:%M %Z|agohover

I get an X5 error page that says: You are not authorised to access this resource. Not allowed to list contents of directory

I'm assuming that the .httpdir file can be read by the X5 process as it's just a regular text file. I created the .httpdir file by doing this at the command prompt: copy con .httpdir <enter> hi<enter> <ctrl z>

Reply  |  Options
Unfold Error page by roboman51roboman51, 1258754377|%e %b %Y, %H:%M %Z|agohover
New Post