We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
0answers
31 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
508 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
36 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
83 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
79 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
227 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
616 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
31 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; ...
1
vote
0answers
258 views

Multiple SSL server blocks with nginx on single ec2 instance

I've asked this question before and I think I found a potential answer on the nginx Website, which is to have multiple internal IPs for the Web server to listen on. I don't know how to do that with ...
1
vote
1answer
48 views

.htaccess Rewrite whole dir contents to another

I am trying to rewrite the whole contents of a directory to the home url. so, if someone visits www.example.com/bnn27sh32j@d299/gold it should take them to www.example.com/gold I have tried: ...
2
votes
1answer
81 views

HTTPS request connection timeout (NGINX)

I tried a lot by reading different answers on Stackoverflow and other forums but unable to identify the error, can someone please check the below configuration and tell me what could be wrong? server ...
3
votes
2answers
3k views

nginx http to https redirect - just isn't working

I am running my own webserver with nginx on ubuntu 17.10. I have opened ports 80 and 443. Trying to get the HTTP to HTTPS redirect working, but everthing i seem to have tried fails. i am still ...
2
votes
1answer
1k views

Disable Direct IP Access on VestaCP NGINX + Apache2

In the current version of VestaCP once you install it and access your server's IP it will return the latest website you've added in VestaCP. This is bad on so many levels and I consider it a ...
2
votes
0answers
222 views

Is it possible to serve static content of my SPA for SEO Purpose.

Is it possible to serve static content of my SPA for SEO Purpose. I have designed website in Angular4 and it is working fine. But I have used Material design and other libs which are not compatible ...
1
vote
0answers
17 views

How to make new domain redirect to specific page of main domain without losing SEO?

So I have a exchange office (lets say www.example.com) Wordpress website and I bought a new domain just to sell Euro (www.euroexample.com). I want this new domain to show the specific page for Euro ...
1
vote
0answers
850 views

How to disable http method verb tunneling in nginx

Our security team ran a web-inspect security scan on our site and asked us to disable verb tunneling using headers or query parameters such as X-HTTP-Method, XHTTP-Method-Override, X-Method-Override, ...
1
vote
0answers
287 views

How to enable gzip compression for CSV files on Github Pages?

Pretty much title. The majority of my Github Pages site is being gzipped, but for some reason CSV files are ignored. This is unfortunate, because for some client-side visualizations a 10 megabyte CSV ...
2
votes
1answer
620 views

Trouble replacing old SSL certificate on Nginx

Disclaimer: This is my first ProWebmasters post. I thought this would be an appropriate place for this question but if it is not I'm happy to remove it. We use SSL For Free for our business site. We ...
1
vote
0answers
125 views

How do I run blog subdomain with ghost blog and linode?

I want a prepare a blog using ghost in a subdomain of my website. I made a A/AAAA record in linode settings: A/AAAA Records Hostname IP Address TTL Options 139.162.250.252 Default Edit | Remove ...
0
votes
1answer
444 views

Nginx to default to index.php

