OS4X with nginx

From OS4X
Revision as of 15:46, 21 October 2014 by Admin (talk | contribs) (New page: == Nginx configuration == In order to make the OS4X web interface(s) work with nginx, you have to configure the server correctly. Such a configuration for the administrative web interface ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Nginx configuration

In order to make the OS4X web interface(s) work with nginx, you have to configure the server correctly. Such a configuration for the administrative web interface can be:

server {
        root /var/www;

        index index.php index.html;

        location ~ /os4xapi/index\.php.* {
                include fastcgi_params;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param  SCRIPT_FILENAME $document_root/os4x/os4xapi/index.php;
        }
        location ~ index\.php.* {
                include fastcgi_params;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
        }
}