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

1
vote
1answer
13 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
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
0answers
7 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
13 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
42 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 ...
1
vote
1answer
21 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 ...
4
votes
0answers
62 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
0answers
9 views

How set root directory to share remotly with proftpd [migrated]

I have done install and configuration proftpd and create user in fedora but after i use ftp client i can't access the root directory like nginx webserver folder ftp cilient only display/access public ...
2
votes
0answers
16 views

NGINX Location Routing Issue [closed]

I'm trying to automate Let's Encrypt with the webroot option. I haven't been able to get NGINX to route requests to the correct directory, which is limiting my options with updating the certificates. ...
0
votes
0answers
13 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
29 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 { ...
3
votes
0answers
52 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: ...
0
votes
0answers
36 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
23 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 ...
1
vote
1answer
70 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$ { ...
1
vote
0answers
121 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
77 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 ...
1
vote
0answers
62 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 ...
2
votes
1answer
82 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 ...
2
votes
1answer
56 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 ...
2
votes
2answers
334 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
1answer
114 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. ...
2
votes
3answers
191 views

How to block a user-agent that has a spacing in its name?

I got a hit from a crawler with a user-agent called DV CRAWLER which is an abvious a spam-bot. I tried to block it in both .htacess and nginx configuration as I'm running nginx as a reverse proxy in ...
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
1answer
47 views

Nginx Php-Fpm Global Configuration

So, ive got everything set with 6 wp websites sitting on my lemp stack. I have noticed that every single one of their nginx configurations are the same. Is there a way I can globalize said ...
0
votes
0answers
16 views

Spam Site DNS Points to My Site [duplicate]

A spam site is using something like an A record to point to my site's ip address. As a result, if you go to spam-site.com it displays my-legit-site.com. Obviously, the same goes for any page within ...
0
votes
0answers
47 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 ~ ...
1
vote
1answer
154 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
3answers
96 views

Should 301 redirects from www to the naked domain include the path for SEO?

I'm trying to sort out a redirect for my site from www to the "naked" domain. My redirect currently does this: www.example.com -> example.com www.example.com/test.html -> example.com Is this ...
0
votes
0answers
56 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 ...
1
vote
1answer
160 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 ...
0
votes
1answer
222 views

AdSense ads not showing up after switching HTTP server to gunicorn + proxied nginx

I am developing a webpage in Django in which contains two blocks of advertisements from Google AdSense. Before, I was serving this page using Apache2, but I switched to gunicorn + nginx due to it's ...
0
votes
0answers
316 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 ...
1
vote
1answer
138 views

How can I allow both www URLs and non-www URLs for the same same site under nginx?

My problem is about www and non www urls. I use nginxCP, a distribution of nginx that includes cPanel and WHM. I need to be able to surf my sites hosted by this server with both non-www and www urls. ...
0
votes
1answer
34 views

What to do with pages that leaked into SERP due to faulty server configuration

There are two sites on one server: http://www.exampleA.com lives in the root http://www.exampleB.com live in the htdocs web folder SSL on the server was configured incorrectly for ...
1
vote
1answer
481 views

Difference Between php_admin_value[memory_limit] and php.ini memory_limit

I have Nginx + php-fpm + Mysql. With the php memory settings, I always set this in php.ini like this: memory_limit = 256M Now, I bumped into another similar looking setting in pool.d/www.conf file ...
2
votes
1answer
58 views

Preventing content from being linked

I am currently running a fairly popular private Wordpress site on a dedicated bare metal server using ISPConfig, Nginx and MariaDB. We have a series of podcasts and content that we host specific for ...
1
vote
0answers
211 views

Convertion of htaccess rewrite rule to nginx [closed]

Through searching the internet with "converting htaccess to nginx rule" I came up with anilcetin and winginx .htaccess to nginx converter which I doubt it doesn't correctly output what I need. Which ...
1
vote
0answers
122 views

502 Bad, Gateway Ruby on Rails [closed]

Our website is currently down(hosted on Digital Ocean) with error code "502 Bad Gateway" and our web developer is currently out on Vacation. I am just an IT person on our network and I don't have web ...
2
votes
1answer
118 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 ...
1
vote
1answer
81 views

Non existent image files are not being handled by PHP as they should due to ngnix configuration

I am currently building a web application. In order for it to work properly I wrote this rule: location / { if (!-e $request_filename) { expires 168h; add_header Pragma public; ...
2
votes
1answer
150 views

Optimize TOR website

There is VERY little to find about optimizing a website which runs in the tor network. Besides installing the tor daemon, what can you do? Are there any tricks like -I don't know- connecting it to ...
1
vote
1answer
228 views

How do I get ngix to stop listening on port 80?

I'm running a node.js webserver on an Amazon Linux EC2, but I can't listen on port 80 because there's an nginx server listening on that port: [ec2-user@ip-172-31-39-178 server]$ sudo netstat -tulpn ...
3
votes
1answer
251 views

Why do some Nginx configurations block download agents using Wget?

I noticed that some Nginx configurations block download agents using Wget like this: if ($http_user_agent ~* LWP::Simple|wget) { return 403; } Why block Wget? If I use the above code in my ...
1
vote
0answers
177 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
1answer
321 views

How to set up Nginx directory password authentication?

How to set up? Nginx directory password authentication /usr/local/nginx/conf/vhost/xxx.xxx.com.conf site configuration files. I want to in this website xxx.xxx.com/123 folders in password access ...
1
vote
1answer
134 views

Server flooded with Wordpress login requests. Need advice [closed]

Recently I was looking at the nginx access logs and found on 2 ocassions a large ammount of requests pointed towards my WP login page. There were over 50.000 requests coming from 2 different IP ...
2
votes
1answer
79 views

Nginx Rewrite causing problems

I wrote a little php script that reads and compresses css and javascript files. I used a rewrite to automatically redirect all resources to that script. The rule looks like this: rewrite ...
4
votes
1answer
274 views

How to make my websites content available as Tor .onion and Clearnet .com?

I'm running a website with Nginx which I would like to be accessible by Tor and by Clearnet. Currently it's only reachable by Clearnet, e.g. www.example.com. Of course people just can go to ...