.

Fixing Plesk 11.5 error 500 NGINX & WordPress path url Slash Redirect Error

1 min


86
18 shares, 86 poin

HARIANACEH.co.id – You may have noticed that when visiting a WordPress site on a Plesk 11.5 server, the page redirects don’t always work. Depending on whether or not the URL has a trailing slash (/), you may get a 500 Internal Server Error message.

The problem seems to be with the default templates that Plesk uses to create domains. Luckily, we can customize them and fix the issue in the URL rewrite lines.

Create a custom NGINX Default Domain template

First, we need to create the custom paths and copy the original template files.

mkdir /usr/local/psa/admin/conf/templates/custom/domain
cd /usr/local/psa/admin/conf/templates/custom/domain
cp /usr/local/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php

Edit our NGINX Default Domain VirtualHost PHP template

Now we edit the NGINX Default Domain VirtualHost PHP template and make some minor changes to the URL rewrite

nano nginxDomainVirtualHost.php
0/5 (0 Reviews)

Komentar


Apa Reaksi Anda?

Marah
6
Marah
Suka Suka
9
Suka
Takjub Takjub
8
Takjub
Kaget Kaget
6
Kaget
Takut Takut
5
Takut
Lucu Lucu
4
Lucu
Sedih Sedih
1
Sedih
Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Gif
GIF format