From 170acbaffd0ebf8812c49e8973d90bb28fec9edd Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 9 Feb 2016 16:45:22 -0500 Subject: [PATCH] Update README with some server setup details, resolves #7 --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 135221c6..228f44b1 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,33 @@ A self-hosted client that allows custom formatting of data from the hummingbird * public/images/manga * public/images/anime +### Server Setup + +#### nginx +Basic nginx setup + +```nginx +server { + location / { + try_files $uri $uri/ /index.php$uri?$args; + } + + location ~ "^(.+\.php)($|/)" { + fastcgi_split_path_info ^(.+\.php)(.*)$; + fastcgi_index index.php; + } + + location ^~ /vendor { + deny all; + } +} +``` + +#### Apache +Make sure to have `mod_rewrite` and `AllowOverride All` enabled in order to take +advantage of the included `.htaccess` file. If you don't wish to use an `.htaccess` file, +include the contents of the `.htaccess` file in your Apache configuration. + #### Anime Collection Additional Installation * Run `php /vendor/bin/phinx migrate -e development` to create the database tables * For importing anime: