View previous topic :: View next topic |
Author |
Message |
spearman -
Joined: 27 Nov 2002 Posts: 4
|
Posted: Thu Nov 28, 2002 3:20 pm Post subject: file listing |
|
|
how can i make it only have a file listing for specified folders
i.e.
i want /graphics/ to show all the files in it...
but i dont want /admin/ to.. |
|
Back to top |
|
|
!Keys -
Joined: 23 Nov 2002 Posts: 156 Location: Holland, Enschede
|
Posted: Thu Nov 28, 2002 4:27 pm Post subject: |
|
|
you can do that, but then not totally like you want it.. you can make dir view at all dir´s, and then secure any dir you want(there will be a password needed to enter)
with php you do this with .htaccess and .htpassword files.. tell me how and what with a little more details _________________ !Keys || MwM^computerware |
|
Back to top |
|
|
spearman -
Joined: 27 Nov 2002 Posts: 4
|
Posted: Thu Nov 28, 2002 11:55 pm Post subject: |
|
|
i just want my /graphics/ dir to have a file listing thats all |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Nov 29, 2002 1:50 am Post subject: |
|
|
spearman wrote: | i just want my /graphics/ dir to have a file listing thats all |
That's simple: Allow Directory Listing for all the server (Console > Server Configuration > Advanced > Server Parameters > Automatic Directory Indexing.)
Then in all the directories where listing is not allowed put an index.html page. Even if you haven't such a page, you can create an empty file with that name. It will prevent directory listing in these folders.
In folders where you want to enable listing, don't put such a file. That's the way to do it and usually. That's the method people use (even on other web servers.) _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
stuart2you -
Joined: 14 Nov 2002 Posts: 4 Location: Scotland
|
Posted: Fri Dec 20, 2002 1:32 am Post subject: |
|
|
How do I add a link to a webpage to allow directory listing/downloading?
Is there html or cgi cide for this? |
|
Back to top |
|
|
anonymous reader Guest
|
Posted: Fri Dec 20, 2002 11:32 pm Post subject: |
|
|
cgi all the way, most of the one i've used use SSI to exec a perl file so be sure that you enable ssi exec |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Dec 21, 2002 1:44 am Post subject: |
|
|
stuart2you wrote: | How do I add a link to a webpage to allow directory listing/downloading?
Is there html or cgi cide for this? |
When a directory has no index file, it will generate a listing automatically (provided that automatic directory listing is enabled.)
For example, if htdocs/photos subdirectory doesn't contain an index file, browsing http://yoursite/photos will generate a listing. Just test it, you will understand how it works. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Omar G Guest
|
Posted: Sat Dec 21, 2002 8:17 am Post subject: Good use for CHL pages / scripts |
|
|
Here is where CHL scripting would be very useful, in a place where an HTML / CHL template can be used to modify the default server behavior without config'ing things. Whaddya think, Aprelium? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Dec 22, 2002 3:48 pm Post subject: Re: Good use for CHL pages / scripts |
|
|
Omar G wrote: | Here is where CHL scripting would be very useful, in a place where an HTML / CHL template can be used to modify the default server behavior without config'ing things. Whaddya think, Aprelium? |
There are more elegant solutions and we are aready working on them. CHL files aren't scripts, they are only used internally by the console. So please wait the next version. :D _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|