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

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
14 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
14 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 ...
-1
votes
0answers
31 views

Is there a way to hide the wp-admin with Nginx?

I'm trying to hide wp-admin and wp-login.php on a fresh installation of wordpress. The server is a VPS with both Nginx and Apache. Nginx serve static files and act as a proxy to Apache. In the past (...
0
votes
0answers
20 views

wordpress site doesnt work over SSL

i've faced with strange issue - my WP site doesnt work over ssl, only header appears: http://www.arcpb.com/ - works fine https://www.arcpb.com/ - only header is visible this is not mixed content ...
0
votes
0answers
49 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
12 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
0answers
20 views

Customizer settings do not transfer from dev to staging

I'm running a local dev server and a staging server for my site. After pushing to remote, the customizer settings are all lost. I am using the underscores theme with one added custom text area in inc/...
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
140 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
44 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
11 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
29 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
11 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
51 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
66 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
121 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
21 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
541 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
37 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
176 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
56 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
101 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
40 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
97 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
32 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
38 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
71 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
131 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
57 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 /...
0
votes
0answers
32 views

Can't change my site identity in apperances

So for some reason it's not saving the image when I click it in the site identity then select and image it's not sticking. The 'Select' button grays over like I've clicked it but the value isn't ...
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....
0
votes
0answers
130 views

Too many 499 request for XMLRPC.php file in NGINX access log

185.188.204.6 - - [17/Nov/2017:11:02:26 +0530] "POST /xmlrpc.php HTTP/1.0" 499 0 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" 185.188.204.6 - - [17/Nov/2017:11:02:27 +0530] "POST /xmlrpc....
1
vote
1answer
402 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
0answers
292 views

Multisite Installation with Nginx and Subdomains is Not Working

Followed this tutorial to setup: https://www.digitalocean.com/community/tutorials/how-to-set-up-wordpress-multisite-with-nginx-on-ubuntu-14-04 Now I'm experiencing strange behavior with the site. ...
0
votes
2answers
53 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
92 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
114 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
259 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
443 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
280 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
313 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
229 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
426 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
69 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
180 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
3k views

Wordpress behind Proxy - Mixed Content

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