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
57 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 ...
1
vote
0answers
84 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
38 views

Which webserver to use for multiple sites? [closed]

Which webserver should I use if I'm going to host about 30 sites and all are using Wordpress. Each site receives about 1k+ visitors daily. Which webserver should I use apache or nginx? I only have 1GB ...
1
vote
1answer
765 views

Lightweight PHP-supporting webserver: Nginx, Cherokee, or Hiawatha?

I had asked this question on ServerFault, but nobody answered satisfactorily, so I re-ask here. I want a lightweight webserver. The requirements are: PHP support HTTPS support Virtual domains (we ...
1
vote
1answer
227 views

Redirecting to a specific page if the visitor used a certain name to resolve the server address

How can I get visitors redirected to a specific html page if the name used to resolve the server address was a specific one? I tried if ($http_host ~ /forbiddenname/) { rewrite ^(.*)$ ...
0
votes
2answers
146 views

Do PHP-FPM (and other PHP handlers) need execute permissions on the PHP files they're serving?

I read in a post at Server Fault that PHP-FPM needs execute permissions. However, the answer in When creating a website, what permissions and directory structure? only grants read and write ...
0
votes
1answer
583 views

How to map requests to an external directory

I have a directory/application that is located outside of the web root directory of my site. Say the site is here: /var/www/site/htdocs/ And the external app is located here: ...
0
votes
1answer
310 views

Nginx writing separately to two different logs

I've recently taken over as Sysadmin of a site, and the first thing I noticed was that there were two Nginx access_logs defined: access.log and access_new.log, and they were both being written to. ...
0
votes
2answers
1k views

Ruby on Rails - Passenger Nginx - 403 Forbidden

I've been searching for an answer for a long time now so I'll just try here... I'm trying to get an Ruby on Rails application running with passenger and nginx but I'm getting 403 forbidden when I'm ...
0
votes
1answer
25 views

Page requesting content from another IP

I was running a drupal website on Server 01 with IP1 on the domain name example.com with the configuration centos 6 and apache. As we were having a traffic spike, we wanted a more powerful machine. ...
0
votes
1answer
290 views

Code for redirecting an HTML page without an extension using an .htaccess file results in a 404 error

I'm trying to redirect an HTML page to a WordPress page which has no extension. The result of redirecting example.com/fa/home.html to example.com/fa/ is a 404 page not found. As you can see they're ...
0
votes
1answer
74 views

Domain name name repeated in the URL — what is wrong with my Joomla/nginx setup?

I have a joomla site being served from an nginx server with the following config server { listen 80; server_name heftpathology.com; server_name_in_redirect off; access_log ...
0
votes
1answer
121 views

Tracking 502 bad gateway error

I moved my Wordpress site to WP Engine and now I constantly get 502 errors. I spoke with support and they said that its because I have a lot of DB queries. I ran some tests and my frontpage only has ...
0
votes
1answer
71 views

Remove www from HTTPS request in Nginx

I have the following code: server { listen 443; server_name www.domain.com; ssl on; ssl_certificate /etc/nginx/ssl/domain.com.crt; ssl_certificate_key /etc/nginx/ssl/domain.com.key; return ...
0
votes
1answer
1k views

How to leverage browser cache using .htaccess on nginx?

I'm trying to increase the pagespeed of our website ubercore.co. I'm using PageSpeed Insights for Chrome extension to analyze the pagespeed. It has suggested me to "Leverage browser cache". This is ...
0
votes
1answer
738 views

Nginx proxy_pass 404 error, don't understand why

I'm trying to pass off all calls to /api to my webservice but I keep getting 404s with the following config. Calls to / return index.html as expected. Does anyone know why? upstream backend{ ...
0
votes
0answers
9 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 ...
0
votes
2answers
333 views

Nginx, URL special characters and punycode

I have an URL with special carachters (nicolòzanetti.com), and I'm having problem telling nginx how to handle it to the correct site. With a basic configuration:(the * in the urls is to tell ...
0
votes
0answers
67 views

Random Apache and NginX stops

I have a virtuell server from strato (german hoster) running on ubuntu Ubuntu 12.04.1 LTS with plesk. Lately I have problems that my webserver once in a while doesn't respond request. so I startet ...
0
votes
1answer
138 views

SEO: Single URL rewrite from one app to another

I have two web applications running on two different servers. I want one, example.com/hello, to redirect to the second, hello.com. But I want both to contribute to each other's SEO ranking. What is ...
0
votes
0answers
435 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 ...
-1
votes
1answer
777 views

PHPFox caching? [closed]

I run a big phpfox website and I currently have server setup as follows: nginx (reverse proxy) --> Apache for dynamic content are there other ways to cache content with phpfox? I can't use memcache ...
-5
votes
1answer
870 views

What the Nginx Control panel? [closed]

What the Nginx Control panel? What the Nginx Control panel? and Free thanks