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.

learn more… | top users | synonyms

2
votes
1answer
23 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 ...
1
vote
1answer
10 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 ~ (.*)...
0
votes
1answer
470 views

Nginx 404 not working with PHP?

I have a 404 file and it is working with nginx. However when I modify the 404 file to redirect the user it does not redirect. visiting http://site.com/404.php redirects the user. visiting http://...
1
vote
1answer
200 views

How to query MySQL to build Nginx configuration file?

Is it possible to have a MySQL query in my Nginx config? For example: server { listen 80; $domain = [a way to get the current domain]; $server_info = [a way to do the ...
1
vote
0answers
15 views

OpenStack Horizon behind reverse proxy (nginx preferred) [migrated]

Current situation: I have a Triple-O OpenStack installation (Liberty) where even the "public" network is in a private environment (10.24.7.0/24 network). The only way to get access to that network is ...
2
votes
1answer
196 views

Cache an external site that may have a mobile version

In continuation of the answer for the "Nginx Reverse Proxy for Tumblr" question, what is the best way to cache a web-site like Tumblr with nginx, which returns distinct results depending on the User-...
0
votes
0answers
10 views

Nginx stat() Permission denied

At error.log, there are log of stat() errors. stat() "/srv/server/public/js/build/app.min.js" failed (13: Permission denied) The application folder is at /home/ec2-user/server. Here is the nginx ...
1
vote
3answers
32 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
34 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 ...
4
votes
1answer
50 views

More Secure NGINX Authentication than auth_basic

I've been trying to come up with the most secure method of authentication to my reverse proxy in NGINX. I've been using ngx_http_auth_basic_module so far without any issues, but there are apparently ...
2
votes
0answers
58 views

sub_filter doesn't work when used with MediaWiki?

I'm working on a site, https://factinfiction.meulie.net/ . This site runs the latest stable version of MediaWiki (1.26.2). In the server-config I have the following location-block: location / { ...
6
votes
1answer
115 views

Where are these spammy posts generated from?

While doing a a random Google search, I realized that my WordPress blog is populated with several spammy posts. Ex: (intentionally delinked) http://example.com/2016/02/06/free-download-wallpaper-...
2
votes
2answers
44 views

When moving a load balanced PHP site from Apache to Nginx, how does the code have to be modified?

When moving to Nginx with multiple php-fpm servers from a more "traditional" Varnish + multiple Apache2 / mod_php setup: Must we expect to rewrite parts of our software? I just discovered that many ...
0
votes
0answers
29 views

how to write a nginx redirect for all subfolders of a /[category-name]/

I have a blog with many categories. Due to some old legacy links, there are mulitple urls that run off these category urls. Examples: site.com/category-one/extra-url/ site.com/category-two/...
0
votes
0answers
9 views

Hosting for large PHP/WordPress sites [duplicate]

Im an admin for couple of sites. Some sites are quite big and we need a good hosting plan (and an honest one). Currently we have, on all sites combined, around 2000-3000 concurrent users. Most sites ...
1
vote
0answers
74 views

Forcing SSL on Wordpress crashes site?

So I have just installed a paid Comodo SSL on my website. I can visit my website with https://homepage.com/ but the https appears grey. Currently that isn't my worry. But when I visit the website ...
2
votes
2answers
83 views

Sitemap compressed is in unsupported format but valid if uncompressed

I've build a sitemap_index pointing to different sitemaps "sitemap1.xml" If they are uncompressed, they are successfully validated and accepted (Google Webmaster). However, when compressed, they are ...
1
vote
1answer
18 views

Plesk 410 Directory

Plesk allows adding "Additional nginx directives" for hosted websites. I'm trying to use this to set a 410 header on some old directories, but I can't find anything as simple as RewriteRule ^rss/ - ...
2
votes
0answers
43 views

How to make nginx override web app route for sitemap and robots?

I would like to make nginx serve sitemap and robots. My problem is that route http://example.com/ is handled by flask, configured to handle request with certain patterns - http://example.com/sitemap....
2
votes
2answers
90 views

Using one index file in all directories and subdirectories

I have an index.php file, which processes content of a directory it is located in and renders output to the browser. The problem is that the directory structure it is supposed to serve is rather ...
2
votes
0answers
213 views

Nginx aliases and proxy_pass

I'm using nginx as web front-end and apache2 as web back-end. Apache runs several websites locally and nginx access them. At the moment, different sub-domains are hosted, but I want to migrate them ...
3
votes
1answer
204 views

Rewriting image URLs in nginx from a shortened URL to a specific directory

I'm using an image serving application on nginx/1.4.6 (Ubuntu), but it was made for Apache2. Images are uploaded to directory "/imageshare/images/extension/" where the filename is randomly generated, ...
1
vote
1answer
31 views

Default server name nginx

A server is hosting several website each having its own domain name. Nginx is used the reverse proxy. When a domain name is pointing to the IP of the server and that no server_name is specified nginx ...
0
votes
1answer
67 views

nginx location rewrite: match /{?x}, {y}, {?z}. Remove y

I am trying to run CiviCRM with Drupal 7 in a docker container of my own design. Unfortunately, I am running into a problem where for some unknown reason CiviCRM is outputting resource requests ...
2
votes
1answer
70 views

How do I ensure that I redirect HTTP requests to HTTPS?

I use CloudFlare for DNS for a variety of sites. I am using all three free Page Rules for custom caching, and I am trying to avoid upgrading to their Pro service to use Page Rules to force HTTPS. I ...
1
vote
0answers
23 views

Cannot upload a new theme to CS-Cart either via web upload or SCP

A weird title for a weird problem... I have an updated Arch Linux server running php 7.0.2 and mariaDB. The webserver is the beloved nginx 1.8.0-2. I've installed CS-Cart 4.3.5 Ultimate (without a ...
1
vote
1answer
26 views

Blank pages when articles accessed from Google

This is the strangest bug I ever seen. I'll start a new job at a local magazines editor in a week, and today I passed by to submit some papers they asked me to provide. When I got there, they told ...
0
votes
0answers
14 views

Using Nginx to rewrite a friendly URL to index.php handler gives 404 error [duplicate]

I apologize because I accidentally posted this question as an unregistered user and cannot comment, so I am posting it again. I am having some issues getting the below to work the way I expect. What ...
1
vote
1answer
48 views

Reverse proxying a Websocket upstream with Cloudflare

I am wanting to use cloudflare on my main website and then use nginx to reverse proxy a directory to my websocket gameserver. NGINX server block: location /Fonzy/ { ...
1
vote
1answer
109 views

Prevent search bots from indexing server (sub)domain name

A web application I wrote is hosted on an in-house server with the name myserver, which is under my university's domain (department.uni.edu), resulting in the server's address being myserver....
3
votes
0answers
95 views

Using Nginx to rewrite a friendly URL to index.php handler gives 404 errors

I am having some issues getting the below to work the way I expect. What I am trying to do is take a url like https://example.com/TOPIC/courses/details/143911 but have it sent to php with the ...
0
votes
1answer
229 views

Wordpress, Apache and Nginx: permalinks and cache

I have a server with Ubuntu 14.04.1, Apache at port 8008 and nginx at port 80 as a proxy for Apache. It runs a website based on Wordpress. I use Wordpress's plugin WP Super Cache with the following ...
1
vote
1answer
255 views

Block access to php files in folder in nginx under ispconfig

I am using nginx / ispconfig and want to block access to any php file under a directory using server directives. My directive looks like this: location / { location ~ /notallowed/(.+)\.php$ { ...
0
votes
0answers
36 views

nginx server connect to VBsite

I have two server on Openshift RHC, so i installed nginx on first server and VBulletin on second server.i could configuration them,with this codes on nginx server: #user nobody; worker_processes 1; ...
2
votes
1answer
44 views

NGINX Rewriting Question

How would I convert the following Apache rule RewriteRule ^watch/([A-Za-z0-9-]+)/?$ watch.php?v=$1 [NC] into the appropriate format for an NGINX configuration file? Further edit: server { ...
2
votes
0answers
121 views

nginx rewrite for an url with parameters

I have two types of URL and want to rewrite it for friendly URL. 1. The first: https://example.com/folder/myfile.php?id=xx&param1=yy I want to rewrite to: https://example.com/folder/myfile/xx/...
0
votes
0answers
81 views

Mysterious wrong encoding in Chrome/Safari

I'm trying to set up a website using grav (a php CMS) and are seeing some strange things. After setting it up, the webpage in Chrome and Safari is just looks like wrongly encoded mess. However, using ...
2
votes
1answer
77 views

How do I rewrite URL's for a subdirectory of a site?

I host a mirror of the Textfiles archive, on http://subdomain.example.com/ Part of this mirror is a mirror of pinouts.ru, located on http://subdomain.example.com/mirror/pinouts.ru/ As you can see ...
7
votes
6answers
16k views

How to block baidu spiders

Most of my visits are from baidu spiders. I don't think it helps search engines at all so I'm thinking of how to block them. Could this be done via iptables? I'm using nginx as my webserver.
2
votes
2answers
744 views

Webmin: Cannot login through nginx reverse proxy

I've created a reverse proxy for webmin through nginx to run webmin at [site domain]/webmin instead of port 10000 ([site domain]:10000). When I go to [site domain]/webmin, the login page shows up as ...
0
votes
0answers
43 views

access.log requests from UA “Google favicon”…? What do these mean?

I have a bunch of these in my nginx log file, on a range of URLs: on 66.102.9.23 - - [12/Nov/2015:10:40:25 +0000] "GET /myadminfolder/page.html HTTP/1.1" 200 1247 1800 "-" "Google favicon" "...
2
votes
1answer
105 views

Redirect http to https with nginx and rewrite a rule gives redirect loop

I want to redirect http to https along with rewrite ^(.*)$ /$1.php; My nginx virtualhost file: server { listen 80; server_name domain.com; return 301 https://$...
0
votes
0answers
21 views

How do I cache IP-restricted content using CloudFlare?

Let's say I have files at https://corp.example.com/private/*. Before I started using CloudFlare, access to these files was restricted to certain IP addresses, defined in an nginx config file. I now ...
1
vote
1answer
233 views

nginx fails to restart after changing “client_max_body_size”

I'm testing Wordpress on Ubuntu 14.04 with Lemp and having some issues - the latest is I'm trying to import a 30mb file into Wordpress. Doing the import it says 128M limit - which I configured in the ...
1
vote
0answers
247 views

nginx redirect subdomain to a url path

I have a requirement where I need to point xyz.tld to abc.def.tld. Additionally I would have to internally rewrite/redirect abc.def.tld to def.tld/abc. So the final result here I intend is when I ...
4
votes
1answer
88 views

When I search on my domain name in a browser, the IP address is returned for my site hosted with GoDaddy and NGINX

The IP address of my site is returned when I do domain name search in my browser. I am using: GoDaddy Hosting Nginx Node.js Obviously I would like the domain name and not the IP address, how can ...
2
votes
2answers
249 views

Google indexed my site through a subdomain, how to fix?

So I recently switched to nginx but I didn't specify my site_name in nginx.conf, which I've learned is interpreted as a wildcard domain, meaning you can access the site through any subdomain. I had a ...
2
votes
1answer
185 views

Permissions & File Structure w/ nginx & multiple sites

I am using nginx for the first time as a long time Apache user. I setup a Linode to test everything and to eventually port over my websites. Previously I had /home/user/www (wwwroot) I am looking ...
2
votes
1answer
309 views

How to avoid leeching / hotlinking files?

I use Kleeja script to host files and noticed that certain files are downloaded many more times than the site's visit counter indicates. So I assume that the files are being leeched. The web server is ...
0
votes
1answer
197 views

Setting up GetSimple CMS with Nginx

I'm quite a noob in web, I'd like to setup a Linux(Debian) web server and decided to use GetSimple CMS and Nginx since I've found out that they'd give the best performance by using smallest resources. ...