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
15 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
13 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 ...
0
votes
0answers
30 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
11 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
12 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
29 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
24 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
37 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
35 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
12 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
13 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
19 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
58 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
18 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
39 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
168 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
69 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
29 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
0answers
33 views

Nginx Reverse Proxy to Apache, wp-content permissions issue

I'm using Centos Web Panel with Nginx reverse proxy to apache to run my WP installs. I've installed Rocket Nginx for my config and it works great for the most part, however, i'm not able to upload ...
0
votes
1answer
39 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
78 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 ...
0
votes
0answers
31 views

The first load of the site is VERY SLOW (not related to cache)

Before I continue, I just want to mention that I search everywhere for solution and tried many many configurations and couldn't resolve the issue. I installed wordpress (on 3 different servers to ...
0
votes
0answers
38 views

WordPress problem with nginx / Visual Composer

I have wordpress site running on apache and had to transfer it to nginx server. I made pretty standard setup following instructions on nginx site (see my nginx config on the bottom). All works fine ...
1
vote
1answer
576 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
66 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 ...
1
vote
0answers
189 views

reverse proxy nginx php-fpm apache settings for wordpress

I verified my stack works I can get a phpinfo() dump in a test file and I can get static files to load like css files. I can not however get wordpress to work. Here's the issue: Wordpress redirects ...
0
votes
0answers
16 views

Migrate wordpress from nginx to static

I currently have a wordpress site using plain links for each post (i.e. /?p=123) on top of nginx. I want to migrate this site to a static only site, but not mess up other blog links to mine and search ...
0
votes
0answers
35 views

WordPress Multisite query parameters

Am currently having an issue with the redirection of query parameters on a multisite. I have embedded an Angular App inside an iframe and have a script to assign the query parameters of the app to the ...
0
votes
1answer
15 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
0answers
26 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
304 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 ...
0
votes
1answer
2k 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
62 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
17 views

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

Need some assitance. 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 ...
0
votes
0answers
271 views

Nginx reverse proxy to separate Wordpress server

I have a reverse proxy set up on nginx, which is working fine to redirect traffic to one html website internally. I decided to look into hosting my own Wordpress server for my blog. I have a VM ...
0
votes
0answers
168 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 ...
0
votes
1answer
21 views

permalinks constantly needs re-saving

I have my WP running on an Nginx environment, with Wordfence, WP Rocket, and Search&Filter plugins installed (along with some others). Permalinks are working just fine, except /search permalink ...
0
votes
1answer
1k views

Wordpress multisite subdirectory on nginx behind reverse proxy

I can't seem to make wordpress multisite subdirectories work behind my reverse proxy. Locally (from lan ip addresses) all works, I can access the main domain, sub-directories and all dashboards. The ...
1
vote
1answer
705 views

Nginx 404, 500 errors and Wordpress

I have defined in my server block: server { error_page 401 403 404 /custom_404.html; location = /custom_404.html { root /var/www/html; internal; } ...
1
vote
1answer
186 views

Difference between these two nginx try_files statements for WordPress?

What is the difference between these two try_files statements and which do you use and why? I've seen both used in tutorials online but cannot find an explanation of the differences or benefits of one ...
0
votes
1answer
38 views

Restrict access if logged out except for homepage

I want to retrict access to my whole wordpress except for the homepage and one other page. The problem I found is that the other page is accessible but not the homepage. My wordpress installation is ...
1
vote
0answers
175 views

Wordpress Nginx Won't 404

I have nginx running wordpress. Weird thing is the site won't 404 and instead rewrites the URL to the homepage. Any URL with a .php in the string will 404 correctly but /foo will not 404. Any help ...
0
votes
1answer
25 views

wordpress.mydomian.com 404 Error

I have had configured LEMP stack on my vps and set my "A" records to the server's IP address(v4). mydomin.com works pretty well as well as portfolio.mydomian.com in which I used just CSS and JS and ...
1
vote
0answers
340 views

Wordpress file not found and 403 forbidden

It happened in the last day. I have a Centos server with many Wordpress sites. Some of them are working fine and some are giving 403 forbidden. And when trying to reach concrete files, I get 404 not ...
1
vote
1answer
139 views

how to combine wordpress htaccess on my root domain + php on subfolder

I apologise for a seemingly duplicate question, but none of the dozens I've looked at actually had the same problem. I have the following directory structure: /.htaccess /index.php /subfolder/....
0
votes
1answer
656 views

Infinite loop behind SSL proxy on non-standard port

I need to run a WordPress instance on a non-standard SSL port (8080). I'm using Docker containers and nginx as a reverse proxy. Here's the relevant portions of docker-compose.yml: wordpress: ...
0
votes
1answer
2k views

Installation failed: Could not create directory - CentOS 7

I have spent over 6 hours trying to do the 5-minute installation. I've searched Google over and over, and have yet to find anything that will actually fix my problem, so hopefully someone here can be ...
1
vote
1answer
126 views

show shop instead of 404 page for missing products

How should I show the shop instead of a 404 page when a product is missing? Currently users get a 404 page which makes them loose interest. I use woocommerce with wordpress on a server with nginx.