All Questions
565
questions
0
votes
0
answers
33
views
NGINX Multi Site * SSL Subdomains: Configuration file error : [emerg] duplicate listen options for 0.0.0.0:443
Currently in process of installing SSL on an NGINX, Ubuntu 22.04 Vultr server. I have two existing domains on the server. Setting up a wildcard SSL for an Wordpress Multi Site (Subdomain base) and am ...
0
votes
1
answer
86
views
Can I point a subdirectory URL to a different IP/Server? [closed]
I have a React website at "domain.com," which is hosted on an AWS nginx server. The website frontend was developed using React, and the backend was developed using Python and Django. I also ...
0
votes
2
answers
95
views
Improve nginx server block non-www to www
Our current "non-www to www" code at nginx.conf is below. While it seemed to work, now we noticed it's causing errors.
Please don't mark as duplicated. Similar cases are old and seems not to ...
0
votes
2
answers
111
views
Why cannot Nginx access files in the `wp-includes` directory?
I have a WordPress website that I installed on an Ubuntu server. I setup Nginx to listen for requests and to push them to php-fpm. I am using the pool feature so that the WordPress site can have all ...
0
votes
1
answer
46
views
Special redirect NGINX Wordpress removing last segment
I need some guidance on how to redirect this the proper way...
I have a site on nginx and a bunch of malformed URL's (crawled by Search Console) that I need to redirect with 301.
My CMS is Wordpress ...
0
votes
0
answers
40
views
Configure Nginx to serve Wordpress site and Angular app with same domain
I'm newbie with Nginx and server configurations.
I'm trying to deploy a Wordpress web and Angular 2 webapp (each project in a different folder/path) using the same domain and configured by Nginx. For ...
-1
votes
1
answer
52
views
Nginx configuration for wordpress site in folder
I want to setup a wordpress site in a folder on my current site.
I have a main app running, but I want to route all the requests that start with /folder to that wordpress site, that it's located in a ...
0
votes
1
answer
46
views
Proxying a WordPress page from another subdomain
I have an Nginx installed on an Ubuntu server, and I have installed WordPress on blog.example.com.
On the WordPress I created a page for gallery which is accessible from blog.example.com/gallery.
Now ...
0
votes
0
answers
29
views
Nginx wordpress proxy pass
after hours of trying and google i thought my last chance to get it solved is here.
i have the following problem:
A Wordpress page is running under myperfectshop.com
The shop just have one product at ...
1
vote
2
answers
205
views
Issue with setting up nginx for wordpress
I have a following wordpress nginx configuration in my /etc/nginx/sites-available/wordpress:
index index.html index.htm index.nginx-debian.html;
location / {
proxy_pass http://nextjs;
...
0
votes
1
answer
295
views
Source site static resources are not loaded correctly after setting up a reverse proxy with Nginx Proxy Manager
I created the Nginx Proxy Manager container and the Wordpress container using Docker. But when I set up the reverse proxy for the Wordpress container as usual (not Wordpress), I realized that Nginx is ...
0
votes
0
answers
413
views
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes)
I have exported a WordPress XML file which contain all pages, posts, WooCommerce products, orders etc. File size is 100MB. Now I am trying to import it on another machine but getting error. It even ...
0
votes
1
answer
84
views
Nginx rewrite rule not working for Wordpress website
I have wordpress webiste with nginx, Want to rewrite
RewriteEngine On # Turn on the rewriting engine
RewriteBase /sp-services/web-services/
RewriteRule ^v1/(.)/(.)$ $1/$2.php [NC,L] into nginx, but ...
0
votes
2
answers
144
views
How to open Wordpress by server IP addres instead domain?
I'm trying to install Wordpress via Nginx.
I want to open Wordpress by accessing public IP address.
I extracted Wordpress to ~/wordpress
ls ~/wordpress/
index.php readme.html wp-admin ...
1
vote
1
answer
35
views
Difference between 3 similar Nginx Location Directives provided in three separate tutorials of the same topic
I have set up an Ubuntu 20.04 LEMP server with Wordpress, and am used some tutorials to help me configure Nginx. As of now, I have things functioning flawlessly, but in multiple Ubuntu "LEMP ...
0
votes
1
answer
137
views
Multiple issues with Nginx configuration
I am quite new to Nginx and I just can't make it work. I have a web app hosted in Azure. It's a WordPress website.
Here is the Nginx file:
server {
#proxy_cache cache;
#proxy_cache_valid ...
0
votes
0
answers
153
views
Images get a 404 error when using Nginx's reverse proxy
I'm using Nginx's reverse proxy to route blog.example.com to example.com/blog/.
Most things work fine, but when I click on an image in example.com/blog, I get a 404 error.
I know that this is caused ...
0
votes
0
answers
162
views
Reverse Proxy Issue: WordPress Admin Redirects and Incorrect Static Content Serving
I have a configuration issue with my website setup involving a reverse proxy and WordPress. Currently, I have two domains: example.com hosted on server A and example.net hosted on server B. To display ...
0
votes
1
answer
849
views
reverse proxy for subdirectory on another server with wordpress for blog
I have a website and it's working now as
https://example.com
Now I want to load my blog as a subdirectory but on another server, it should be loaded as
https://example.com/blog
I am using nginx ...
0
votes
0
answers
62
views
Nginx + Wordpress caching - Configuration file sequencing
I'm new to Nginx and Wordpress as a combo. I would love a sanity check on this server side caching code.
Specifically
Is the sequencing correct - esp. the location statements?
Is there anything ...
-1
votes
1
answer
217
views
Cloudflare DNS keeps redirecting to a wrong site on the same server
I have a strange DNS setting glitch here.
We are rebuilding and migrating two old sites to a new VPS server. They coexist now as below. We use Cloudflare DNS (NO reverse proxy).
Site A: aaa.example....
0
votes
0
answers
51
views
secured WordPress login with nginx htpasswd prevents from woocommerce logout
i've protected my /wp-admin/ and wp-login.php with htpasswd in nginx.
this is the .conf file
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name www.url;
access_log ...
0
votes
0
answers
114
views
Nginx proxy pass issue
I have two site the one is main.domain.com, two is two.domain2.com, domain2 is wordpress blog server in diffrent server that I want use main.domain.com/blog nginx proxy pass to and click the blog page ...
0
votes
1
answer
96
views
Can't upload bigger file using Wordpress Docker and Nginx with configured Certbot
I configured Wordpress on Docker Image:
version: '2'
services:
db:
image: 'mysql/mysql-server:8.0'
volumes:
- 'db_data:/var/lib/mysql'
restart: always
environment:
...
0
votes
0
answers
81
views
How can I troubleshoot the issue with the front page not working while other pages are working properly?
root@ubuntu-s-1vcpu-1gb-amd-sfo3-01:/var/www/html# curl -I http://137.184.81.151/hello-world/
HTTP/1.1 200 OK
Server: nginx/1.18.0 (Ubuntu)
Date: Sat, 11 Feb 2023 20:19:32 GMT
Content-Type: text/html; ...
0
votes
0
answers
232
views
Serving a wordpress site in a subfolder proxied on different server
I have a landing page and a wordpress site in a subfolder
example.com -> landing page
example.com/blog -> wordpress
I want to serve the wordpress site on a different server.
I created a server( ...
1
vote
1
answer
1k
views
Nginx - No last-modified or Etag response header on HTML
I am facing a rather odd issue with my web server. The server is configured with Ubuntu 20.04, Nginx v1.22.1, PHP 8.0, and MariaDB to host my WordPress website.
The issue is, the server is not sending ...
0
votes
0
answers
235
views
Wordpress keeps redirecting to wp-login.php after nginx-ingress update
I have a WordPress site that is working on an older version of Kubernetes. I updated the Kubernetes cluster and the nginx-ingress controller. After the update the main page works, but when we ...
1
vote
0
answers
536
views
executed php-fpm files get CPU to 100% usage
Im running a e-commerce/LMS wordpress site with a 2 Core cpu ,4G Ram and 4Gswap ,100G disk space server with CentOS web admin panel.
today after getting serveral http 502 report from clients suddeny ...
1
vote
0
answers
216
views
Wordpress NGINX + FastCGI Cache, Err_too_many_requests
Have a weird situation with my Wordpress set up running NGINX and PHP8.0 with FastCGI Cache.
The site will end up in a too many requests loop, however, it doesn't happen immediately and will come out ...
0
votes
0
answers
131
views
Why does this rule give me 404 on sitemap.xml?
I use seo framework to generate sitemap.xml. Adding below rule in my nginx confix throws 404 error. How can I fix this?
location ~* \.(xml|xsl)$ {
add_header Cache-Control “no-cache, no-store, ...
0
votes
2
answers
594
views
Cannot read wordpress PHP files in NGINX - HTTP error 500
I have uploaded Wordpress files to /var/www/html/mysite.com, given recursive permissions 755 and recursively owned by www-data:www:data
I use the PHP-FPM service running with NGINX as web server on ...
1
vote
0
answers
107
views
NGINX & WordPress installation issue with existing ruTorrent install
I have a dedicated server running ruTorrent using arakasi72's ruTorrent installation script:
https://github.com/arakasi72/rtinst
I wanted to install a WordPress site on this same server, but I'm ...
0
votes
1
answer
505
views
Getting ‘404 Not Found Nginx’ while trying to visit WordPress post
I have a NodeJS app deployed in the root of my domain (example.com) and I'm struggling for the last 7 days to add a blog in a subdirectory (example.com/blog). Even though I have set it up but I think ...
2
votes
1
answer
460
views
Wordpress served by nginx under non-root url
I'm trying to move my server from apache to the Nginx starting with a blog. The blog is only a part of the website and should be available under /blog/admin (I'm using WordPress only as a backend).
In ...
0
votes
0
answers
50
views
nginx proxy_pass for wordpress
This is my weblog:
https://old-domain.com/blog
And I want to use proxy_pass to load my blog on another domain (https://new-domain.com/blog):
// config for new-domain.com
location /blog {
...
0
votes
1
answer
318
views
404 for wp-content when wordpress is running on /blog in nginx
I have setup a wordpress site on ubuntu 20.04 with nginx.
on / there is a SSR application and the blog is running on /blog.
But WP site is not able to access any file from wp-content.
Sample conf file ...
0
votes
1
answer
2k
views
WordPress with Nginx + PHP-FPM sometimes slow where slowlog pointing to wp-config.php (PHP 8.1)
I have a recent WordPress 6 installation with MariaDB and PHP 8 FPM running on Docker. Sometimes, request on the frontend have a slow response time on the main HTML document. In this example, one of ...
0
votes
1
answer
1k
views
NGINX proxy pass for a WordPress docker container
A WordPress container is running and it's successfully reachable via
http://localhost:8000
The requirement is WordPress site should be
accessible via http://localhost/site-a
NGINX proxy is available
...
0
votes
1
answer
890
views
Nginx Wordpress Subdir + wp admin
I know there are other similar to this thread, but I already tried for days and can not get this through, currently, with the below nginx configuration on Ubuntu 18
server {
listen 80;
...
0
votes
0
answers
2k
views
Fix 502 Bad Gateway
I have Nginx running on Ubuntu server (digital ocean), I've setup LEMP stack for hosting the Wordpress website. I'm getting 501 Bad Gateway when I try to reach website using the IP address.
I see this ...
1
vote
1
answer
24
views
nginx one site redirects to another
I have couple domains on my server. There is wordpress multisite and vanilla php site. All WP sites are working correctly but if vanilla php site redirects to main WP site. Here is config of main WP ...
1
vote
1
answer
2k
views
Unable to access Wordpress Dashboard with nginx reverse proxy
I am facing a bit of an issue when setting up WordPress with Nginx as reverse proxy to Apache backend.
All the pages are loading, but i get an error when i try to login to wp-admin dashboard.
The ...
1
vote
0
answers
336
views
Wordpress on Ubuntu Server behind Synology Reverse Proxy (HTTP-HTTS) settings
I am currently setting up my website and need some help while setting the access as it should be.
Here the facts:
I have a static and public IPv4 address
registered TLD (gear-trade.at)
DNS entry ...
1
vote
0
answers
1k
views
wordpress page, post url on nginx inside docker container automatically redirect to root domain with 301 status
I have successfully setup a wordpress site running on a dockerized nginx. When the wordpress site is up and running, I can go to the home page: https://my_domain.com or any links or at after wp-admin/....
0
votes
1
answer
931
views
wordpress post, page url redirect to local proxy_pass docker container hostname on nginx
I have successfully setup a wordpress site running on a dockerized nginx. When the wordpress site is up and running, I can go to the home page: https://my_domain.com or any links or at wp-admin/...(...
0
votes
0
answers
916
views
wordpress nginx in docker lost css styles, js because embed file hostname in html not updated
We are trying to install wordpress on nginx on docker. The domain pointing to it is ssl enabled and when accessing the website, html is loading well but css, js, images are all lost.
The reason is ...
0
votes
0
answers
41
views
How to redirect in Nginx hidding the redirect path
I have the next URL:
https://my-web.com/path1 and I would like to redirect the call to https://my-web/path2 but I would like that in the browser tab show's /path1. Is this possible?
I'm using a ...
0
votes
1
answer
961
views
configure NGINX: for Wordpress Headless with nextjs
I want to make a WordPress Headless (using wpgraphql API at /graphql uri), where frontend will be next.js. And I want both the front-end (Next.js) and the back-end (WordPress. admin, content, and API) ...
2
votes
1
answer
1k
views
Rate Limiting Only the Home Page With NGINX limit_req_zone
I have a Wordpress multisite installation and I have some bots hammering the home pages. I would like to set a rate limit only on the home page(s) of the site(s) but leave the other pages unlimited.
...