I'm trying to deploy Siremis 4.1 (http://siremis.asipto.com/2014/03/25/siremis-v4-1-0-released/) on Ubuntu 14.04 running Nginx. There is very little information on running Siremis on Nginx on the web. I got everything installed properly (I think), but I am having a problem with the Nginx configuration to properly serve the pages.
I'm almost sure that the problem is in the URL rewrites. I can go to this page no problem:
DOMAIN/siremis/index.php/user/login
But I get Page Not Found after that with this URL:
DOMAIN/siremis/system/general_default
This reminds me of WordPress's permalinks, which I was able to get working with very little problems thanks to their excellent documentation: http://codex.wordpress.org/Nginx
But, Siremis is another matter. I'm not sure if Siremis just doesn't support working with Nginx because it expects Apache when performing redirects or what. Just wondering if anyone has any suggestions. I'm new to Nginx, obviously. Or if anyone knows how to turn off the redirects in Siremis, that would be fine too! I don't need to have the "pretty" URLs.
Here's my server configuration:
server {
listen 80;
listen [::]:80;
charset utf-8;
access_log /var/log/nginx/siremis.access.log;
error_log /var/log/nginx/siremis.error.log;
root /usr/share/nginx/html/siremis-4.1.0;
index index.php;
server_name sip1.<<DOMAIN>>;
location /siremis
#location ~^/siremis(.+)$
{
try_files $uri $uri/ /siremis/index.php?$1;
}
location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html
{
root /usr/share/nginx/html;
}
}