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
1 answer
106 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
23 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
8 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
24 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
22 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
68 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
235 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
1 vote
1 answer
247 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
  • 109
0 votes
0 answers
182 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
0 votes
0 answers
78 views

Serve static files via a subdomain on a wordpress

I want to serve the wp-content/uploads directory using a subdomain. I launched a wordpress instance on aws lightsail(with bitnami) I want a configuration on how to do that. Something similar to the ...
user231477's user avatar
0 votes
0 answers
50 views

How can I improve and optimise my wordpress web server for better performance in 2023

How can I better optimise my Ubuntu 22.04.2 LTS wordpress website web server for better performance Well what I want to know is any good wordpress tricks that actually work well specially when it ...
Crypto Coupons's user avatar
0 votes
0 answers
63 views

wordpress multisite is broken in nginx but working in apache

we have a java script site running in xyz.com domain. And wordpress multisite is configured with the same domain as alias xyz.com/blogwordpress. Domain name is configured with apache2 and everting ...
user15236910's user avatar
1 vote
0 answers
88 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
114 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
30 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
79 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
247 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
31 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
297 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
413 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
30 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
1k 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
80 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
182 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 Krawczyk's user avatar
0 votes
1 answer
347 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
83 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
767 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
150 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
492 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
157 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
780 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
843 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
45 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
964 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
182 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
199 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
450 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
96 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
233 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
207 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
437 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
270 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
467 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
2 votes
0 answers
136 views

Create subdomain masking for each user in WordPress

I am trying to add subdomain URL for each user. For eg: if my site has a user name as John then the URL which he will be sharing with his users is http://john.example.com and this should open the ...
Swapnil Ghone's user avatar
0 votes
0 answers
124 views

Elementor contact form doesn’t work: “Oops! I cannot send this email!”

My contact page has the default Elementor contact form, but it doesn’t work. I really don’t know where could be the problem. Could you help me? Edit: I fixed by installing sendmail (needed by ...
Mnkisd's user avatar
  • 101
0 votes
1 answer
1k views

/blog/wp-json/ nginx return 404

my main domain is example.com i have implemented MEAN project in main domain, now i want example.com/blog for wordpress setup. i have done following configuartion in nginx config file server { ...
Amit Jagtap's user avatar
1 vote
1 answer
175 views

Wordpress post-name permalink redirects to site.com

When permalink is set to plain everything works fine. but when I change permalink to post name only Wordpress home page(dev.site.com/blog) works fine, but for other pages(e.g., dev.site.com/blog/first-...
Mr.Bhat's user avatar
  • 111

1
2 3 4 5 6