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 ...

0
votes
1answer
12 views

What means ?cprotect=2 on ending of url? [on hold]

I migrated from my old hosting to new. After migrating, I release that my blog does not work correctly. For e.g I can't login using standard form on wp_login.php All POST request (comments, login) ...
0
votes
0answers
11 views

Popups in admin/plugins not working with letsencrypt

In the plugins section of the admin area when I click on a link in the plugin description the popup page just says "refused to connect". If I right click the link and open in new tab it displays fine. ...
0
votes
0answers
5 views

How to check that Nginx return WP Supercache version?

I'm trying to figuring out with Nginx + WP Super Cache. This tutorial seems like overdated or incorrect. This part trying to get index.html file, but it's wrong, because cache folder contain hashed ...
1
vote
1answer
68 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
23 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
18 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
1answer
31 views

Some pages redirect to LAN ip

I am trying to make my wordpress installation work behind a nginx reverse proxy. I have tried it with and without ssl, I do not know where to go next. Without the reverse proxy, only from LAN, ...
0
votes
0answers
22 views

Nginx: Hitting the API with any sort of query string causes 404, “No route was found matching the URL and request method”

I have scoured the internet for 2 days straight reading everything and trying everything I could try but I always end up with the same result. If I hit : /wp-json/wp/v2/users/ It is just fine (most ...
0
votes
0answers
64 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
0answers
15 views

Hosting wordpress on non 80 port always requires port in URL or I get too many redirects error

I have a wordpress docker container running on host: 192.168.1.1:32811 I set the siteurl and home to 192.168.1.1:32811 and everything works OK. I then setup an nginx reverse proxy on another ...
0
votes
1answer
23 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
202 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
46 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
10 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
13 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
33 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
13 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
66 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
108 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
183 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
32 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
725 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
50 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
233 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
66 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
137 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
54 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
114 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
33 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
42 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
83 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
27 views

Issue with custom URL with Nginx

I've this hierarchy in my /var/www/ that contains Wordpress files firstFolder secondFolder thirdFolder and so on... I want to achieve a custom URL like mainWebsite.com/secondCustomSubFolderURL that ...
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
147 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
74 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
1k 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
1k 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
487 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
61 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
94 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
119 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
339 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
456 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
308 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
336 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
257 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
434 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
75 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
199 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
4k views

Wordpress behind Proxy - Mixed Content

My Server Env for a wordpress site is as follows: ---------- --------- ------------- | Client | <-- HTTPS --> | Proxy | <-- HTTP --> | Wordpress | ---------- ...