
shanevolpe at gmail
Apr 2, 2008, 3:45 AM
Post #12 of 15
(625 views)
Permalink
|
|
Re: Disabling Directory indexing is on in cherokee
[In reply to]
|
|
Nick, It sort of worked, it stopped the the automatic directory listing but now it does not bring up index.php by default if I just enter in the ip address. I need to actually specify index.php in the link: Example: "https://192.168.0.100" gives me a 403 Forbidden code "https://192.168.0.100/index.php" works just fine ###########Site Config File####################################### vserver!default!document_root = /var/www vserver!default!directory_index = index.php,index.html vserver!default!logger = combined vserver!default!logger!access!type = file vserver!default!logger!access!filename = /var/log/cherokee.access vserver!default!logger!access!buffsize = 16384 vserver!default!logger!error!type = file vserver!default!logger!error!filename = /var/log/cherokee.error vserver!default!directory!/!handler = file vserver!default!directory!/!handler!iocache = 0 vserver!default!directory!/!priority = 1 vserver!default!directory!/!only_secure = 1 vserver!default!extensions!php!handler = phpcgi vserver!default!extensions!php!handler!balancer = round_robin vserver!default!extensions!php!handler!balancer!type = interpreter vserver!default!extensions!php!handler!balancer!local1!host = localhost:1234 vserver!default!extensions!php!handler!balancer!local1!env!PHP_FCGI_CHILDREN = 5 vserver!default!extensions!php!handler!balancer!local1!interpreter = /usr/bin/php -b 1234 vserver!default!extensions!php!priority = 99999 ############################################################################ #########Main Cherokee Config FIle############################################## # Server # server!port = 80 server!port_tls = 443 server!timeout = 60 server!keepalive = 1 server!keepalive_max_requests = 500 server!pid_file = /var/run/cherokee.pid server!server_tokens = full server!encoder!gzip!allow = html,html,txt,css,js server!panic_action = /usr/bin/cherokee-panic server!mime_files = /etc/cherokee/mime.types # # Include files # include = /etc/cherokee/mods-enabled include = /etc/cherokee/sites-enabled ###################################################################################### On Tue, Apr 1, 2008 at 1:40 PM, Nikolai Kondrashov <Nikolai.Kondrashov[at]oktetlabs.ru> wrote: > Shane Volpe wrote: > > It has been a very good conversation but back to my original question: I > > want to disable the automatic directory (file) indexing (listing ?) so the > > contents of a directory on my system will not get served up on a web page. > > What would be the 0.6 Cherokee syntax to do this in the config file? > You just shouldn't use "dirlist" or "common" handler for directories, but use > "file" instead. > > So if you see "...!handler = common", replace it with "...!hanlder = file". > Or if you don't have such entry, try adding something like this: > "vserver!default!directory!/!handler = file" - this will assign the default > handler. I'm not sure if it will work correctly, because I've just > discovered it a couple of hours ago and couldn't verify it, because the > machine with test setup is unreachable. > > If it doesn't work, post your configuration here. > > Sincerely, > Nick > -- Registered Linux User: #293401 _______________________________________________ Cherokee mailing list Cherokee[at]cherokee-project.com http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
|