Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
13 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
1answer
14 views

NGINX errors to plugins that aren't installed [closed]

NGINX is logging a significant number of open() errors to plugins that are no longer installed. What could have gone wrong, and how can I resolve the issue?
0
votes
0answers
21 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
12 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
17 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
121 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
214 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
28 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
25 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 ...
0
votes
0answers
105 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
241 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
62 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
11 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
21 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
37 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
15 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
84 views

Wordpress headless deploy with NGINX

I'm using Wordpress headless as back-end and ReactJS as front-end for my website, and i want to deploy them on my VPS server with NGINX. All of my WP content (wp-admin, wp-content, wp-includes,... ) ...
0
votes
0answers
148 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
254 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
54 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
936 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
63 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
277 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
81 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
151 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
60 views

nginx rewrite rules for wordpress installation in subfolder

My website structure is as follow: main website: https://www.example.com/ wordpress blog: https://www.example.com/blog/ I have a classic Wordpress structure using articles name in URL using /%...
0
votes
0answers
138 views

wordpress multisite with laravel webapp

I am running a wordpress multisite website with subdirectory option. example.me is my main website example.me/one example.me/two etc are the network websites. Now I am planning to have a small ...
0
votes
0answers
34 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 ...
0
votes
0answers
49 views

Postfix is installed in Ubuntu 16.04 with “internet site” but emails won't be sent from contact form

In a up2date Ubuntu 16.04 (Xenial) with Nginx I have installed Postfix with the "internet site" default configuration and Postfix was indeed installed successfully as indicated from postconf -d | grep ...
0
votes
0answers
98 views

Nginx config to ignore subfolders

I have Wordpress installed normally, nothing fancy and all working fine there, however I have a subfolder that Wordpress is performing it's pretty-link permalinking on which is causing all manner of ...
0
votes
0answers
1k views

NGINX reverse proxy configuration for WordPress running on apache http

I have tried with the above configuration in my environment with plain http connection for apache/wordpress, it is not working for me. My configuration details are as below. nginx: proxy_pass http://...
1
vote
0answers
155 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
100 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
1answer
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
575 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
73 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
95 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
123 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
417 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
470 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
321 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
357 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-...
1
vote
0answers
281 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
451 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
82 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 ...
1
vote
2answers
223 views

nginx php-fpm, and auto updates?

I'm trying to figure out how to let Wordpress update on my server, without needing FTP credentials. In /etc/php/7.0/fpm/pool.d/www.conf I have: listen.owner = www-data listen.group = www-data The ...
3
votes
2answers
5k views

Wordpress behind Proxy - Mixed Content

My Server Env for a wordpress site is as follows: ---------- --------- ------------- | Client | <-- HTTPS --> | Proxy | <-- HTTP --> | Wordpress | ---------- ...
0
votes
1answer
92 views

Editors can't edit but administrators can

I've got a strange problem, I've recently moved my site to a new Digital Ocean server. It's setup with Nginx and it's got the standard lock down in the nginx configuration to stop outsiders executing ...