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
1answer
25 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
0answers
11 views

How to Disable sameorigin from a bitnami + WordPress + NGINX stack

I need to disable SAMEORIGIN x-frame feature, https://take.ms/ZDL042 how can I achieve this? I read that if I add Header always unset X-Frame-Options to my .htaccess it would prevent the header, but i ...
0
votes
0answers
20 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
0answers
27 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
1answer
19 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 ...
0
votes
1answer
19 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
1
vote
0answers
17 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
0answers
50 views

Nginx reverse proxy on Wordpress , Login not working

I have a Wordpress site on Cpanel with litespeed on domain http://sub.domain1.com. I wanted to bring this behind a reverse proxy on https://domain2.com/sub/. here is my configuration: nginx: ...
0
votes
1answer
19 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 ...
0
votes
1answer
40 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
2answers
31 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 ...
0
votes
2answers
78 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
0answers
44 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
0answers
14 views

how to write a function to show lists of running processes or while loop functions in php

Please i have a while loop function that am using to insert data into my database periodically, for some reasons i found out that while loop is more easy to use than cronjob, while loop runs without ...
0
votes
0answers
31 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 ...
0
votes
0answers
100 views

WordPress subdirectory pages returning 404, home page returning fine — NGINX

I'm trying to set up a temporary URL for my WordPress site to present before switching it over to the live domain. Also, I have WordPress installed in a subdirectory, so my folder structure looks ...
0
votes
0answers
28 views

wp-cli import throws ERROR 1045 (28000) password error after changing DB password; wordpress and mysql work with new password

I'm Running Wordpress on a Bitnami VM. I updated the database user's password for my wordpress site. Everything except wp-cli works fine with that new password. Relevant part of wp-config.php looks ...
0
votes
0answers
42 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
1answer
51 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-...
0
votes
0answers
239 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 ...
0
votes
0answers
30 views

WordPress nginx reverse proxy + WPML

We have a setup where we have a https://blog.example.com nginx server with WordPress installed and we want it to make it work via https://www.example.com/{language}/blog. Note that we also use WPML ...
0
votes
0answers
43 views

NGINX Config for Multi-site with subdirectory with unique domain for each subdirectory

I am new to both NGINX and wordpress, So I used this guide to set up my wordpress install. But that guide for subdomain install and I want it to use sub directory multisite. I have my main wordpress ...
0
votes
0answers
25 views

Custom slug .php url of wordpress post on Nginx not working, but other URLs are working properly

Wordpress dirname1 installation as http://localhost/dirname1/ Example URL http://localhost/dirname1/mypost.php is working By using the setting bellow; location ~ \.php$ { try_files $uri $uri/ ...
0
votes
2answers
45 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
0answers
56 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
2answers
415 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. ...
0
votes
0answers
134 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
0answers
115 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: ...
0
votes
0answers
45 views

ERR_TOO_MANY_REDIRECTS Error on multisite Wordpress on Ningx

I am using multisite Wordpress on Nginx and there is too many redirect issue on all WordPress wp-admin pages excluding the main site wp-admin page. Ningx config is below: upstream php-handler-https ...
2
votes
0answers
420 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 ...
0
votes
1answer
56 views

How to install WordPress on sub directory in ubuntu 16.4 in same vhost with AngularJS

