summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonidas Spyropoulos <artafinde@gmail.com>2015-06-18 09:39:08 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-18 10:15:26 +0200
commit5603dc910ce2b8bf97814b2fabac4b0f5d9ccf32 (patch)
tree364dcf4da8036c091b7682fa79d60a213e5164ba
parent1e3a7179bda741b818d3929ef6e5a6718b2320e9 (diff)
downloadaur-5603dc910ce2b8bf97814b2fabac4b0f5d9ccf32.tar.gz
aur-5603dc910ce2b8bf97814b2fabac4b0f5d9ccf32.tar.xz
Improve INSTALL details for nginx and config
Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--INSTALL24
1 files changed, 21 insertions, 3 deletions
diff --git a/INSTALL b/INSTALL
index 9040c17e..b090789d 100644
--- a/INSTALL
+++ b/INSTALL
@@ -9,11 +9,29 @@ Setup on Arch Linux
2) Setup a web server with PHP and MySQL. Configure the web server to redirect
all URLs to /index.php/foo/bar/. The following block can be used with nginx:
- location ~ .* {
- rewrite ^/(.*)$ /index.php/$1 last;
+ server {
+ listen 80;
+ server_name aur.local aur;
+
+ root /srv/http/aurweb/web/html;
+ index index.php;
+
+ location ~ ^/[^/]+\.php($|/) {
+ fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
+ fastcgi_index index.php;
+ fastcgi_split_path_info ^(/[^/]+\.php)(/.*)$;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ include fastcgi_params;
+ }
+
+ location ~ .* {
+ rewrite ^/(.*)$ /index.php/$1 last;
+ }
}
-3) Copy conf/config.proto to conf/config and adjust the configuration.
+3) Copy conf/config.proto to conf/config and adjust the configuration (pay
+ attention to disable_http_login, enable_maintenance and aur_location).
4) Create a new MySQL database and a user and import the AUR SQL schema: