Skip to main content

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
0 votes
0 answers
21 views

Wordpress multisite with subdomains behind nginx reverse proxy using subdirectories

I'm trying to create a working configuration for a wordpress multisite using subdomains behind a nginx reverse proxy using subdirectories. There a two domains hosted on Plesk server A running nginx (...
Jolifanto's user avatar
0 votes
1 answer
38 views

docker + wordpress + nginx = intermittent 404

edit: fixed; answer below My Dockerized wordpress website is having reliability issues all of a sudden monitoring with uptime-kuma gives intermittent 404 errors accessing the root webpage after a &...
jotyhista's user avatar
0 votes
2 answers
40 views

Wp-admin wrongly redirecting on multisite

I have a Wordpress subdirectory multisite configured on Nginx, with Cloudflare CDN. I've set all up on Nginx and wp-config.php according to other websites I have functioning correctly with the ...
Ana's user avatar
  • 11
0 votes
0 answers
31 views

Protect pdf file for only logged in user in nginx wordpress

I need to protect pdf file for only logged in user I have redirected all pdf files to php file and i need to open file if logged in if (!is_user_logged_in()) { // redirect to login page or show ...
vellai durai's user avatar
0 votes
0 answers
37 views

NGINX rewrite rules for Wordpress Subdirectory Multisite to support deep URL

I'm trying to setup a Wordpress Subdirectory multisite that can support deep urls. By deep urls, I mean the the sites should be able to have more nested parts. E.g https://example.com/path/nested/...
Itse Sagay's user avatar
0 votes
0 answers
14 views

Cant access subdomain after multisite subdirectory install

I have seperated access url for accessing wp-admin. E.g: For public url user can use : public.multisite.com for Admin url access : admin.multisite.com at condition public URL cant access wp-admin. But ...
Alex Hendrawan Rudianto's user avatar
0 votes
1 answer
34 views

Updates applied to staging WordPress site affecting production even with different databases

I am experiencing strange database-related behaviours on my server that hosts a few versions of the same website. The problem relates to making content and theme updates to one of the subdomain sites ...
Mike Hermary's user avatar
1 vote
1 answer
946 views

How to configure redis object cache for multiple sites in the same server without errors

I have about 50 sites in my server. I have installed redis to be used for cache and trying to cinfigure redis object cache plugin. I have done all the configurations I have read. Without the ...
Timothy Mach's user avatar
0 votes
0 answers
178 views

Sage theme caching issue on WPEngine

I have experienced an issue on WPEngine servers when deploying a Sage.io theme. The issue manifests as a persistent cache after copying the site from one environment to another where data/content ...
Tyrus's user avatar
  • 1
0 votes
0 answers
12 views

Reverseproxied Wordpress Docker stack keeps redirecting to old domain name

I am running a Docker stack with Wordpress and MariaDB on a Linux machine and routing everything with Nginx-Proxy-Manager. First attempt I tried to migrate a website I have running on a different ...
Centaro's user avatar
0 votes
1 answer
50 views

openlitespeed rewrite rules conversion from apache

# BEGIN Wordpress <IfModule mod_rewrite.c> RewriteEngine on # behind proxy RewriteCond %{HTTP:X-FORWARDED-PROTO} ^http$ RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L] # plain RewriteCond %{...
WsArea's user avatar
  • 1
0 votes
1 answer
55 views

White screen on home page after migration; no errors

I’m trying to migrate a site from WP Engine to an Ubuntu 22.04 (jammy) LENP server and I’m getting a white screen at the root (/) and/or at /index.php. I am able to load a screen at /wp-login.php, but ...
danorton's user avatar
  • 101
0 votes
0 answers
100 views

Images not serving (for sites that use a subdomain)

I am using docker-compose to host 5 wordpress sites on a vps vm (ubuntu). My site hosts and shows images just fine, but the other 4 (my kids) can’t serve images. Each site has it's own public_html ...
bonhoffer's user avatar
  • 103
0 votes
1 answer
843 views

How to display a custom page for 400 error message for WordPress website hosted on a NGINX server?

When I try to access the below URL in my WordPress website on the NGINX server it's showing a 400 Bad Request error. I want to show a custom page whenever this error message occurs. For example, when ...
tek bhatt's user avatar
2 votes
2 answers
631 views

wordpress is auto using http: not https: as it needs to because the server is http behind a reverse proxy https, how do I stop it?

I am installing wordpress 6.2 and this is my install screen as you can see there is something wrong, then I realised what it is when you look at the source wordpress is (correctly) working out the ...
Mr Heelis's user avatar
  • 119
0 votes
0 answers
309 views

Loading Wordpress Site Inside iframe won't allow users to login

I'm loading my wordpress website inside of an iframe. However, on Chrome, I cannot login to the Worpdress site when it is inside the iframe. I've been pushed in the direction of a reverse proxy, but ...
Brandon Amey's user avatar
1 vote
0 answers
195 views

Blocking the direct access to images in the upload folder WordPress

To prevent direct access for images in upload folder we have following configuration in Nginx configuration: location ~* \.(jpg|jpeg|png|gif)$ { valid_referers example.com https://example.com; ...
DevTeam's user avatar
  • 11
0 votes
0 answers
144 views

Nginx how to redirect index.php

I have wp installed in a sub-directory named cms inside the pub folder (pub/cms/) of my magento 2 install. When I type domain.com/cms/index.php it serves a page without the theme. It is just text and ...
Ryan A's user avatar
  • 1
1 vote
0 answers
40 views

Enable webp support Nginx+Apache reverse proxy with moss.sh [closed]

I am scratching my head from last few hours but unable to get reliable source to solve below problem. Actually, I am trying to setup WP Smush (or any webp plugin) with webp support on Nginx + apache ...
Aman Singh's user avatar
1 vote
0 answers
101 views

How to combine wordpress_logged_in cookies in one cookie?

I'm trying to optimize my server to consume less resources as possible and increase overall performance. In my site I don't see a need to recompute same requests for users or guests every time. The ...
AtomX's user avatar
  • 109
1 vote
1 answer
281 views

Why is Google Search Console getting X-Robots-Tag noindex?

As can be safely inferred from the question, I'm trying to get Google to index my site. I'm using Wordpress 5.9 served by nginx (1.13.12), with SEOPress (5.6 up-to-date). I let the wizard guide me for ...
Manumie's user avatar
  • 43
0 votes
0 answers
33 views

How can stop redirects 404 in wordpress

Currently, all 404 errors are being redirected to the page with the following uri: www.example.com/woops (previously above page was called : www.example.com/404-page however we changed the name from ...
Mohammed Alshantti's user avatar
0 votes
2 answers
529 views

Moving wordpress to different url/server creates redirect loop

I'm trying to move my wordpress site in to different server and url. How ever i seem to have a persistent redirect loop problem. I think this is not a cache, cookie or plugin problem and I am ...
Petri Muinonen's user avatar
0 votes
1 answer
612 views

issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path

i'm trying to setup a kubernetes deployment for two wordpress websites in different pods, each will have it's own deployment and service, etc..., under the same ingress, i have setup the ingress this ...
logax's user avatar
  • 1
0 votes
0 answers
34 views

Do I need a DNS on a home network?

Having installed a LEMP stack (nginx) on Ubuntu 20.04 I can run a fresh Wordpress site in Firefox using the IP address 127.0.0.1 with no problems. Using 'localhost' doesn't work. From another Ubuntu ...
Lothar Langer's user avatar
0 votes
1 answer
2k views

WordPress multisite second site admin resulting in too many redirects error

I have a multisite installation that seems to be working just fine for the first site, but for the second site, the admin panel results in a "too many redirects" loop. What is the correct ...
loganfarr's user avatar
0 votes
0 answers
31 views

How to access wordpress from domainB which is installed at domainA

Use Case: I am setting up wordpress for one of my clients. The wordpress is setup at a domain like http://cms.domainA.com. This domain is on VPN which can only be accessed by using VPN and few ...
Sunil Chaudhary's user avatar
0 votes
1 answer
95 views

charset problem in wordpress because of nginx config

I transferred a WordPress website to my server, the previous webserver was apache, the new web server is Nginx, but I made a mistake and got the Nginx config file from my old resources so this phrase &...
MohsenP's user avatar
  • 11
3 votes
0 answers
222 views

Giving WordPress its own subdirectory - nginx

I want to move WordPress installation to a subdirectory without affecting site url - https://wordpress.org/support/article/giving-wordpress-its-own-directory/ (method 1) The article contains only ...
Maciej Kravchyk's user avatar
0 votes
1 answer
452 views

NGINX+wordpress: CSS being served but not applied

Cheers fellow stackers, I kinda have to get wordpress running in a self hosted nginx environment. More or less exactly using the suggested config from NGINX wordpress doc. server { listen 443 ssl; ...
sxx's user avatar
  • 11
2 votes
1 answer
141 views

Cant get wordpress to work on subdirectory

I have an ubuntu server. I already had nginx and some page there which works. I wanted to add wordpress on /blog path I installed wordpress using this setup https://ubuntu.com/tutorials/install-and-...
Michal's user avatar
  • 31
-1 votes
1 answer
962 views

404 Not Found nginx on wp-admin

I have my own domain and I'm hosting the site on InfinityFree. So when typing http:// mysite.com/wp-admin it gives me 404 Not Found-nginx page. I have installed WordPress successfully and also added a ...
Tr0jAn's user avatar
  • 1
1 vote
1 answer
174 views

Wordpress blog posts permalinks giving 404 on nginx

I have the following nginx configuration to serve blog on /blog/ URL. server { listen 80; server_name example.in www.example.in; root /var/www/website; index index....
Anuj TBE's user avatar
  • 113
1 vote
0 answers
587 views

wp-login behind nginx reverse-proxy inaccessible — bad redirect?

i’ve setup WordPress on a local nginx backend instance. the backend url is https://wp.example.com:12345/ it’s served through a frontend, nginx reverse proxy, exposed at a subdir. the frontend url is ...
huna's user avatar
  • 11
1 vote
0 answers
165 views

ERROR: No such service: nginx when building wordpress with docker [closed]

I am having an issue in which after the installation of wordpress and the creation of the user with login I am getting a wp error: One or more database tables are unavailable. The database may need to ...
Elias Prado's user avatar
1 vote
0 answers
837 views

Fixing WordPress's Bug (failed to send buffer of zlib output compression) results in "White Screen of Death"

Problem: A user using my plugin experienced the infamous 'White Screen of Death' (WSD) on their homepage, all other pages worked correctly. Cause: My plugin implements a fix to the infamous WordPress ...
sazr's user avatar
  • 357
1 vote
0 answers
976 views

Cannot access wp-admin without trailing slash - .htaccess configuration for Wordpress behind a nginx proxy

I have a WordPress instance running via http-proxy-middleware, so I can have my WordPress blog under example.com/blog The problem I'm struggling with is I cannot configure the .htaccess file properly. ...
krzk's user avatar
  • 111
0 votes
1 answer
57 views

Wordpress on Ubuntu - “File not Found” for home.php - Trying to Redirect to Root Folder

I recently did a one-click installation on a Ubuntu server set up via Vultr. There is a PHP URL path (site.com/home.php) that I want to 301 redirect to the root folder (site.com/) but nothing has ...
user3762448's user avatar
0 votes
0 answers
43 views

How to make wordpress page site.com/content as location for main site.com that is worked on nuxt.js+node?

There are 2 containers with sites: on nuxt.js on wordpress They work in the same environment, that is, they are visible to each other. It is necessary in the 3rd container with Nginx to display the ...
Denys Holius's user avatar
1 vote
1 answer
1k views

Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx - not only Apache - solution

Talking about this well known solution: Github Original discussion I'm looking for a straightforward way working also on a Nginx installed WP and not only on Apache ones. Is there any other code-based ...
PatrizioRD's user avatar
-1 votes
2 answers
2k views

413 Request Entity Too Large nginx/1.18.0 (Ubuntu)

This message occurs whenever I attempt to upload a file greater than 2M in wordpress. I have made the follow changes in order to increase the allowed file upload sizes: In nginx.conf, I added ...
W R Knight's user avatar
0 votes
0 answers
206 views

How to route root path / to /xyz in nginx?

I am using PHP based application in which i need to configure Nginx. I wanted to forward only path / to /?product_cat=top and all other request will remains same. below is my Nginx configuration: ...
Sanjeet's user avatar
0 votes
0 answers
212 views

504 Gateway Time-out nginx/1.14.0 (Ubuntu)

I'm getting 504 in my wordpress site recently. I have hosted my site in aws ec2 t2.micro instance.When i restart nginx the issue fixed.But after few hour the issue is back.Does the weight is big for ...
Sahan Thilakarathna's user avatar
1 vote
1 answer
485 views

NGINX rewrite rules for sub subdomains

I was wondering if it's possible to set-up an NGINX rewrite rule for a WordPress Multisite that redirects anyone using the following: www.sub.domain.com to sub.domain.com. The issue we seem to be ...
Jen's user avatar
  • 29
0 votes
1 answer
115 views

Redirect old /%category%/%postname%/ to just /%postname%/

I changed my posts permalinks from /%category%/%postname%/ to /%postname%/. Now all my old URLs are not working and I want to redirect them to new structure. How can I do that? I use nginx
Madno's user avatar
  • 101
1 vote
0 answers
287 views

Nginx tries the wrong file when http_cookie matches logged_in

I'm serving my WordPress on a subfolder of a node.js app. My WordPress URL looks like https://domain.com/blog Everything runs well except when I try to set the fast_cgi_cache. Here is my configuration:...
Aysennoussi's user avatar
0 votes
1 answer
342 views

Why can't I connect to the wordpress install page with Nginx?

I'm a newbie of WordPress. My environment is Ubuntu 18 + Nginx + PHP 7. Following the tutorial(https://www.myfreax.com/how-to-install-wordpress-with-nginx-on-ubuntu-18-04/), the wordpress directory ...
DennisLi's user avatar
  • 101
0 votes
1 answer
462 views

Possible to reverse proxy WP multisite to a separate server with NGINX?

Recently migrated a multisite network, only to discover some of the sites are using a theme that's incompatible with the server's PHP version. While I work on a longterm fix, what I'd like to is use ...
user3183717's user avatar
1 vote
2 answers
476 views

Site resolves to www in Firefox and without in Chrome

I am guessing this is being caused by my nginx configuration, however I can not quite figure out how to troubleshoot in order to resolve. I am using Ubuntu 20.04 with a LEMP stack to host a wordpress ...
Gee_k's user avatar
  • 11
1 vote
2 answers
512 views

how to get a more significant error response from ServerSideRender

I'm having a heck of a time with the ServerSideRender component for a Gutenberg block I'm developing. I'm seeing this error in the (non-)rendered block: Error loading block: The response is not a ...
JohnRDOrazio's user avatar

1
2 3 4 5 6