I saw that joomla uses a type URL of this /index.php/components/ or /components/users/juan Is there any tutorial for php nginx or modified so that they can be read and not create 404?
Add the following lines n the nginx directives field of the website: Code: location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ { return 403; error_page 403 /403_error.html; } location / { try_files $uri $uri/ /index.php?q=$uri&$args; } # caching of files location ~* \.(ico|pdf|flv)$ { expires 1y; } location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ { expires 14d; }
For Moodle SEO friendly ispconfig3 nginx directives Code: # put your real site address here rewrite ^/(.*\.php)(/)(.*)$ /$1?file=/$3 last; location ^~ / { try_files $uri $uri/ /index.php?q=$request_uri; index index.php index.html index.htm; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; } }