Using raspbian stretch, and have configured a site using: server { listen 80 default_server; # what does this do? listen [::]:80 default_server; root /var/www/html; index index.php; ...
3
votes
1answer
3k views

Nginx: set Content-Type by URI problem

I'm setting up small personal file hosting, I made a backend to store uploaded files by their hash directly on the HDD like /f/ab/cd/ef012345678..., but without file extensions and generate an URI ...
3
votes
1answer
762 views

Adding “expires” directive in Nginx conf for assets causes “404 not found” errors

I have a live Django site running gunicorn, nginx, supervisord. I am trying to implement the suggestions found here to increase my page speed score by using gzip in nginx. The resulting config file is ...
1
vote
0answers
251 views

Slow website by Plesk [closed]

Have a good quality server with good performance. Till now I don't had this kinde of problem. So,I have installed Plesk panel,four months ago. I develop an ecommerce project using Laravel framework. ...
1
vote
0answers
27 views

Duplicate content with image CDN [duplicate]

I'm in a similar situation as this user: CDN virtual subdomain causes duplicated content However, I have yet to create the CDN. My question has 2 parts: Part 1: I think I may have found an issue ...
1
vote
0answers
542 views

Prestashop 500 error: rewrite or internal redirection cycle

I am setting up an older prestashop setup on a site and I am getting the following error on some products: 2017/08/09 17:11:03 [error] 19038#0: *414292 rewrite or internal redirection cycle while ...
1
vote
1answer
281 views

Nginx deny-all fails to execute PHP code in 403.html

I want to deny access to some directories and files, so I use the deny_all option to return a 403.html page. However, it does not allow me to execute any PHP code in that page. Something to do with "...
1
vote
1answer
975 views

Nginx server - Wordpress - .htaccess

I am running an Nginx server with Wordpress installed on it. The Wordpress installation has an .htaccess file in its root. Now I read that Nginx doesn't actually work with .htaccess files and using ....
6
votes
2answers
12k views

Getting IP address and location of my own server instead of visiting user's

I have a MEAN Stack application deployed on a server and am using Nginx as proxy server to handle the request and redirect to application's particular port. For example: User accesses the URL http://...
1
vote
1answer
436 views

Get real user IP behind two reverse proxies

This is my environment setup: Server A hosts the site (Nginx + PHP-FPM + Wordpress) Server B is Nginx reverse proxy for server A Cloudflare reverse proxy is on top of all. Therefore, user request ...
2
votes
2answers
1k views

How to add custom subdomain for each user like john.example.com

I am working on a B2B web application where companies registers to use the application. Say am using www.example.com to access the application. Here is a scenario: Somebody from a company named "...
3
votes
1answer
577 views

Cloudflare infinite redirect

Background I recently migrated my websites to an all Docker environment using haproxy as the front end load balancer. I have SSL certificates for all domains issued by Let's Encrypt and everything ...
2
votes
1answer
2k views

(nginx rewrite) add word on dynamic URL ending | word is repeated multiple in URL

I'm really confused by the Nginx rewrite rules. I have searched and found a lot of threads for rewrite rules but I don't get the required result... I have this form of a link: http://example.com/...
2
votes
0answers
79 views

Forum index page shows logged out even when logged in. Caching or cookie issue?

I'm running Nginx with modpagespeed served by CloudFlare DNS for my forum website. Cookies seem to hold, but the forum index itself shows you're logged out when you're logged in, unless you append /...
3
votes
2answers
78 views

Is SSL a Major Contributing Factor to Website Speed

I have nearly a perfect score on Pingdom Results: https://tools.pingdom.com/#!/tU1lz/https://varmag.com/ If I'm not mistaken, it looks like SSL is what's slowing me down? Doing some research, If I'm ...
2
votes
2answers
614 views

https:// redirect to https://www in NGINX

How do you redirect all non-www links to my website to https://www. I know that there are a lot of solutions for .htaccess but I haven't been able to find anything sufficient for nginx. At the ...
1
vote
0answers
140 views

Create unique IDs between URL with nginx [closed]

I searched and tried nearly two weeks but don't get any useful result, so I'm trying my luck here before I get crazy: Every existing domain should get an unique ID right after the domain. The ID ...
2
votes
1answer
2k views

How to stop other domains to 301 redirect to my website domain?

I found that someone is 301 redirecting his website domain to my website domain. fakedomain.com -> 301 redirects -> correctdomain.com Using the contact information found by whois query, I already ...
1
vote
1answer
200 views

Using nginx to host roundcube on root domain, while hosting phpmyadmin from sub directory

I have my domain setup to host roundcube at the root domain just fine, using root /www/roundcube in the vhost config, but when I attempt to add another location for phpmyadmin using root /www/...
2
votes
0answers
595 views

Nginx request map and redirect have no effect

I want to rewrite/return request to new one I have: map map $request $new_request { include url_rmap.conf; } file url_rmap.conf # here i have tried all variations $scheme://d.dom https://...
1
vote
2answers
46 views

nginx proxy on domain only

I have setup a server block with a proxy in nginx which works when I hit the service with an a directory. For example I can access gs.geolytix.net/geoserver with this conf. server { listen 80; ...
1
vote
1answer
572 views

How to configure URI in Nginx to serve different web app than in the main domain?

I have CMS running on domain.tld. Now I would like to configure Nginx to server another app from domain.tld/app. CMS in main domain shouldn't handle requests made to domain.tld/app. Can this be ...
2
votes
1answer
65 views

My Site Still Caches Its First Homepage from 6 Months Ago

I use W3 Total Cache and CloudFlare (free-tier) as my CDN. For whatever reason, my WordPress site still caches the first version of its "Front Page" (not a posts page) for new user sessions, across ...
0
votes
1answer
93 views

Is this possible: Use css from other virtual host?

So my questions is as follows: Say I have a website at /var/www/Electrician and I have a website at /var/www/Restaurant. If these websites use separate host files can I use the same CSS to reduce ...
2
votes
1answer
258 views

Is it possible to block webfont downloads but allow visitors to see them?

My question is in the title. I purchase nice webfonts but I don't know how to use them on a site while preventing the possibility of downloading them. I'm not a charity! Anyhoo, I intend to do this ...
2
votes
1answer
359 views

What does mask spring authentication nginx configuration do?

I have the following setting in my nginx.conf but I am not sure what it does. I copied it from a Google search. location / { set $tempRequest $request; if ($tempRequest ~ (.*)...
2
votes
3answers
1k views

How to make transition from HTTP/1.1 to HTTP/2 with SEO in mind?

I'm aware that HTTP/2 is using only https protocol. My existing implementation on the website are all HTTP/1.1 with http protocol with thousands of existing urls. To add HTTP/2 support, without ...
1
vote
1answer
694 views

Connect timeout from external clients?

I had a MEAN site hosted on DigitalOcean, and now I moved it to an EC2 micro instance. I imported the database, set up PM2, copied all files and everything, and set up Nginx as a reverse proxy. No ...
2
votes
1answer
65 views

Soft 404 problem with nginx frontend to apache2 modperl backend

Using nginx as a frontend to our modperl apache2 servers. We have a soft 404 problem at Google Search Console. The problem is that we have many pages expiring all the time, once they expire we add a ...