print_r($_GET)
i intentionally have written the print_r($_GET) from index.php output isn’t it enough to prove that nginx rewrites are acting as expected? though here’s the fragment of my nginx.conf:
What does your nginx rewrite configuration for this look like? MODx will not do friendly URL handling without a rewrite engine.
location / { root /var/www/mysite/docs; index index.php index.html; #if (-f $request_filename){ # expires 10d; # break; #} #if (-d $request_filename){ # break; #} if (!-e $request_filename){ rewrite ^(.+)$ /index.php?q=$1 last; } } location ~ .php$ { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_pass backend; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/mysite/docs$fastcgi_script_name; include fastcgi_params; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT /var/www/mysite/docs; fastcgi_intercept_errors on; fastcgi_ignore_client_abort off; fastcgi_connect_timeout 60; fastcgi_send_timeout 180; fastcgi_read_timeout 180; fastcgi_buffer_size 128k; fastcgi_buffers 4 256k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; }
This has nothing to do with Evo vs. Revo AFAIK. I have no idea what the problem is without additional information. Anyone else running Revo on nginx that can see anything wrong with these rewrite rules?
Nobody knows the answer? :-( Should i revert to Evo then? :-(
server { listen 80; server_name myModxSite.com; rewrite ^ http://www.myModxSite.com$request_uri?; } server { listen 80; server_name www.myModxSite.com; #root /www/myModxSite.com/root-down/; root /www/myModxSite.com/root/; access_log logs/myModxSite.com.access.log; error_log logs/myModxSite.com.error.log; # To debug rewrites, uncomment the following two lines #error_log logs/myModxSite.com.error.log notice; #rewrite_log on; location = /favicon.ico { return 204; } location = /favicon.png { } # serve static files directly location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico)$ { access_log off; expires 30d; break; } location = /index.php { include fastcgi_params.modx; } location / { index index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; } } }
rewrite ^/(.*)$ /index.php?q=$1 last;
location / { try_files $uri $uri/ @rewrite; } location @rewrite { rewrite ^/(.*)$ /index.php?q=$1; }
location / { try_files $uri $uri/ /index.php?q=$uri&$args; }