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
2
votes
0answers
20 views
+100

NGINX - Proxypass limit inbound speed

I am currently using the following server block to proxy an IPFS server server { server_name ipfs.mydomain.com; server_tokens off; listen 443 ssl; listen [::]:443 ssl; location / ...
1
vote
0answers
13 views

Redirecting in NGINX with masking target URL

I've set up redirection on NGINX with the help of this answer and now I want to set up it with hiding redirection from user, i.e. keeping original example.com. Things I've tried: rewrite server{ ...
0
votes
0answers
18 views

Adding domain name to a Vultr managed Wordpress website

I have a managed Wordpress instance on Vultr. I was able to access the website fine with its ip address. Now after adding the domain, I can't access the website, "this site can't be reached, server IP ...
1
vote
0answers
8 views

Add Failthrough server of a LAN IP to Nginx?

I'm trying to add my machine's LAN IP as a 'failthrough' location to use in the event the main server has issues. Lately, my main server name (i.e. https://myserver.domain.com) has been having some ...
3
votes
0answers
34 views

405 for POST requests, download triggered for GET requests for specific php file only

Apologies, I know this is a basic question, but I'm learning nginx! I've inherited a Nginx driven site, the problem is that when browsing to a specific php file it initiates a download. The file, ...
3
votes
1answer
25 views

Mediawiki - Method for $wgActionPaths on nginx

I'm trying to set up action path rewriting on my mediawiki 1.33 install with nginx 1.14.0 on Ubuntu 18.04 with php 7.2fpm. All the documentation I've been able to find on mediawiki.org and via ...
2
votes
0answers
14 views

Nginx reverse proxy 404 multiple apps [closed]

I'm configuring nginx reverse proxy functionality. It's not working for apps as written below. I'll give you an example of /hbase/. When I enter url /hbase/ in browser, I get 404 it redirects to /...
2
votes
0answers
31 views

Is there a difference between server issue or control panel issue?

Is there a way to check if the issue is a server issue, or just a control panel issue? I ask this question to know when one can be accepted to ask on Server Fault, as required in their page What ...
1
vote
2answers
118 views

What makes Open Graph checkers unable to detect Open Graph data?

My page, after adding SSL certificate, cannot have preview fetched by Facebook or Twitter when sharing the link. I have followed The Open Graph protocol and include the following open graph tags: &...
1
vote
0answers
14 views

Should my sitemap and robots.txt have http or https urls for the given scenario [duplicate]

My website is running on node.js and runs in http on port 3000 I am using NGINX to enable https access so that all pages are served as https I have placed my sitemap.xml and robots.txt inside the ...
0
votes
1answer
28 views

HTTPS time out for newly installed SSL certificate on Nginx

Recently I bought a SSL certificate on GoDaddy and set it up in my Nginx server like this: server { listen 443 ssl default_server; server_name www.mywebsite.example; ssl on; ...
1
vote
0answers
22 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
25 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 ...
1
vote
0answers
26 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 ...
1
vote
0answers
22 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/...
2
votes
0answers
177 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 ...
1
vote
0answers
33 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 ...
2
votes
0answers
21 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) ...
1
vote
0answers
18 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 ...
1
vote
1answer
104 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. ...
3
votes
0answers
31 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 ...
4
votes
1answer
221 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 ...
2
votes
1answer
112 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/...
3
votes
1answer
50 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 ...
1
vote
0answers
28 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 ...
1
vote
1answer
73 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://...
1
vote
2answers
191 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 ...
4
votes
1answer
616 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 ...
2
votes
2answers
25 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 ...
2
votes
1answer
44 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 ...
1
vote
1answer
39 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; ...
1
vote
1answer
47 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{ ...
2
votes
1answer
536 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
593 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-...
1
vote
1answer
16 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?
2
votes
1answer
148 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 ...
3
votes
0answers
52 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 ...
0
votes
1answer
60 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 ...
3
votes
1answer
1k 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. ...
3
votes
1answer
285 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:// ...
2
votes
0answers
130 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 ...
2
votes
1answer
349 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....
3
votes
1answer
526 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
1k 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
66 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
117 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
127 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 ...
2
votes
0answers
35 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
658 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 ...