I have the following snippet of nginx configuration:
location ^~ /simon/pms/phalcon {
 root /var/www/stg.server.org;
 index index.php index.html;
 try_files $uri $uri/ @rewrite; 
     location ~ \.php$ {
    #try_files $uri =404;
    fastcgi_pass   127.0.0.1:9000;  #set port for php-fpm to listen on
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    #fastcgi_param  SCRIPT_FILENAME $request_filename;
    include  fastcgi_params;              
    include /etc/nginx/fastcgi_params;
     }
}
location @rewrite {
   rewrite ^/(.*)$ /simon/pms/phalcon/public/index.php?_url=$uri&$args; #/$1;
}I wish to access the above application through the url https://stg.server.org/simon/pms/phalcon/<Module>/<Controller>/<Action>. It has been working fine in Apache but in Nginx, I get the error Exception: Module simon is not registered in the application container.
My base url is set up as:
$di->set('url', function() use ($config) { $url = new \Phalcon\Mvc\Url(); $url->setBaseUri('/simon/pms/phalcon/'); return $url; });
What I'm I doing wrong?