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
6 views

Wordpress subfolder error with Nginx

I installed a wordpress site(a) in root folder. davelee.com I installed another wordpress site(b) in subfolder /zh. davelee.com/zh The result is davelee.com (point to wordpress site(a) correct) ...
0
votes
0answers
8 views

Nginx redirection fix

I have installed one WordPress on root and one on subdirectory, am not using WordPress Multisite. Root and subdirectory sites working fine, but the problem is when I visit domian.com/sub-directory/...
0
votes
0answers
16 views

Multisite different domains certbot [closed]

Been going crazy trying to solve this. Basically I set up a lxc Lemp WordPress and did all the usual stuff to make it multisite. All went well I could access Domain1.com Domain2.com Domain so on and ...
-1
votes
1answer
34 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 ...
0
votes
0answers
13 views

413 Request Entity Too Large while there is no limit for upload

Hi I installed WordPress with Nginx and configured php.ini and nginx.conf to allow large media files to be uploaded. When attempting to upload a file under 10MB, the following error occurred: 413 ...
0
votes
0answers
24 views

Wordpress multisite wp-admin to many redirects

I have a WordPress blog set up with the multisite feature. there are two blogs setup on it with the following URLs # Main blog home https://example.com/blog/ # Main blog admin https://example.com/...
1
vote
1answer
17 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
0answers
41 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 ...
1
vote
0answers
28 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 ...
0
votes
0answers
180 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 ...
1
vote
0answers
108 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. ...
0
votes
1answer
18 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
0answers
19 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
1answer
211 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 ...
0
votes
0answers
20 views

how to get ride of 403 Forbidden nginx when submiting a comment?

I check the file and folder permission files set to 644 and folder set to 755, I deactivate all the plugins. I don't use control panel and don' t use apache server I don' t have .htaccess file ...
0
votes
2answers
999 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
39 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
45 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
85 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
230 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
32 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
22 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
410 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
37 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
161 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
34 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 ...
1
vote
2answers
186 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
74 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
60 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
1answer
186 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
128 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
1answer
2k 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
2answers
123 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
157 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
1k 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
359 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
189 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: ...
2
votes
0answers
948 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
126 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
21 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
33 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
27 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 ...
2
votes
1answer
1k 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
2k 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
36 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
23 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
112 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
34 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
719 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 ...
1
vote
1answer
189 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 ...

1
2 3 4 5