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
115 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 ...
3
votes
0answers
56 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 ...
3
votes
0answers
45 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: ...
1
vote
0answers
114 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
59 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. So far different domains were used, but I want to migrate them into a single ...
1
vote
0answers
173 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
167 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
6 views

CS-Cart not doing “some” things

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 ...
0
votes
0answers
17 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
11 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
33 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
22 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
16 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
76 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
46 views

Location priority with nginx

I need to proxy pass some images to other server, but the link is currently overrided by other rules for static images. Here is my current (non-working) configuration (in correct order): location ~ ...
0
votes
0answers
55 views

Nginx, an AWS load balancer, and configuring a website to be visible on the WWW

I have never configured an Amazon load balancer before. I have never configured a web server with an AWS machine that worked on the WWW. I have used it only as a web server that my Windows workstation ...
0
votes
0answers
308 views

joomla url rewrite issue when nginx reverse proxy apache2

Thousand Apologies for cross posting. I am really that desperate. I have posted the same topic at serverfault but feedbacks are a bit slow and I can understand that. Just that I am expected to put the ...
0
votes
0answers
457 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 ...