Joomla CMS on Nginx (Rewrite/Environment Problem)

mailinglisten at mailinglisten at
Tue Feb 4 11:49:35 UTC 2014

Hello List,

I did a testmigration of a Joomla CMS yesterday, and there is a bug (the 
system was running on Apache before):
There where no Apache rewrite rules on the old server.
The Joomla Uses SEF (Search Engine Friendly URLs)



The missing .html suffix is not a prob but the whole rootpath in the url 
is. Any ideas how to solve this?

here is my server.conf for this host:

   server_name_in_redirect off;
   access_log /var/log/nginx/ combined;
   error_log /var/log/nginx/ notice;
   root /var/www/;
   location / {
     try_files $uri $uri/ /index.php?$args;

location ~* \.php$ {
   fastcgi_index   index.php;
   include         fastcgi_params;
   fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
   fastcgi_param   SCRIPT_NAME        $request_filename;

Thanks for your help

More information about the nginx mailing list