Hello there, Ok so if I understand you correctly, you need to do a rewrite for all URIs except ones starting with /blah/ ? You can do that with the following rewrite, using negative lookahead, the example worked fine on my server: rewrite ^(?!(/blah/))(.*)$ /dir_one/$2 break; This will rewrite any URI that is not in /blah/ to /dir_one/. For example: - file www.site.com/page.phby Revy - How to...
Hello, Try using this rewrite inside your server { } part and before your first location { }, it worked fine on my server : server { listen 80; server_name site.com; server_name_in_redirect off; access_log /var/log/nginx/site.access_log main; error_log /var/log/nginx/site.erby Revy - How to...
Problem SOLVED ! Ok I got back to this issue and after a lot of debugging, source code reading, and wireshark http request monitoring... the issue was in the php parameters. Joomla uses $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] to retrieve the path to files. In some nginx installation guides, it is said to comment out the "fastcgi_param SCRIPT_NAME $fastcgi_script_name;"by Revy - How to...
Hello, Well I post back here to give a feedback of my situation. I haven't found yet a way to fix the Joomla issue, so I'm dropping Nginx for now, the documentation and information is so scarce concerning rewrite rules for Joomla (even help on this official forum is not easy to get) -- I'm not talking about special rewrite rules, just the necessary ones to make Joomla work. Apache works just ouby Revy - How to...
Concerning the upload directories, I prefer to secure this from the server side, as the Joomla cvs might have security holes even after disabling php file uploads, not to mention if I install any additional addons. As for the try_files statement, it didn't work. I spent a lot of time looking for a solution, and try to understand why Nginx forwards the login POST data from mysite.com/administratby Revy - How to...
Hi Mike, One thing is not very clear for me, is it true that php-fpm is planned to be integrated in the official php package? Thanksby Revy - Php-fpm Mailing List - English
Hi, Actually the directories in the if ($uri !~ "^/images|cache|media/") statement are owned by the fast_cgi user and correspond to images and files uploaded via the Joomla CMS when creating new articles and content, this way an attacker cannot upload malicious php code and run it in those directories. This said, you are right because the server won't serve any static content anymoreby Revy - How to...
Hello, I am having some issues running Nginx for Joomla, specifically in the administrator section, herafter are two use cases: 1- Opening the page http://www.mysite.com/administrator works, but when I enter my username and password to log into to the administrator section, I get sent back to http://www.mysite.com. It looks like the "administrator" part of the address has been remoby Revy - How to...