View Single Post
  #5  
Old 15th April 2013, 20:05
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 38
Thanked 87 Times in 68 Posts
Default

Paste your code snippet in ispconfig (websites->yoursite->options->nginx directives. Don't override the vhost file.

In this example from nginx.org you will need to paste only:

Code:
location ^~ /(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ { internal; }
  location /var/export/ { internal; }
  location /. { return 404; }
  location @handler { rewrite / /index.php; }
  location ~* .php/ { rewrite ^(.*.php)/ $1 last; }
  location ~* .php$ {
    if (!-e $request_filename) { rewrite / /index.php last; }

Last edited by pititis; 15th April 2013 at 20:09.
Reply With Quote