Hi everybody, I was trying to deploy siremis with nginx last night. Here are some problems I encountered during the installation process.
Siremis has apache virtualhost settings. I just read the apache version and wrote nginx version as below: server { listen 80; server_name DOMAIN; index index.html index.htm index.php; root /path/to/siremis; location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; } location ~^/siremis(.+)$ { try_files $uri $uri/ /siremis/index.php?$1; } } And I had to modify /siremis/bin/_forward.php a little bit to make siremis compatible with nginx. Here is the patch: *** _forward.php.old 2011-01-02 02:59:38.000000000 +0000 --- _forward.php 2011-01-01 16:19:26.000000000 +0000 *************** *** 16,25 **** --- 16,29 ---- if($_SERVER["REDIRECT_QUERY_STRING"]) { $url = $_SERVER["REDIRECT_QUERY_STRING"]; } + elseif($_SERVER["QUERY_STRING"]) + { + $url = $_SERVER["QUERY_STRING"]; + } elseif(preg_match("/\?\/?(.*?)(\.html)?$/si", $_SERVER['REQUEST_URI'],$match)) { //supports for http://localhost/?/user/login format //supports for http://localhost/index.php?/user/login format $url = $match[1]; The rest of the installation process is identical to the apache version from the document. Hope this can be helpful. Ivan Diao _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users