0
votes
2answers
45 views

All nginx access logs from 127.0.0.1 (so can't use fail2ban)

Problem I'm trying to configure fail2ban to block ddos attacks using the chunk shown here. Basically it looks at all requests and if any single IP makes more than 240 requests over 60 seconds it ...
0
votes
0answers
35 views

drupal nginx 404 error for image

I am used this tutorial https://www.digitalocean.com/community/articles/how-to-install-drupal-with-nginx-on-an-ubuntu-13-04-vps to install Drupal 7 on my LEMP . everything work fine. i am using a ...
2
votes
1answer
130 views

Nginx downloading php files - Possible cause: regular expressions

Problem I'm trying to deny access to two files in my web root, update.php, install.php and require authentication for apc.php (also webroot). I think I've successfully denied access but on opening ...
0
votes
1answer
115 views

NGINX Drupal Redirect for Mobile

What I want to do; I want mobile users to be redirected to http://m.site.org/mobile-home. Being redirected to the m.bzaeds.org isn't an issue. I also have this working fine in Apache, but the same ...
1
vote
1answer
50 views

Installing drupal 6 from scratch in nginx

So I am trying to install a fresh drupal 6 site on nginx. I have successfully setup the conf files and db. When I try to access mysite.com so that I can follow the step by step installation guide, it ...
1
vote
0answers
129 views

Nginx reverse proxying Drupal content served with Apache

I'm new to Nginx but was interested in trying it out. I now have Nginx listening to port 80 and serving static html content from /srv/www for a main "promo site". I've also set up apache2 to the ...
0
votes
1answer
279 views

Drupal & nginx : a sound “general purpose” configuration? [closed]

After a bit back and forth with configuring Drupal and nginx to work together, I've come up with the below configuration for a site. It works well, both with private and public file systems. However, ...
0
votes
2answers
657 views

HTTPS variable in $_SERVER using nginx as reverse proxy

I'm using nginx as a reverse proxy in front of an apache with mod_php. My site is on https, and it would require the variable $_SERVER['HTTPS'] to be set 'on' to assemble some of the links correctly. ...
0
votes
1answer
550 views

what port should I open for mysql master-master replication?

I have two servers running php5-fpm and a load balancer running nginx, the three servers share /var/www/drupal using nfs. nfs is working correctly. I replicated the two servers' database using mysql ...
1
vote
2answers
123 views

ngnix simple location match, what does it mean

location ~ \..*/.*\.php$ { return 403; } I am interpreting this as: case sensitive .[any character repeated 0 or more times]/[any character repeated 0 or more times].php Examples: ...
0
votes
1answer
167 views

nginx - another rewrite or internal redirection cycle - drupal

While migrating a site from another server, some strange problem occured. I use the default configuration for all my drupal sites, but this one doesnt seem to work. Some image files cause an internal ...
3
votes
1answer
332 views

Using nginx and Drupal, how do I serve a 404 error for static files and directories that exist?

I deploy a Drupal web site using git (well, OK, the developers deploy it; I try to keep them out of trouble), and for that reason the site has a directory .git and a file .gitignore in the document ...
0
votes
2answers
410 views

Login to Drupal fails with Nginx and proxy_pass, but works when accessing Drupal directly

We need to proxy pass an url in which my.domain.com need to get drupal.apps.server.com. We configured rewrite and is working fine. Then we configured proxypass and while accessing my.domain.com we ...
2
votes
1answer
317 views

Nginx Subdirectory Drupal + other app

I have a drupal app and 2 other app written in php, i want use a rewrite uri for drupal and place drupal in virtual root / and the other by their names ... and use the server cache for the img of each ...
0
votes
1answer
667 views

Nginx gives 504 Gateway Time-out once moved to live

I am planning to switch my website (drupal 6.25) from apache to nginx. i have prepared everything for nginx and tested it on port 81. it is working fine. and now i changed listen from 81 to 80 and ...
0
votes
2answers
262 views

Site resolves fine without “www”, “www” creates database error

Working with BOA ( Barracuda / Octopus / Aegir ) , I've installed a few Drupal sites without any problems and following the same process for all. BOA is running on Nginx. All sites are going thru ...
0
votes
2answers
222 views

What email service would work best in this scenario? [duplicate]

Possible Duplicate: Recommended SMTP Relay Service I am using a VPS server at Linode to host a few Drupal websites. For web I am using Nginx, and all email is hosted with Google Apps. I ...
0
votes
0answers
114 views

Nginx path rewrite drupal

I'm having a bit of a trouble with nginx and rewriting. Searching on the internet only shows results for rewriting domains or changing request_uri's, but I'm trying to rewrite part of the uri. ...
0
votes
1answer
200 views

Drupal/pressflow VPS set-up

I'm about to port a high traffic website to Drupal v6.x (maybe 7.x) on a VPS. I have a bit of experience with Linux in the name of Ubuntu. Of course I can relay on a managed VPS package. How ever I ...
4
votes
1answer
2k views

How to set up a private CDN using nginx?

Here is the problem: I have a Linux server in Europe serving a busy Drupal site using nginx+php-fpm, I have another Linux server in the US (where a big portion of my visitors are coming from). The ...
0
votes
1answer
303 views

SSL, nginx, and Drupal - A nightmare

I have installed an ssl certificate on my server, and read a whole lot and did all the different suggested things, but I cannot seem to get the $_SERVER['HTTPS'] variable to show up. Someone please ...
0
votes
1answer
166 views

Nginx settings are screwing up my Drupal form submissions, how do I fix?

How do I tell Nginx to "ignore" specific URLS or pages on my web site? I run a Drupal site where anonymous visitors get served via NGINX while logged in users get served via Apache. We do this to ...
0
votes
1answer
695 views

How many nginx/fastcgi processes do you use?

I have a drupal-based website on a VPS with 1GB RAM and 1Ghz processor share. The webserver is nginx along with php-fastcgi. Currently I am using 10 nginx and 13 php-fastcgi processes. The server ...
4
votes
2answers
1k views

Comparing Nginx+PHP-FPM to Apache-mod_php

I'm running Drupal and trying to figure out the best stack to serve it. Apache + mod_php or Nginx + PHP-FPM I used ApacheBench (ab) and Siege to test both setups and I'm seeing Apache performing ...
2
votes
3answers
353 views

Webserver optimization

I have a website hosted on a VPS (512Mb - minimum guranteed memory, 510Mhz proccessor, Debian 5.0 Lenny, Apache 2.2.9 with nginx 0.7.65 as a frontend to serve static content, MySQL 5.1.44, PHP 5.3.2 ...
3
votes
5answers
15k views

'No Input file specified' error - NginX / fcgi - when requesting non-existant .php file

I have NginX serving a drupal site using fcgi. Attempting to browse to a non existent php file (eg. www.example.com/this-file-doesn't-exist.php) results in a white screen with this error: 'No Input ...