Rainloop nginx + Debian 9

Discussion in 'Installation/Configuration' started by Kaitum, Apr 13, 2019.

Tags:
  1. Kaitum

    Kaitum New Member

    Hello guys,

    I´m trying to setup new mailserver but im stucked with configuring webmail
    This is my configuration for vhost mail.sametime.cz


    server {
    listen 80;
    server_name mail.sametime.cz;

    include snippets/letsencrypt.conf;
    return 301 https://$host$request_uri;
    }

    server {
    listen 443 ssl http2;
    server_name mail.sametime.cz;
    root /var/www/rainloop;

    ssl_certificate /etc/letsencrypt/live/mail.sametime.cz/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mail.sametime.cz/privkey.pem;
    ssl_trusted_certificate /etc/letsencrypt/live/mail.sametime.cz/chain.pem;
    include snippets/ssl.conf;
    include snippets/letsencrypt.conf;



    location / {
    try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ ^/(.+\.php)$ {
    try_files $uri =404;
    fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include /etc/nginx/fastcgi_params;
    }

    location ^~ /data {
    deny all;
    }
    }

    If I try to configure Rainloop from https://mail.sametime.cz/?admin I´m getting this error:

    2019/04/13 18:26:26 [error] 6094#6094: *104 directory index of "/var/www/rainloop/" is forbidden, client: 77.240.98.124, server: mail.sametime.cz, request: "GET /?admin HTTP/2.0", host: "mail.sametime.cz"

    Permissions for /var/www/rainloop are setup as corectly. If I put info.php into /var/www/rainloop it is shown correctly.

    Thanks for any help!

    Jiri
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What are those permissions?
    What user does your webserver run as?
     
  3. Kaitum

    Kaitum New Member

    Hello,

    Already fixed it. Problem was in nginx vhost configuration.

    thanks!
     

Share This Page