Questions tagged [nginx]

nginx (pronounced “engine-x”) is a lightweight, high-performance Web server/reverse proxy and e-mail (IMAP/POP3) proxy, licensed under a BSD-like license.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How are hyperlinks changed with nginx's proxy_pass?

When using nginx as a reverse proxy with proxy_pass, which also provides SSL, it appears that most upstream web servers don't even need to know that they are behind a reverse proxy, or that they are ...
2
votes
1answer
10 views

How to remove trailing slash after file extension using Nginx?

I have a Ghost site at example.com and www.example.com (internally, it's running on port 2368). At the same time, I have a file named form.pdf and I want to make it available (view in browser, not to ...
0
votes
0answers
19 views

Lots of worker_connections errors in nginx log

I have a website mounted on a VPS running with CloudFlare and I have been receiving many errors 520 (web server returns an unknown error) and 525 (SSL handshake failed). When reviewing the logs of my ...
0
votes
0answers
17 views

nginx - Google Analytics not showing what video .mp4 our users are viewing

Right now I am doing the following with nginx to implement a global rule set for Google Analytics to load on pages. /etc/nginx/conf.d/analytics.conf sub_filter '</head>' '<script type="text/...
1
vote
0answers
49 views

Nginx + haproxy (or sslh) does not work without trailing slash in URL

Have a setup like the following: haproxy listening on 443 -> nginx listening on 4545 I have also tried this with: sslh listening on 443 -> nginx listening on 4545 This is on ubuntu server For ...
0
votes
0answers
29 views

Subdomain for a different server

I have two servers running on different machines(say A and B), there is a middleware which i cannot access, which routes the traffic for website say xyz.com to machine A ip, now I want to route the ...
1
vote
0answers
14 views

Editing Nginx FastCGI Buffer Sizes Caused PHP Files to Download Via Browser

This question is sort of a post-mortem for an issue we had with a dv hosted by Media Temple. We had been experiencing random issues with our webserver (nginx running as reverse proxy on top of apache) ...
0
votes
0answers
12 views

Nginx / Apache Gateway Timeout

I am running a VPS Server under Apache with Nginx as reverse proxy, the main reason for the server is to host my Magento store. One module in Magento runs a command that imports data content, this ...
0
votes
1answer
25 views

High TTFB on NGINX for specific cached static resources

I am trying to optimize the following page: https://123tinki.com/nl-nl/c/geperste-hondenbrokken It is served by an NGINX reverse proxy. Static content like .js and .css is cached by the NGINX server. ...
2
votes
0answers
26 views

Server receiving hit from its own DigitalOcean public IP Address. Why is that and how to resolve this?

I have a MEAN Stack application deployed on a Digital Ocean Droplet and I am using Nginx as proxy server to handle the request and redirect to application's particular port. I wrote a short script in ...
3
votes
1answer
87 views

Nginx subdirectory wordpress wp-login redirects to 404 not found

server { location / { try_files $uri $uri/ @extensionless-php; } location /shop { try_files $uri $uri/ /shop/index.php?q=$uri&$args /shop/index.php?q=$uri&$args; ...
19
votes
1answer
4k views

Google .dev domain strangely redirects to https

I bought a .dev domain today @ domains.google. I also set up a dedicated nginx web server to which the .dev domain points (A records). Very strangely, I can't access my nginx welcome page using my ...
1
vote
1answer
53 views

How to rewrite specific pages using mod rewrite?

Assuming that my website homepage is https://example.com/test-website/. What I want to do is to add a query string at the end of the homepage URL and on all pages that start with https://example.com/...
2
votes
1answer
43 views

Gzip not working on nginx CentOS despite configuration to enable it

gzip shows as not enabled on my vps site and not even the tech support of my host, asmallorange, can figure out the cause of my problem. I've documented my exact set-up (nothing more than this was ...
0
votes
0answers
13 views

Nginx reverse proxy appends container port

We have a Kubernetes cluster where we expose an internal service with Nginx. Note that we are not using an ingress resource, but instead deploy an Nginx controller which is bound to an external IP ...
0
votes
1answer
40 views

Wordpress or Apache or Nginx matching partial URL to full URI

I have a weird issue where either Nginx or Apache (I can't tell which - but I'm 90% sure it's Apache - Nginx is reverse proxying) is matching a partial URL to a full, random URL. For example: https://...
0
votes
2answers
97 views

Configuring phpmyadmin on nginx server for laravel project

I have been trying to install phpmyadmin on the nginx server for laravel project, i have installed the phpmyadmin and setup the symlink to point /var/www/laravel/phpmyadmin. When i am trying to ...
2
votes
1answer
306 views

Nginx PHP setup: no input file specified

I inherited this web server with Nginx and I'm trying to get a new basic PHP site setup on here. I've followed instructions here. https://gist.github.com/GhazanfarMir/03bd1f1f770a3834d47274586d46ea62 ...
1
vote
2answers
20 views

Port forwarding multiple webservers, DG1670A/TW

I currently have one webserver with django/nginx connected to my Arris router DG1670A/TW (loaned by Spectrum IP provider). Perhaps the following info is superfluous for answering my question but here ...
1
vote
1answer
38 views

Prevent dynamically generated thumbnails from being crawled

I have been using Raven Tools, and I want these dynamically generated thumbnails to be not crawled or not be flagged as No TITLE images. I tried adding X-Robots-Tag "noindex, nofollow" on each image ...
0
votes
1answer
33 views

How to limit requests to certain domain in nginx?

I have a domain like sub.example.com. I'd like to allow GET access to certain paths uploads only through example.com Something like this: location ~ ^/uploads { allow example.com; ...
0
votes
1answer
38 views

Using nginx, I need my “bad user agent” map not to block my rss xml file

I use a map in nginx to block bad user agents (nutch and such). Some RSS readers have funny user agents, so I rather not run the map on that directory. Stripping down the nginx.conf file: server{ ...
1
vote
1answer
177 views

server reached pm.max_children setting (5)

Sorry, I am new and deleted my question thinking I had posted some info I should not have. I am posting the edited question once again: In our website, php5-fpm takes care of the php calls made by ...
1
vote
1answer
390 views

Nginx How to do 301 redirect from old domain to new domain except few URL

I am using nginx and trying to redirect all users from old domain to new domains., using this configuration. server { listen 80; server_name example.com; return 301 https://new-...
0
votes
1answer
14 views

How to redirect my-doamin.tdl/someurl to an index file in a different folder than webroot with nginx?

I've installd rocketchat on ubunru with nginx and like to redirect https://chat.myserver.tdl/privacy-policy to /a/folder/outside/webroot/index.html which redirection rule to apply in this usecase?
1
vote
1answer
60 views

Move a blog on a different server from a subdomain to a folder using Nginx

I have a node js application that runs on a VPS, and recently we added a blog to the site, we choose WordPress for the blog CMS, for avoiding configuring VPS for PHP and WP we moved blog to another ...
2
votes
0answers
41 views

Pagespeed not compressing images

Original image bart-had-a-groove.gif size is 753.43 KB. Processed image bart-had-a-groove.gif.pagespeed.ce.gB3ARqAHA8.gif size is still 753.43 KB. Mods used: pagespeed DisableRewriteOnNoTransform ...
-1
votes
1answer
55 views

Cannot find where my site is being cached! [closed]

So I have a bit of experience as a web master, but am at my whits end trying to find out what is caching my site. I cannot see any updates I make for the life of me. What I've tried: Clear ...
2
votes
1answer
674 views

Nginx fails to start HTTP/2 server due to error: unknown log format

In our hosting server from the Plesk cpanel, Nginx is configured to work as a reverse proxy engine. As I need to enable HTTP/2 that can speed up the loading time of Plesk and hosted websites. ...
2
votes
1answer
190 views

nginx: 301 redirect to non-www, SSL urls on default_server(s)

My goal is to have nginx primarily return a check for all requested URLs that start with http:// and/or contain //www., and 301 redirect them to the URL where //www. is replaced by // and http:// ...
1
vote
0answers
100 views

How to identify the source of 301 redirect loop on a WordPress site when server side caching plugin is enabled? [closed]

Our WordPress site has developed a 301 redirect loop error when web-server caching is enabled. With server caching disabled and caching plugin installed and active the issue doesn't occur, but the ...
1
vote
1answer
255 views

NGINX - Rewrite version number in JS file name to parameter for PHP

I had a rewrite from file.js?c=123 to file.js.php?c=123 but query params were downgrading my SEO evaluation. Actually, some proxy CDN do not cache query params. server { location ~ \startscript....
2
votes
1answer
386 views

NGINX - Rewrite .js.php file to .js

I have a dynamically created file start.js.php?c=21 and I would like to rewrite it's extension (to start.js, with query params). Is that possible? Is that a good method having such a rewrite? Is ...
0
votes
1answer
609 views

HTTPS + IP not redirecting to configured Domain Name and gives “Your connection is not private” [Nginx/Ubuntu]

I am using NGINX for 301 redirects on Ubuntu and reverse proxy for my Web Application and aim is to redirect traffic to non-www url such as https://mywebapplication.example. So with my current ...
3
votes
1answer
62 views

The effect of removing many URLs from google search console

I have been working as a web developer for several years, fixing issues, errors, and increasing page load speed etc. but I'm kinda new to SEO and Google Search Console. I have a client who is using ...
0
votes
1answer
89 views

Nginx url rewrites for changed shop categories

We recently moved from Magento 1 to 2, during the move we cleaned up our category urls to be more consistent. For instance we changed: /mens/mens-accessories/mens-wallets to : /mens/accessories/...
1
vote
0answers
93 views

nginx rewrite rule not applied (using contao cms)

I am trying to make a redirect for https://mypage.com/foo to https://mypage.com/bar while still keeping https://mypage.com/foo in the browser url. I have tried several combinations of different ...
1
vote
0answers
32 views

Identify a user agent consuming massive bandwidth downloading and uploading specific files but never sending a referrer

Blank HTTP_REFERER user agents are downloading and uploading a couple specific files to and from our server! This is causing HUGE bandwidth and CPU usage. We blocked blank referers on our CDN and ...
1
vote
0answers
535 views

Append basic authentication header NGINX to existing authentication header of upstream application

Assume the following setup: The NGINX reverse proxy is asking for basic authentication (which is a good habit when you expose things on the internet). Basic authentication uses the Authorization ...
2
votes
1answer
282 views

Wildcard certificate with certbot and DNS challenge

I am trying to obtain a wildcard certificate from Let's Encrypt for my web server. Since I am using a "local" hoster, certbot has no DNS authenticator plugin for it. So I have to use the manual ...
1
vote
0answers
30 views

HTML5 navigation and search engine optimization

I'm trying to use HTML5 navigation for AngularJS application. Everything works well, until SEO optimisation. For hashbang sub-urls (example.com/#!/siuburl) most of crawlers (google, facebook) which ...
2
votes
0answers
436 views

Non-www to www redirect not working in Firefox; Works in Chrome with nginx server

I've configured my website to have https with www scheme. I opted to redirect all the traffic from non-www to www, at the time of setting up LetsEncrypt SSL certificate and it works absolutely fine on ...
1
vote
1answer
35 views

Wordpres and Nginx redirection

I have a Wordpress site with nginx webserver i have a certain requirement. So Wordpress used to be main website, with a blog permalink which opens a page with all the blog list there,But now we have ...
1
vote
1answer
63 views

How to set up a reverse proxy on an SSL subdirectory from another server?

Setup is as follows: Our agency's client's domain is https://www.example.com (with SSL certificate from Amazon) They have NGINX severs, and manage their own hosting They want us to build a few simple ...
1
vote
0answers
31 views

Can dbadmin be secured under nginx by using a rewrite rule to a 404?

I'm trying to redirect all 404 pages to a custom handler with NGINX. I spent few hours to made the following rewrite in nginx but my question is: can it be a security breach? location ~ ^/(?!(dbadmin)...
1
vote
0answers
69 views

Is it good to crawl metadata via proxy for several bot engines?

I am new to AngularJS and due to some technical issues or maybe I'm just not aware of the right way, I am facing SEO related issues. So at the moment I plant a proxy server running behind the main ...
1
vote
0answers
38 views

Remove non-existent language directory from URLs under nginx

I've got URLs like this: /lang/path-to-file.ext and I want to remove the "lang" because it doesn't exist: /path-to-file.ext How do I do that on an nginx server?
4
votes
1answer
207 views

Preventing URLs ending in “/” from search engine indexes with robots.txt or rewrite rule

Is there a programmatic way to easily deal with the issue of search engines considering pages where the page works with and without the trailing slash duplicates like via a robots.txt or Nginx rewrite ...
4
votes
1answer
526 views

Nginx rewrite problem - displaying same page with or without .php extension after rewrite

I have implemented the following Nginx code: location / { try_files $uri $uri.php $uri/ @extensionless-php; index index.html index.htm index.php; } location ~ \.php$ { try_files $uri =...
1
vote
0answers
30 views

nginx proxy pass to standalone application

I'm trying to use pass traffic which is going to www.example.com/subfolder to a standalone application running on the same machine. Here is what I have: server { listen 80 default_server; ...