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.

Filter by
Sorted by
Tagged with
1
vote
1answer
128 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
649 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
167 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 ...
-1
votes
1answer
203 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
41 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
212 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
183 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
3k 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
3k 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
1k 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
237 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
107 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
138 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
838 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
543 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
441 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 ...
2
votes
0answers
500 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-...
3
votes
0answers
454 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
500 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
94 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
305 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
3answers
10k views

Wordpress behind Proxy - Mixed Content

My Server Env for a wordpress site is as follows: ---------- --------- ------------- | Client | <-- HTTPS --> | Proxy | <-- HTTP --> | Wordpress | ---------- ...
0
votes
1answer
93 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 ...
1
vote
1answer
1k views

Possible to configure nginx to ignore cache for logged in users in certain roles only?

I have nginx caching setup that ignores logged in users, but I have a lot of users in subscriber roles who SHOULD be served a mostly cached site. Is there a way to only ignore caching for SOME roles (...
-1
votes
2answers
978 views

504/502 errors plauging our site

One of our sites keeps going offline and I'm running out of ideas. It's a wordpress site built with the Avada theme and it's goal is to server as a calendar of events using The Events Calendar plugin. ...
0
votes
0answers
101 views

NGINX: Remove WordPress subdirectory from url [duplicate]

I have installed WordPress core in a subdirectory as I am using composer. The root is /www/example.com/ and WordPress is placed in /www/example.com/wp/ In the root is index.php and wp-config.php. ...
3
votes
3answers
17k views

wp-json/ return 404, but wp-json/wp/v2/ works fine on my nginx server

When I access my WordPress site as www.example.com/wp-json/ I got this 404 error. `{"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}` ...
0
votes
1answer
449 views

I have cloudflare flexible enabled, How to redirect to https for Nginx server

If I access directly to https it works, but the site is still accessible by HTTP. How do I force all http to https? I have used WordPress HTTPS plugin. But it is not redirect to https. I have ...
1
vote
1answer
3k views

REST API parameters not working with nginx

I'm having an issue with the server I'm working off of ignoring any parameters I send to the REST API. My local environment works perfectly, but for some reason the other environments don't. I work ...
1
vote
1answer
2k views

Receiving 404 when uploading file larger than 10kb

I built a file upload form using AJAX code that runs perfectly on my localhost (xampp/apache). I can upload files as large as 256MB. Using HTTP. However, when I upload this code to my nginx server on ...
0
votes
0answers
279 views

Can I do fragment caching with NGINX fastcgi?

I have an NGINX fastcgi cache setup on a site, it works really well. But now I would need to get the user's geographical location from NGINX to PHP, and do some redirecting based on that. I was ...
0
votes
1answer
193 views

Rewriting / Redirecting request outside wordpress

I need Wordpress to redirect requests matching a specific url structure to another script than index.php. I'm using nginx so i cannot simply add a rewrite rule in the .htaccess file nor do I have ...
4
votes
1answer
888 views

Nginx - Prevent Access to Debug file [closed]

I am logging to debug file wp-content/debug.log but any user can download the file, if they put the url on their browser. How could I prevent access to this file using Nginx?
1
vote
0answers
184 views

Wordpress Network (multisite) — how to ensure each site has their own admin URL?

I would like my multisite network install to be at something like: https://mybusiness.com Now my business has multiple clients. Each of them will be a "site" inside my singular WP install. So they ...
3
votes
0answers
901 views

302 redirect to signup with nginx reverse proxy

I have a working multisite install configured in Apache. The server is a Debian GNU/Linux 8 amd64 and Wordpress is version 4.6.1. Apache is version 2.4.23 as available in the Debian repos. It's a live ...
2
votes
1answer
421 views

Block PHP Files Nginx

In my server block in Nginx config, I have put: location ~* /wp-content/.*.php$ { deny all; access_log off; log_not_found off; } However, if I manually enter in a web browser: https://...
1
vote
0answers
479 views

NGINX rewrite rules for multisite

I have a WordPress 4.6 network running on an Ubuntu 16.04 server with NGINX. I have one main site and then I migrated a single site installation to a subsite under that main site. I made all the DB ...
3
votes
1answer
272 views

Why “Settings->Permalinks” creates .htaccess file on nginx server?

I created a wordpress site and hosted on nginx server, and settings-> Permalinks and clicked save changes. This creates a .htaccess file on the site root. On Apache server it's logical and worth ...
2
votes
2answers
5k views

How to setup 301 redirects for multiple query string URLs?

I have multiple URLs that follow the same pattern like this: https://example.com/hashtag?tag=[$string] Is there a way to perform a 301 redirect to the following URL instead? https://example.com/...
0
votes
1answer
1k views

Username Variable in custom links?

I'm trying to use custom links in the php code to link to buddypress profile pages. Basically, I need a way to create a username constant so I can make links like domain.com/members/--username--/...
1
vote
0answers
153 views

After updage wordpress 4.4 to 4.5 nginx config works not properly

Permalinks (post name option) stop working (get 404 page with text "It seems we can’t find what you’re looking for. Perhaps searching can help.") after upgrade from 4.4 to 4.5. I use nginx as a ...
1
vote
1answer
70 views

How to test drive WordPress on VPS with LEMP stack before going live?

I have example.com up and running on a VPS droplet running Ubuntu 16.04. The website was built with WordPress on LEMP stack (Linux EngineX MySql and PHP) which was done using EeasyEngine. EasyEngine ...
0
votes
1answer
1k views

How to solve 404 permalink errors on nginx server

I can't solve this issue. I tried everything I found over the web. I first tried configuring my nginx.conf following the example on codex with no success. https://codex.wordpress.org/Nginx I found ...
0
votes
2answers
253 views

Wordpress with Photocrati Theme keeps resetting site URL - help solving underlying problem

I have a website running the Photocrati theme version 4.9.3 on an AWS t2.micro running Amazon Linux. I use PHP 5.6 with php-fpm and a very recent version of Nginx, compiled with a couple of modules. I ...
3
votes
1answer
477 views

WordPress tips for speed and performance [closed]

I have got some problems with performance, exactly page speed load on my Website. Here are things listed below: I have got WordPress installed on my VPS with Nginx platform. AMD 8 cpu's 2x SSD ...
6
votes
1answer
4k views

Nginx FastCGI_Cache Vs PHP Caching

I have been doing some experimenting with caching performance using loader.io and have been left with some puzzling results. I was originally on a shared host that used a LAMP stack. Even with ...
0
votes
1answer
272 views

Is it safe to give wordpress directories ownership to www-data?

I am not server or security expert so please excuse if my question sounds odd. I am running wordpress site on ubuntu 14.04 with nginx server. I had a problem while installing new plugin, So I have ...
4
votes
1answer
7k views

Using Wordpress with Apache behind an nginx reverse proxy

I hope you can help me solving my issue. I am running ngninx on a dedicated Server as a reverse proxy. My WordPress Application is on another VM, which is running apache2 as a Websever. Everything is ...
0
votes
1answer
144 views

Nginx WordPress and another Web app URL structure

I have got WordPress installed on my root example.com/ Website. Also I have another Web application that on example.com/my-app/ which has got ugly links like example.com/my-app/file.php?arg=value to ...
1
vote
1answer
104 views

Server Move: All pages leading home

The Problem. No matter which URL I enter, all pages display the site's static front page. Known site URLs load the home page (but keep the URL entered) and should-be 404 paths like /I-know-you-do-not-...