[aur-dev] [PATCH] Improve INSTALL details for nginx and config

Lukas Fleischer lfleischer at archlinux.org
Thu Jun 18 06:59:41 UTC 2015


On Wed, 17 Jun 2015 at 23:40:43, Leonidas Spyropoulos wrote:
> Signed-off-by: Leonidas Spyropoulos <artafinde at gmail.com>
> ---
>  INSTALL | 28 +++++++++++++++++++++++-----
>  1 file changed, 23 insertions(+), 5 deletions(-)
> 
> diff --git a/INSTALL b/INSTALL
> index 9040c17..78d041a 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;
> -    }
> -
> -3) Copy conf/config.proto to conf/config and adjust the configuration.
> +       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;
> +               }
> +       }

Please indent using four spaces (instead of tabs) here, as we do
elsewhere in this file.

> +
> +3) Copy conf/config.proto to conf/config and adjust the configuration (pay
> +   attention to disable_http_login, enable_maintenance and aur_location)

Still a missing full stop after the right parenthesis.

>  
>  4) Create a new MySQL database and a user and import the AUR SQL schema:
>  
> -- 
> 2.4.3


More information about the aur-dev mailing list