Skip to content

Nginx configuration

sabberworm edited this page Feb 3, 2012 · 2 revisions

Configuring nginx to serve Rapila sites is quite straightforward:

server {
        listen your-port your-server-name;
        root   /path/to/your/rapila/installation;

        location ~ \.php$ {
                # Your PHP-FMP or php-fcgi proxy config here
        }

        location ~ ^\/(base\/web|plugins\/(\w|_)+\/web|site\/web) {
                try_files $uri /index.php?path=$uri$args;
        }
        location / {    
                rewrite ^ /index.php?path=$uri;
        }
}

Clone this wiki locally