comparison README.md @ 29:e4f534198385

Add note for apache.
author edogawaconan <me@myconan.net>
date Thu, 30 Oct 2014 12:29:39 +0900
parents ce92f4d41714
children 73833d29dbad
comparison
equal deleted inserted replaced
28:ce92f4d41714 29:e4f534198385
1 dirlist 1 dirlist
2 ======= 2 =======
3 3
4 Using capability of nginx. 4 Using capability of nginx.
5 5
6 Basically, add this block 6 Usage
7 -----
8
9 ### nginx
7 10
8 location @lister { 11 location @lister {
9 include fastcgi_params; 12 include fastcgi_params;
10 fastcgi_pass unix:/tmp/php-fcgi.sock; 13 fastcgi_pass unix:/tmp/php-fcgi.sock;
11 14
33 set $dl_dir $request_filename; 36 set $dl_dir $request_filename;
34 alias /srv/ftp/; 37 alias /srv/ftp/;
35 try_files $uri @lister; // try_files "" @lister if the alias is 38 try_files $uri @lister; // try_files "" @lister if the alias is
36 } 39 }
37 40
38 And done. Probably also works with apache but I have no idea how to set it up. 41 ### apache
42
43 Assuming `mod_rewrite` is enabled, add this `.htaccess`:
44
45 RewriteEngine On
46 RewriteCond %{REQUEST_FILENAME} -d
47 RewriteRule ^ /path/to/index.php [L]
48
49 Note that `/path/to/index.php` should be visible from your location. Or something. I don't really know Apache.
50
51 Also note that this `.htaccess` does not disable server processing of `php` or any other non-static files.
39 52
40 Configurations 53 Configurations
41 -------------- 54 --------------
42 55
43 Here are some variables which changes how it behaves: 56 Here are some variables which changes how it behaves: