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
17 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 ...
0 votes
0 answers
20 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 ...
1 vote
0 answers
48 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; ...
  • 11
0 votes
0 answers
90 views

Wordpress stuck at Step 1 of setup behind nginx reverse proxy

I am currently trying to setup Wordpress behind a Nginx reverse proxy that uses SSL in a dockerized fashion. My Nginx configuration looks like this: server{ listen 443 ssl http2; server_name my-domain....
0 votes
0 answers
23 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 ...
  • 1
1 vote
0 answers
20 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 ...
0 votes
0 answers
50 views

Infinite Loop in Wordpress Installation

I've installed NginX with PHP 8.1, MadriaDB and Wordpress on Debian 10. I can reach the wordpress installation page. When i insert the details for the database and username it goes forward, but when i ...
1 vote
0 answers
32 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 ...
  • 109
1 vote
1 answer
181 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 ...
  • 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 ...
0 votes
0 answers
79 views

Last-Modified header is removed from server response!

i attached this code to all these hooks (init, template_redirect, wp_footer) to add the Last-Modified header to the server response, i also add some other header for testing. results: the TEST-TEST ...
0 votes
2 answers
120 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 ...
0 votes
1 answer
219 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 ...
  • 1
0 votes
0 answers
23 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 ...
0 votes
1 answer
803 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 ...
0 votes
0 answers
30 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 ...
0 votes
1 answer
68 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 &...
  • 11
2 votes
0 answers
110 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 ...
0 votes
1 answer
195 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; ...
  • 11
2 votes
1 answer
55 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-...
  • 31
-1 votes
1 answer
520 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 ...
  • 1
1 vote
1 answer
66 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....
1 vote
0 answers
289 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 ...
  • 11
1 vote
0 answers
140 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 ...
1 vote
0 answers
691 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 ...
  • 347
1 vote
0 answers
650 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. ...
  • 111
0 votes
1 answer
34 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 ...
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 ...
1 vote
1 answer
763 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 ...
-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 ...
0 votes
0 answers
128 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: ...
0 votes
0 answers
173 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 ...
1 vote
1 answer
387 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 ...
  • 29
0 votes
1 answer
66 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
  • 101
1 vote
0 answers
145 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:...
0 votes
1 answer
99 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 ...
  • 101
0 votes
1 answer
388 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 ...
1 vote
2 answers
83 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 ...
  • 11
1 vote
2 answers
335 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 ...
2 votes
0 answers
117 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 ...
0 votes
0 answers
97 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 ...
  • 101
0 votes
1 answer
797 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 { ...
1 vote
1 answer
165 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-...
  • 111
1 vote
1 answer
5k views

Plugins fail to update: Download failed. A valid URL was not provided

We recently moved a client's website from DigitalOcean $5 droplet LEMP stack to a friend's private server to minimise expenses. It supposed to fly faster but instead of started dropping off some weird ...
  • 11
0 votes
2 answers
600 views

why is my wordpress not loading any images?

I have installed wordpress on google compute engine.. Running nginx, wordpress and https.. The site doesn't load the admin panel or the images.. throws up 404 error on chrome inspection HTTP404: ...
0 votes
0 answers
382 views

Serve WordPress site as root domain with WordPress files in subdirectory in nginx server

I'm trying to set up my WordPress install like as outlined in this article https://codex.wordpress.org/Installing_WordPress_With_Clean_Subversion_Repositories, with my project directory like so: /...
1 vote
2 answers
2k views

Wordpress Pages Redirecting to Root with Wordpress Multisite (Sub-Directory)

I am working with Wordpress Multisite (with sub-directory structure). Everything works fine instead of Wordpress pages. When I publish a page and I try to visit it, it redirects to the main multisite. ...
  • 63
0 votes
0 answers
535 views

301 Redirect Loop www to non-www - Nginx + Apache2

thanks for any help. I am not a server guy but I am dealing with a server at the moment. I have a site that is in a redirect loop from www to non-www. I am using a DigitalOcean Droplet with Ubuntu and ...
0 votes
0 answers
255 views

Wordpress + Nginx (Lightsail) problem with ajax

I have installed Wordpress on Nginx. I followed the bitnami guide on how to do this and I also made my own amendments. I am getting the following error when activating a plugin: Installation failed: ...
  • 101
2 votes
0 answers
1k views

wp-admin Redirects to Docker Container Name

RESOLVED The fix was to add proxy_set_header Host $host; to my nginx file in the location block. ___________ When I try to reach /wp-admin I am redirected to the container's name instead of my site ...

1
2 3 4 5