1

Is the rewrite module activated for nginx in the Wordpress juju? When I change the permalink to anything other than default I get bad gateway.

rewrite is mandatory for buddypress to function properly. Can anyone help me solve this issue?

Jorge Castro
  • 73,717

1 Answers1

1

I added the following to the /etc/nginx/sites-available/wordpress which seems to have fixed the issue.

# Wordpress permalinks
if (!-e $request_filename) {
 rewrite ^(.*)$ /index.php?q=$1 last;
 break;
}

Is this a good way to do it or does the charm have to be modified to include this?

Jorge Castro
  • 73,717