I have vhost for the main domain www.example.com. and I want to install WordPress in a subdirectory called news (www.example.com/news/). This is the vhost configuration file. server { ...
1
vote
1answer
16 views

Nginx mamp pro5 migration home page works all other do not

Home page works all other pages do not, receive 404. figured this out from other post outside of stack. put this in the try files under the Nginx tab. $uri $uri/ /index.php?q=$uri&$args;
1
vote
0answers
32 views

Showing another posts on Archive custom post type page

I am facing very strange problem. Speaker is a custom post type and taxonomy. Target is showing all speakers which taxonomy is speaker as well. When I am loading /speakers page, it is showing ...
0
votes
0answers
26 views

WP permalink working, but why content doesn't display

I'm running a wp-blog on LEMP stack, I'm setting permalink fro WP Admin panel to say example.local/blog/%postname% it shows full post name in the address bar, when I click any post, but it doesn't ...
1
vote
1answer
669 views

ERR_TOO_MANY_REDIRECTS status 302, how to configure NGINX locations to work with AWS ALB?

How to configure NGINX conf location to work with AWS ALB? I have a docker-compose that simulates a staging environment that is deployed to AWS ECS, that works fine, status 200 OK: /review-staging ...
1
vote
2answers
775 views

NGINX serve Wordpress from sub-path fails with 404, how to fix?

I'd like host review branches for staging, to test and get feedback before publishing to production. I tried to follow some documentation provided online such as the NGINX recipes ( https://www.nginx....
-1
votes
1answer
19 views

Access denied unless I add trailing /

I am trying to add wordpress as a subdirectory into rails, If I try to access the blog root page without trailing / or adding /index.php I get access denied. https://example.com/blog 403 https://...
1
vote
0answers
22 views

I get redirected too many times only in wp-admin?

I am trying to run wordpress in a subdirectory blog in my rails app, I used this nginx config as: server { listen 80; server_name _; passenger_ruby /usr/local/bin/ruby; passenger_enabled ...
0
votes
0answers
95 views

How to Install WP to Subdomain but Serve on Subdirectory?

I want to install Wordpress to a subdomain (sub.example.com) but want to serve it on the subfolder (example.com/sub). I want to do this because the root domain (example.com) is a different web app so ...
0
votes
1answer
32 views

Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?

So, let me clear everything at the start: I'm not on shared hosting. PHP upload limit is already set for 700mb. PHP memory limit is set a 512mb. Nginx, PHP-FPM and WordPress' logs tells me nothing ...
0
votes
0answers
520 views

Multisite wp-admin redirecting to main wp-admin using NGINX

When I try to go to the wp-admin of any multi site, it redirects to the main wp-admin. So if I go to example.com/multi-site-slug/wp-admin/ it redirects to example.com/wp-admin/ NGINX is being used ...
0
votes
1answer
70 views

nginx-fastcgi caching causes admin bar to dissapear

I have an issue with wordpress admin bar and nginx-fastcgi configuration. When I enable the fastcgi caching then the admin bar dissapear on some pages and in addition, there are few other issues with ...
0
votes
0answers
205 views

Wordpress/NGINX not respecting the category URL for new posts

Only recently noticed this issue with my site configurations, it seems as though on my NGINX Wordpress sites the category base of a URL is not being respected and instead being redirected to another ...
1
vote
1answer
1k views

Cannot update WordPress to 5.2

I am using CentOS 7 (CentOS Linux release 7.6.1810 (Core)), NGINX 1.15.12, WordPress 5.1 Error Update WordPress Downloading update from https://downloads.wordpress.org/release/wordpress-5.2-no-...
0
votes
1answer
88 views

Plugin not working & permalink erorr after upgrade to php 7x on Nginx

This plugin code was working fine on apache server with php5 but now i am installing on nginx with php7 & wordpress 5.x, its having permalink error (showing 404 error). It's working with wordpress ...
0
votes
1answer
16 views

Pagespeed Error in Nginx

I am currently experiencing a problem in mod_pagespeed and pagespeed. The image/file does not load due to an additional array after the file name . WP-sitename/wp-content/filename.png.pagespeed.ce....
1
vote
1answer
169 views

nginx.conf appeared in all WordPress installations on folder

I run a couple of WordPress sites on a cloud server that I own. All of these sites run on the same Apache installation. Recently, I've found that in all of my WordPress webroot folders, an empty file ...
1
vote
1answer
610 views

Nginx Wildcard SSL with Wordpress Multisite Subdomains

I have a wildcard certificate that secures *.example.com and I need to strip out the canonical www for all requests made for subdomains, eg: www.subdomain1.example.com => subdomain1.example.com I ...
1
vote
1answer
5k views

Wordpress redirect loop on nginx + apache reverse proxy

I am trying to setup a fresh Wordpress installation on an nginx + apache reverse proxy configuration. My installation process was as follows: Installed nginx and apache servers Configured nginx (conf ...
0
votes
1answer
180 views

NGINX / Wordpress Site - Increasing php.ini max_execution_time = 600 doesn't work

I'm testing my PHP Limit on WordPress site and keep getting a 504 Gateway Time-out. I'm changing the max_execution_time in php.ini to reflect the value of 600. Followed by restart when I test the ...

1
2 3 4 5