Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nginx]

Nginx (pronounced “engine-x”) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server., licensed under a BSD-like license. It is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption. Nginx is one of a handful of servers written to address the C10K problem.

1
vote
0answers
14 views

reverse proxy nginx php-fpm apache settings for wordpress

I verified my stack works I can get a phpinfo() dump in a test file and I can get static files to load like css files. I can not however get wordpress to work. Here's the issue: Wordpress redirects ...
0
votes
0answers
14 views

Migrate wordpress from nginx to static

I currently have a wordpress site using plain links for each post (i.e. /?p=123) on top of nginx. I want to migrate this site to a static only site, but not mess up other blog links to mine and search ...
0
votes
0answers
17 views

WordPress Multisite query parameters

Am currently having an issue with the redirection of query parameters on a multisite. I have embedded an Angular App inside an iframe and have a script to assign the query parameters of the app to the ...
0
votes
1answer
14 views

Pagespeed Error in Nginx

I am currently experiencing a problem in mod_pagespeed and pagespeed. The image/file does not load due to an additional array after the file name . WP-sitename/wp-content/filename.png.pagespeed.ce....
1
vote
0answers
18 views

nginx.conf appeared in all WordPress installations on folder

I run a couple of WordPress sites on a cloud server that I own. All of these sites run on the same Apache installation. Recently, I've found that in all of my WordPress webroot folders, an empty file ...
1
vote
1answer
18 views

Nginx Wildcard SSL with Wordpress Multisite Subdomains

I have a wildcard certificate that secures *.example.com and I need to strip out the canonical www for all requests made for subdomains, eg: www.subdomain1.example.com => subdomain1.example.com I ...
0
votes
1answer
153 views

Wordpress redirect loop on nginx + apache reverse proxy

