Report this

What is the reason for this report?

nginx: Install vimbadmin in to subfolder

Posted on January 11, 2016

I tried to install vimbadmin in to subfolder, but i can’t. No matter what configuration i use, vimbadmin never work. This is my last configuration

# vimbadmin
location /vimbadmin {
    alias /usr/share/vimbadmin/public;
    index index.php index.html index.htm;
    location ~ ^/vimbadmin/(.*\.(js|css|gif|jpg|png|ico))$ {
        alias /usr/share/vimbadmin/public/$1;
    }
}

but nginx return me Error: 403 -

*14 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 90.154.205.85, server: mail.devx.biz, request: "GET /vimbadmin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mail.example.com"

I could not imagine how hard it is.Here is original nginx confiration whick work perfectly on domain/subdomain.

Can you help me with some advices, or example configuration for do that?

Use nginx 1.6.2 with php5-fpm.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.