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

Set up SSL on NGINX

I'm having difficult setting up SSL on nginx running on Ubuntu. I have a .pfx, .crt, and .pem cert files to work with, but the documentation is for setting it up with .crt and .key files. The code ...
0
votes
0answers
9 views

Nginx main domain overwriting subdomains

I have an Nginx server running a website, and I'd like to add a new host under a subdomain, to the main domain. However as the title suggests, the subdomain's host seems to get ignored, and replaced ...
0
votes
0answers
19 views

Upstream Nginx server is appending port when responding back to load balancer Nginx

We are using the Nginx load balancer that balances the load to our two upstream Nginx web servers. TCP load balancing is done using a server block inside the stream block as below. stream { upstream ...
1
vote
1answer
25 views

convert htaccess to nginx [closed]

I want to convert this htaccess code to nginx. <ifModule mod_rewrite.c> RewriteEngine On ## Application Handler RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-...
1
vote
0answers
26 views

nginx location proxy pass forwarding to root URL rather than subdirectory

I am using Nginx as a proxy, example.com is my outward-facing web server with SSL enabled I want traffic coming under https://example.com/gibberish/ to be forwarded under http://localhost:8080/...
1
vote
1answer
24 views

Redirect AMP pages to non amp only for users using NGINX

We have a huge news website, with more than 10.000.000 views for month. We have amp pages, and now every indexed content in the google mobile serp is AMP. Basically only direct views go to the mobile ...
1
vote
1answer
41 views

www.subdomain.example.com not working despite trying various DNS entries and Godaddy forwarding options, can only get an nginx error

I have a website that is online at the moment. For this website, I have a subdomain staging.example.com. I am using GoDaddy for domain hosting. My server is on an EC2 Linux instance with AWS. I have ...
0
votes
0answers
11 views

Nginx rewrite add symbol after word

I have link for widget in web server nginx I need to put slash after word "widget" /folder1/folder2/folder3/foldereverytimeischanging/someID.widget?1234567890 must be /folder1/folder2/folder3/...
1
vote
0answers
9 views

Nginx Rule -Images Not Working [closed]

My .htaccess rules; RewriteRule ^img/([A-Za-z0-9]+)/([A-Za-z0-9]+)/(.*) /img.php?width=$1&height=$2&src=$3&crop-to-fit [NC] My Nginx Rules; rewrite ^/img/([A-Za-z0-9]+)/([A-Za-z0-9]+)/(...
3
votes
0answers
24 views

NGINX configuration for the same folder protection rewrites in each of thousands of subdirectories

The following code allows me to protect a specific folder with the membership software we're using. The problem is if we have 1,000 folders we need to protect, we need to copy/paste this same code for ...
2
votes
1answer
41 views

Detectify false positive (CVE-2013-1966 on uwsgi/nginx)?

Detectify has laready twice informed me of a vulnerability on my website. It is about CVE-2013-1966 (Apache Struts). However I am not even using Apache, my server runs Django on nginx. Can I safely ...
0
votes
0answers
10 views

How to stop the IP of the server from redirecting to the domain if accessed directly?

So there is a site, that is behind Cloudflare so the IP is protected, but in addition to that, I want to make it so that if you have the IP and type it in the browser, it will not disclose the domain ...
1
vote
1answer
30 views

Where To Configure SSL On Nginx Reverse Proxy or on Apache2 on Ubuntu 18.04 Server?

My question is about SSL/TLS. I'm running Ubuntu 18.04 server with: Apache2 serving 3 public domains on 1 public IP. On the same server I'm running: Nginx and will configure as a reverse ...
1
vote
0answers
33 views

Why is nginx trying to bind to an IP address that I'm not telling it to, and how can I stop it?

I'm trying to host two separate websites from my VPS. I have two services running on different ports. What I am trying to accomplish is have nginx reverse proxy to Service A if the user types in a ...
2
votes
1answer
2k views

Redirect all subdomains from one domain, to the equivalent subdomain of another domain using DNS and nginx?

I have foo.example and bar.example. I want sub.foo.example to redirect (not be aliased with) sub.bar.example, same for asdf.foo.example and asdf.bar.example, etc, for all sub domains. I know I can ...
2
votes
1answer
156 views

SYNC_NOT_REQUIRED in request URL leads to 404

We have noticed that our website Nginx access logs have quite a bit of 404 requests for very strange URLS that end in SYNC_NOT_REQUIRED Example: 75.139.245.82 - - [12/Dec/2019:22:36:29 +0000] "...
2
votes
0answers
40 views

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
285 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
101 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
38 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
29 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
52 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
36 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
214 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
21 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
38 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
41 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
124 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
57 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
29 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
382 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
35 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
66 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
31 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
384 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
48 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
372 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; ...
20
votes
1answer
5k 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
191 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
76 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
47 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
118 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
293 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
1k 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
40 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
49 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
136 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
78 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
1k 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
2 3 4 5