I am trying to setup a fresh Wordpress installation on an nginx + apache reverse proxy configuration. My installation process was as follows: Installed nginx and apache servers Configured nginx (conf ...
0
votes
1answer
37 views

NGINX / Wordpress Site - Increasing php.ini max_execution_time = 600 doesn't work

I'm testing my PHP Limit on WordPress site and keep getting a 504 Gateway Time-out. I'm changing the max_execution_time in php.ini to reflect the value of 600. Followed by restart when I test the ...
0
votes
0answers
17 views

NGINX / Wordpress Site - Increasing php.ini max_execution_time = 600 doesn't work [duplicate]

Need some assitance. I'm testing my PHP Limit on wordpress site and keep getting a 504 Gateway Time-out. I'm changing the max_execution_time in php.ini to reflect the value of 600. Followed by ...
0
votes
0answers
16 views

WP-CRON is not working

my website is running on a ubuntu 18.04 vps and im using nginx i recently noticed that wp-cron is not getting excecuted properly so i installed WP-Cron Status Checker plugin and it shows cURL error ...
0
votes
0answers
53 views

Nginx reverse proxy to separate Wordpress server

I have a reverse proxy set up on nginx, which is working fine to redirect traffic to one html website internally. I decided to look into hosting my own Wordpress server for my blog. I have a VM ...
0
votes
0answers
27 views

WordPress sub-directory on other server running on nginx?

I have main site running on node on instance and I used sub-directory to run WordPress on another instance nginx config location /eg-en/blog { proxy_pass http://{{Instance-Ip}}; } The ...
0
votes
0answers
14 views

I inherited an Nginx proxy. wp-includes is filtered. Should it be?

I've inherited a Wordpress install behind an Nginx proxy (rules are a mess). I know very little about Wordpress but trying to learn what I can on a test system to support it. My web developers have ...
0
votes
1answer
18 views

permalinks constantly needs re-saving

I have my WP running on an Nginx environment, with Wordfence, WP Rocket, and Search&Filter plugins installed (along with some others). Permalinks are working just fine, except /search permalink ...
0
votes
1answer
347 views

Wordpress multisite subdirectory on nginx behind reverse proxy

I can't seem to make wordpress multisite subdirectories work behind my reverse proxy. Locally (from lan ip addresses) all works, I can access the main domain, sub-directories and all dashboards. The ...
1
vote
1answer
337 views

Nginx 404, 500 errors and Wordpress

I have defined in my server block: server { error_page 401 403 404 /custom_404.html; location = /custom_404.html { root /var/www/html; internal; } ...
1
vote
1answer
41 views

Difference between these two nginx try_files statements for WordPress?

What is the difference between these two try_files statements and which do you use and why? I've seen both used in tutorials online but cannot find an explanation of the differences or benefits of one ...
0
votes
1answer
28 views

Restrict access if logged out except for homepage

I want to retrict access to my whole wordpress except for the homepage and one other page. The problem I found is that the other page is accessible but not the homepage. My wordpress installation is ...
1
vote
0answers
121 views

Wordpress Nginx Won't 404

I have nginx running wordpress. Weird thing is the site won't 404 and instead rewrites the URL to the homepage. Any URL with a .php in the string will 404 correctly but /foo will not 404. Any help ...
0
votes
1answer
25 views

wordpress.mydomian.com 404 Error

I have had configured LEMP stack on my vps and set my "A" records to the server's IP address(v4). mydomin.com works pretty well as well as portfolio.mydomian.com in which I used just CSS and JS and ...
1
vote
0answers
278 views

Wordpress file not found and 403 forbidden

It happened in the last day. I have a Centos server with many Wordpress sites. Some of them are working fine and some are giving 403 forbidden. And when trying to reach concrete files, I get 404 not ...
1
vote
1answer
82 views

how to combine wordpress htaccess on my root domain + php on subfolder

I apologise for a seemingly duplicate question, but none of the dozens I've looked at actually had the same problem. I have the following directory structure: /.htaccess /index.php /subfolder/....
0
votes
0answers
12 views

Multisite Wordpress website with Ngnix

we have a SAAS platform in-where our customers can set up their eCommerce websites, with custom domains. The solution is built using the MEAN stack and, we use Nginx as a reverse proxy for routing the ...
0
votes
0answers
25 views

Nginx ?category=catname1 rewrites

My website includes URLS like: http://example.com/?category=catone http://example.com/?category=cattwo Is there any easy way like regex rewrites for nginx in order to rewrite all /?category=* ...
0
votes
0answers
42 views

504 Gateway Time-out error on Add New User

Whenever I try to add a new user manually or sign up as a new user via the front-end of my wordpress multisite, the browser waits for a long time and before returning nginx 504 Gateway Time-out error. ...
0
votes
0answers
18 views

NGINX config to block content from internal subsites being downloaded but not the main site

I have a Wordpress Multisite network setup and I am trying to block non-registered users from being able to download PDFs and other documents from direct link to the internal sub sites. To do this, I ...
0
votes
0answers
173 views

WordPress + Polylang + NGINX == 404 errors

I have a WordPress site set up with Polylang. Normal posts get translated and shown fine. But Pages all return 404 when trying to access them via their "pretty urls". Accessing them via query string ...
0
votes
1answer
353 views

Infinite loop behind SSL proxy on non-standard port

I need to run a WordPress instance on a non-standard SSL port (8080). I'm using Docker containers and nginx as a reverse proxy. Here's the relevant portions of docker-compose.yml: wordpress: ...
0
votes
0answers
67 views

Translated pages return 404 errors

I am running WordPress 4.9.5, with the latest Polylang on Nginx. Language selection works fine for Posts, and the Frontpage. But normal Pages return a 404 error, unless I set the site to run with '...
0
votes
1answer
1k views

Installation failed: Could not create directory - CentOS 7

I have spent over 6 hours trying to do the 5-minute installation. I've searched Google over and over, and have yet to find anything that will actually fix my problem, so hopefully someone here can be ...
1
vote
1answer
76 views

show shop instead of 404 page for missing products

How should I show the shop instead of a 404 page when a product is missing? Currently users get a 404 page which makes them loose interest. I use woocommerce with wordpress on a server with nginx.
0
votes
0answers
305 views

403 Forbidden home on localhost with nginx server

I install wordpress in nginx server on my localhost using debian OS, install is normally. But I only can login to my dashboard using localhost/statistik/wp-admin/index.php not in localhost/statistik/...
1
vote
0answers
92 views

WordPress 502 | Header Upstream send too big

In the past one of our clients ran in to the problem of having a certain page(while being logged in) return a 502 error (upstream sent too big header while reading response header from upstream) after ...
0
votes
1answer
168 views

Must I install a plugin for Nginx object caching? [closed]

After Enabling Nginx object caching, something I tried to do without success, so far, must I install some WordPress plugin to communicate with the Nginx caching system somehow or to inform Nginx what ...
0
votes
0answers
38 views

Why are the latest visits to my website originating from my own website?

To start with, I don't know anything about coding and stuff. I am here to seek help from experts hoping they can help me resolve the issue. I have a website/blog that runs on WordPress. I have a VPS ...
1
vote
0answers
168 views

Incorrect MIME type for assets with Valet

Using WordPress and Valet I am getting the following with CSS: Resource interpreted as Stylesheet but transferred with MIME type text/html Response Headers for CSS files: Connection:keep-alive ...
0
votes
1answer
126 views

wordpress admin panel loop on nginx

After updating my nginx conf file for wordpress permalinks, wordpress administrator page starts redirect loop. Why? And how can I solve this problem? My nginx conf file: server { listen 80; ...
0
votes
2answers
2k views

WordPress and NGINX - permalinks are not working with ending slash

I have added this line in the nginx configuration file try_files $uri $uri/ /index.php?$args; rewrite ^([^.]*[^/])$ $1/ permanent; #adding slash and the permalinks are working fine, but when adding /...
1
vote
1answer
2k views

Wordpress installation in subfolder not working with nginx

In nginx server the scenario is installing Wordpress in subfolder mydomain.com/new with domain specific nginx configuration (conf.d/mydomain.com.conf) below: server { listen 80; server_name mydomain....
1
vote
1answer
670 views

Why can't /wp-login.php be load balanced?

I've seen several questions posted but they either blow passed this specific item or go unanswered. Basically, I have a load balance set up between two instances of the same wordpress website with ...
0
votes
2answers
80 views

Downloaded WP but Nginx home page still showing

I am trying to install a second WP site on an Ubuntu 16 server running Nginx. I have successfully installed WordPress according to my server results, but I still only get the Nginx home page. I ...
0
votes
1answer
97 views

Dockerized Wordpress is having Nginx Proxy Issues

I have a Dockerized Nginx Proxy that sits on my server. One of my sites is a Docker-Compose Wordpress site. They are separate container and must remain that way. When I update my Site Url in the ...
1
vote
1answer
128 views

Wordpress & Fastcgi proper setup?

I'm trying to setup my sites to run with fastcgi_cache and found it a bit problematic that it doesnt really refresh content when something new is added to my site/webshop. So i stumbled upon the ...
1
vote
1answer
497 views

Nginx config, how can I redirect primary multisite domain, but not its sub-folders, nor other domains?

Environment This environment is Nginx with Wordpress Multisite installed. Question I need to redirect the primary multisite domain (e.g. domain.com, www.domain.com) to another domain (e.g. domain-...
0
votes
2answers
486 views

After updating to 4.8 permalinks will not work (all 404)

I honestly did expect to get here... I tried every tool in the book... Save changes on the permalinks page... I installed debug this to see what going on with the query... I repeated other operations ...
0
votes
1answer
330 views

wp-admin remove part of the url

This looks like wp-admin remove the subfolder URL but it's not the same problem, because the subfolder part is not a subfolder. I'm working on a clean VM as a host for Docker containers. I have a ...
1
vote
0answers
374 views

Multisite setup on VVV with bedrock

I am trying to setup multisite on VVV using bedrock stack, but I'm having some issues. First I've added my multisite configuration in the vvv-custom.yml file as my-multisite: hosts: - my-...
2
votes
0answers
298 views

how do I configure nginx for wordpress multisite, it occurs ERR_TOO_MANY_REDIRECTS

When I set the "/wp/" in PATH_CURRENT_SITE and call the network setting page(xxx.com/wp/wp-admin/network), it occurs too many redirects. But when I just set "/" in the PATH_CURRENT_SITE and I go to ...
1
vote
1answer
472 views

Moving from http to https, and www. to non-www URL

I'm really battling with something here. I'm trying to change my site to go from www. to non-www, and also http:// to https:// I've updated the settings in options-general.php (WordPress Address (URL)...
0
votes
1answer
84 views

Site doesn't work when updating to SSL using nginx

What works: https://www.exampleBE.be http://www.exampleFR.fr What doesn't work: https://www.exampleFR.fr ( ERR_CONNECTION_REFUSED in Chrome ) I'm using EasyEngine for my nginx configuration and ...