Mercurial > dirlist-php
changeset 29:e4f534198385
Add note for apache.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 30 Oct 2014 12:29:39 +0900 |
parents | ce92f4d41714 |
children | c482f0db5c28 |
files | README.md |
diffstat | 1 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/README.md Thu Oct 30 12:14:32 2014 +0900 +++ b/README.md Thu Oct 30 12:29:39 2014 +0900 @@ -3,7 +3,10 @@ Using capability of nginx. -Basically, add this block +Usage +----- + +### nginx location @lister { include fastcgi_params; @@ -35,7 +38,17 @@ try_files $uri @lister; // try_files "" @lister if the alias is } -And done. Probably also works with apache but I have no idea how to set it up. +### apache + +Assuming `mod_rewrite` is enabled, add this `.htaccess`: + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule ^ /path/to/index.php [L] + +Note that `/path/to/index.php` should be visible from your location. Or something. I don't really know Apache. + +Also note that this `.htaccess` does not disable server processing of `php` or any other non-static files. Configurations --------------