K
K
Kurusgimeru2017-03-30 15:08:43
Nginx
Kurusgimeru, 2017-03-30 15:08:43

Nginx gives a default config, how can I fix it?

Nginx gives default page instead of index.php passbolt.
(the passbolt was installed successfully)
There is silence in the logs. Directory permissions are set for nginx:nginx.
ln -s /etc/nginx/sites-enabled/passbolt /etc/nginx/sites-available/passbolt - done.
In nginx.conf included config sites-available/passbolt:include /etc/nginx/sites-available/*.conf;

server {
    listen   80;
    server_name localhost default_server;

    root   /var/www/passbolt/app/webroot/;
    index  index.php;

    access_log /var/www/passbolt/log/access.log;
    error_log /var/www/passbolt/log/error.log;

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

    location ~ \.php$ {
        try_files $uri =404;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_index   index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mark Lyutov, 2017-03-30
@Kurusgimeru

add .conf to passbolt if no format is specified. reload + restart.

A
Andrey Burov, 2017-03-30
@BuriK666

according to the idea, sites-enabled/*.conf are connected, and disabled configs are in sites-available.

M
Maxim, 2017-03-30
@MiF36rus

Check that the /var/www/passbolt/app/webroot/ path is correct and that the index.php file is there, I think it should be /var/www/passbolt/index.php , remove default from sites-enabled and sites-availible, restart nginx , and if you can config here completely

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question