Jump to content

Nginx friendly url problem


kRSB

Recommended Posts

Posted

Hello,

after doing an upgrade from 4.1.13.2 to 4.1.16.1 my status updates are not getting posted from the recent status updates widget. It works however when i put index.php in front (localhost/forums/index.php).

My website is setup as following:

localhost/forums

nginx config:

server {
		listen               80 default_server;
    	index        		index.php;

		# MAMP DOCUMENT_ROOT !! Don't remove this line !!
		root                 "/Applications/MAMP/htdocs";

		access_log           /Applications/MAMP/logs/nginx_access.log;
		error_log            /Applications/MAMP/logs/nginx_error.log;

		location / {
			# send files to /forums
        	try_files  $uri $uri/ /forums/index.php?$query_string;		
        }

		location ~ \.php$ {
			try_files        $uri =404;
			fastcgi_pass     unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
      		fastcgi_index    index.php;
      		fastcgi_buffers 16 8k;
      		fastcgi_buffer_size 16k;
			fastcgi_param    SCRIPT_FILENAME $document_root$fastcgi_script_name;
			include          fastcgi_params;
		}
}

everything works perfectly fine except posting status updates from the front page. Nothing has changed to this config when upgrading to the latest IPS version and it worked perfectly on the previous version.

In ACP I have the following things set:

- enable friendly Urls

- rewrite Urls (I prefer not to include index.php)

- force friendly urls.

When i go to localhost/forums/index.php and post a status from the recent status widget it works, when I use localhost/forums it doesn't get posted. Did something change in the new IPS version?

Thanks for your time

Posted

my location block is slightly different

location / {
	try_files $uri $uri/ /index.php;
}

 

And surely your root should be like

/Applications/MAMP/htdocs/forums

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...