Nginx Rewrite for eduTrac

The server requirement for eduTrac has always been Apache. However, for those who would like to install eduTrac on an Nginx powered server, can now do so. Just add the following Nginx rewrite to your vhost:

location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?url=$1;
}

Nginx rules for release 5.0.x+

Root Directory:

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

Subdirectory:

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

 

1 Comment

  1. Pingback: Best Server Setup for eduTrac | Education Blog