23
votes
Endless Redirect Loop with AWS ELB and wordpress site using wordpress https plugin
Try adding this to your httpd.conf or an .htaccess
SetEnvIfNoCase X-FORWARDED-PROTO "^https$" HTTPS
When using the load balancer + HTTPS, your webserver is unaware that HTTPS is being used on the ...
- 535
15
votes
Nginx defaults to /usr/share/nginx/html
In Nginx if there is no matching location for a uri then it usually defaults to looking in /usr/share/nginx/html/ (likewise with OpenResty /usr/openresty/nginx/html/). So it would seem that it's not ...
- 593
13
votes
Accepted
Continuous POST requests on wordpress login page - hacking attempt?
My preferred way of dealing with this is to block access to anything in the /wp-admin/ folder and /wp-login.php to everywhere except a known static IP, say the IP of your office. Barring that, look ...
- 109k
12
votes
Wordpress on IIS replication with robocopy
Having 4 front end servers that share the same files at the same time and each is able to write without using some kind of DFS or third party program dedicated to directory synchronization would be a ...
- 9,536
12
votes
Accepted
Wordpress on IIS replication with robocopy
Thanks for all the suggestions people.
Our solution was using a peer-to-peer synchronization approach using a tool called resilio.
Resilio allowed us to configure a number of computers (in this case ...
- 829
12
votes
Accepted
WordPress site user-login: 404 page not found
Wp-admin is used for back-end access into Wordpress you really do not want to change that as it is hard-coded into the WordPress sytem, so every admin link will point back to the original folder, and ...
- 9,536
12
votes
In Azure Sandbox, can't create a WordPress site
I was also facing the same issue but was able to create a WordPress website when I changed the App service plan.
I created a new App Service plan F1 Pricing tier (Free) under Dev/Test and everything ...
- 121
11
votes
Wordpress on IIS replication with robocopy
I don't think scheduled tasks and Robocopy is a great approach. Because of the 5 minute window there will be times where a resource is requested but the server selected by the load balancer won't have ...
- 31.2k
10
votes
Security Wordpress on IIS hosted sites.
I followed this guide which works well
https://codex.wordpress.org/Hardening_WordPress
Couple things to keep in mind, if you are letting multiple users upload content to your site, make their own ...
- 9,536
10
votes
What are the pros and cons of using a separate SQL server?
As usual the only way to see exactly how your environment behaves is to try it within the constraints of your environment. In short, latencies will increase when having to cross a network link ...
- 4,991
9
votes
Accepted
How to create a url in a wordpress that will return code 200?
You can use your WordPress installation front page for the health check. This is the most reliable indicator that the WordPress site is available.
- 36.1k
9
votes
Accepted
wp-admin redirect loop when behind apache reverse proxy
The problem here is that your Internet-facing web server is using https, but the communication between that server and Apache2 is http.
Then, Wordpress sees that the incoming connection is coming in ...
- 36.1k
8
votes
Accepted
Wordpress, nginx, php-fpm: XML-RPC not working
It seems like the extensions php-xml and php-xmlrpc are not installed.
Install them with:
apt-get install php-xml php-xmlrpc
or (CentOS, RHEL etc..)
yum install php-xml php-xmlrpc
SuSE
zypper ...
- 1,367
8
votes
Accepted
Nginx proxy_pass to wordpress docker container
It may help to set some headers so that the upstream knows the correct frontend server name. See this document for more.
For example, I use:
proxy_set_header Host $host;
...
- 12.4k
8
votes
Permalinks in Wordpress not working on Google Cloud Platform
use ssh: edit your apache .conf
sudo nano /etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride ALL <----(edit from none)
...
- 81
8
votes
Accepted
wordpress wp-login.php page restriction by ip in nginx
The underlying issue you're facing is that only a single location directive will match each request to specify the parameters for request processing. Additionally, as the other answer mentions, the ...
- 13.5k
7
votes
Accepted
How to disable Varnish
if you use CentOS or Red Hat, use this:
service varnish stop
if you want to uninstall varnish, try this:
yum erase varnish
or refer to https://stackoverflow.com/questions/27739853/varnish-cache-...
- 186
7
votes
Accepted
Can I use CloudFront to serve a WordPress blog from the same domain, but a different server?
Yes, you can, if you set up the entire site to run behind CloudFront. You can then configure the default back-end origin service for the site, and carve out an exception to take a different path for /...
- 22.4k
7
votes
enabling ssl connection from wordpress to mysql
Edit wp-config.php
Add following line:
define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL);
If your database(MySQL 5.6 or later) use a self-assigned certificate, you may try:
define('...
- 171
7
votes
Second Site in a week on our Server hacked. How?
Keep your applications updated. This doesn't include just the core application itself, but every third-party plugin you use as well. Vulnerabilities are very frequently found and exploited in these ...
- 109k
7
votes
Is it possible to serve static html from php-fpm?
You could, but the performance would be terrible, since everything would go through the PHP interpreter. This would also introduce an obvious, massive security problem.
This is exactly the sort of ...
- 241k
7
votes
How to create a url in a wordpress that will return code 200?
For what it's worth, I had to set-up a WordPress site in a container and get a health check to succeed before I could even get traffic directed to it. The suggestions for the "front page" work only ...
7
votes
Accepted
PHP-FPM + nginx producing a permission denied, but only on certain large pages
First of all, the failure is related to FastCGI buffering, rather than proxy cache.
This is obvious from /var/lib/nginx/tmp/fastcgi....
Why you experience an error on particularly large pages only: ...
- 5,026
6
votes
Wordpress behind nginx reverse proxy doesnt work in https
I had some problem, I resolved in this way:
in my wp-config.php,
I added these lines:
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
BEFORE ...
- 61
6
votes
Make a server manage several sites
What you want is called virtual hosting. And it works much better than what you described!
Just add multiple server blocks with different server_name and root directories. One server block per domain ...
- 552
6
votes
Second Site in a week on our Server hacked. How?
Do what the attackers are doing and scan you customers for common popular and often exploited packages that are out of date/unmaintained by the site owners. Take those off-line before they cause ...
- 74k
6
votes
Accepted
NGINX server block configuration for hosting multiple websites on Ubuntu 16.04
Your nginx.config needs something like this line. This is what I do on my server
include /etc/nginx/enabled-sites/*;
In that directory you can have one file with many servers, or you can do what I ...
- 31.2k
6
votes
Accepted
nginx fails to load wordpress subfolder using different root location
You are missing a root statement in your location ~ /blog/.+\.php$ block. But you may find it easier to read if you nest the location blocks:
location ^~ /blog {
root /var/www/;
try_files $...
- 12.4k
6
votes
Wordpress Docker container redirects my request from port 8000 to 80
For a minute stop your nginx, run this container with docker run -p 80:80 [...].
Then your browser will be able to access http://localhost/wp-admin/; there should be a property called something like &...
- 13.7k
6
votes
Hosting WordPress in an EC2 load-balanced instance
You should be using EFS volumes for shared storage, like the wp-content folder, and RDS for the database. EBS won't help you for this.
AWS has a good pattern available here. It links to templates and ...
- 31.2k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wordpress × 1823nginx × 547
apache-2.2 × 272
php × 219
mysql × 143
.htaccess × 131
apache-2.4 × 127
php-fpm × 116
ubuntu × 103
linux × 102
centos × 73
amazon-web-services × 71
apache2 × 62
amazon-ec2 × 61
redirect × 60
mod-rewrite × 57
rewrite × 56
docker × 52
reverse-proxy × 52
varnish × 44
cache × 42
ssl × 41
security × 41

iis × 39