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
183 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-...
1
vote
1answer
18 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 ...
3
votes
0answers
85 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 ...
2
votes
0answers
36 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
0answers
35 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 / { ...
2
votes
0answers
115 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/...
2
votes
0answers
197 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 ...
2
votes
0answers
202 views

How to filter GET requests with Nginx, keep getting 504 after [GET] “/manager/html”

I was recently unable to reach my website, receiving a 504 time-out error instead. I checked the logs and found a GET request for /manager/html. I realize this was a failed attempt to reach a control ...
1
vote
0answers
59 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 ...
1
vote
0answers
22 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
0answers
235 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 ...
1
vote
0answers
192 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 ...
0
votes
0answers
7 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 ...
0
votes
0answers
21 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
34 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; ...
0
votes
0answers
79 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 ...
0
votes
0answers
38 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" "...
0
votes
0answers
20 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 ...
0
votes
0answers
119 views

NGinx Downloading instead of Serving

I have nginx setup on my ubuntu server as the web server with 3 config files (minus the site configs) All of my sites now download a application/octet-stream file rather than serving up the pages. ...
0
votes
0answers
466 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://...