<div dir="ltr">All your requests for non-static content are being routed through the joomla index.php, so this is an option you'll have to look for in your joomla configuration.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 2:00 AM, vmbeliz <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
Please i need help.<br>
i have a server with Centos 6.5 + Nginx + PHP-FPM.<br>
I use a website with joomla.<br>
I configured to use Friendly url (SEF) in joomla, and worked, but if i enter<br>
something that do not exist like <a href="http://www.example.com/asdasdad" rel="noreferrer" target="_blank">www.example.com/asdasdad</a>, so the server<br>
redirect me back to index (<a href="http://www.example.com" rel="noreferrer" target="_blank">www.example.com</a>); but should show me the joomla<br>
error page. If i disable the SEF, and test, so i can see the joomla error<br>
page. What i need to do ?<br>
<br>
I'll send my vhost.conf.<br>
<br>
#####################<br>
VHOST.CONF:<br>
<br>
server {<br>
        server_name  <a href="http://example.com" rel="noreferrer" target="_blank">example.com</a>;<br>
        return 301 $scheme://<a href="http://www.example.com" rel="noreferrer" target="_blank">www.example.com</a>$request_uri;<br>
}<br>
<br>
 server {<br>
listen       80;<br>
server_name  <a href="http://www.example.com" rel="noreferrer" target="_blank">www.example.com</a>;<br>
    access_log /var/log/nginx/access.log;<br>
    error_log /var/log/nginx/error.log;<br>
    root /usr/share/nginx/html;<br>
<br>
    location / {<br>
        index index.html index.htm index.php;<br>
        try_files $uri $uri/ /index.php?$args;<br>
autoindex on;<br>
   }<br>
<br>
    location ~ \.php$ {<br>
        try_files $uri =404;<br>
        include /etc/nginx/fastcgi_params;<br>
        fastcgi_pass  <a href="http://127.0.0.1:9000" rel="noreferrer" target="_blank">127.0.0.1:9000</a>;<br>
        fastcgi_index index.php;<br>
        fastcgi_param SCRIPT_FILENAME<br>
/usr/share/nginx/html$fastcgi_script_name;<br>
  fastcgi_connect_timeout        120;<br>
  fastcgi_send_timeout          500;<br>
  fastcgi_read_timeout          500;<br>
  fastcgi_buffer_size          128k;<br>
  fastcgi_buffers            4 256k;<br>
  fastcgi_busy_buffers_size    256k;<br>
  fastcgi_temp_file_write_size 256k;<br>
<br>
 fastcgi_param PHP_VALUE "<br>
        post_max_size=50M<br>
        upload_max_filesize=50M<br>
        ";<br>
   }<br>
}<br>
###############################<br>
<br>
Thank you all!<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,262625,262625#msg-262625" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,262625,262625#msg-262625</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>