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
0answers
9 views

How to force W3TC Page Cache using Disk Enhanced to cache latest posts/custom rules [closed]

Have been using W3TC since 6 years now on my WordPress blog. Never faced an issue apart from this one below: I had set Page Cache to Disk Enhanced and it was working great until one day my website ...
0
votes
1answer
14 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
28 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
29 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
50 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
39 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
13 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
19 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
36 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
17 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
21 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
48 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
87 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
25 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
18 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
19 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
40 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
33 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
196 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
75 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
70 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
38 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 ...
1
vote
0answers
270 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
34 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
14 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
31 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
425 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
409 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
17 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
16 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
22 views

How to disable all blog pages?

i have a corporative website. i want to disable all pages e.g. author/tags/search/taxonomies EVERYTHING they shouldnt be accessible to anyone from the web except post and page types how should i do ...
0
votes
0answers
80 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
0answers
42 views

EasyEngine v4 Nginx Reverse Proxy: Please give simple working example

The EasyEngine v4 gives me hard time with reverse proxy. Can you give a simple reverse proxy example: Lets say the domain is test.com and I want the sub-folder wiki will proxy to wikipedia.com (...
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
91 views

nginx config for installing wordpress in subdirectory

How can WordPress be made to live at /blog, while another application handles the root directory /, using nginx? Below is my nginx config but i keep getting 404 error... Any solution that works?? ...
0
votes
0answers
17 views

Can't redirect a 404 page using plugins

I changed a permalink on my Wordpress site which was previously set as index.php/%postname%/ to /%postname%/ Since my site pages are already indexed, people get 404 pages now. I tried redirecting ...
0
votes
0answers
410 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
0answers
112 views

Nginx with worpdress wp-admin not working

I moved the WordPress site to Nginx from Apache. Site loads fine with all its content. The only issue I have is that when I'm trying to visit site/wp-admin won't load the admin area, instead it's ...
0
votes
0answers
69 views

.Html 404 redirection error with Nginx

I run into problems with my wordpress installation. I try to redirect some older pages with .html ending to the root, but my nginx keeps to show up an 404 error. I guess I need to configure ...
0
votes
1answer
54 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
165 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
992 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
77 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
122 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
513 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
4k 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
136 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 ...
0
votes
0answers
252 views

WordPress sub-directory on other server running on nginx?

I have main site running on node on instance and I used sub-directory to run WordPress on another instance nginx config location /eg-en/blog { proxy_pass http://{{Instance-Ip}}; } The ...

1
2 3 4 5