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;
        }
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.