reverse proxy vs. stand-alone

Igor Sysoev is at rambler-co.ru
Fri May 15 22:46:27 MSD 2009


On Fri, May 15, 2009 at 11:38:34AM -0700, Cliff Wells wrote:

> On Fri, 2009-05-15 at 13:09 -0500, AMP Admin wrote:
> > Cliff, what did your Core SEF for Joomla! from .htaccess look like after
> > converting to nginx?
> 
> This is all I used:
> 
> http://wiki.nginx.org/NginxJoomla

This

  location / {
    expires 30d;
    error_page 404 = @joomla; 
    log_not_found off;     
  }
 
  location @joomla { 
    rewrite ^(.*)$ /index.php?q=$1 last;
  }

should be

  location / {
    expires 30d;
    error_page 404 = /index.php?q=$uri;
    log_not_found off;     
  }

or

  location / {
    expires 30d;
    try_files  $uri  /index.php?q=$uri;
  }
 
> It's someone else's site (my VPS), so I'm not 100% certain of any Joomla
> settings (from the admin interface) might come into play.    
> 
> Cliff
> 
> 
> 

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list