nginx is an open source Web server and a reverse proxy server for HTTP, SMTP, POP3 and IMAP protocols.

learn more… | top users | synonyms

0
votes
0answers
23 views

Page not found after copy site to nginx localhost

I have problem after copy my Drupal website from production server to localhost. (There I use the latest version of nginx) I have used this procedure. But I have modified local hosts file this way: ...
1
vote
0answers
18 views

rewrite with nginx conf result 502 bad gateway

My code is based on http://wiki.nginx.org/Drupal and the result is 502 bad gateway. I have tried so many ways but dont work.... how i can solve this? thanks server { listen 8093; ...
0
votes
0answers
22 views

Drupal amazon s3 image styles not generated

My server configuration: drupal 7 + multisite, nginx + varnish and Amazon s3 storage for image assets. I have my website images in amazon s3 storage. I can able to upload the images via drupal into ...
0
votes
1answer
25 views

How to deal with files with %20 in name in Nginx

I have imported a lot of files from apache staging to nginx live and the files that have been rewritten by apache (%20 etc) are not being read by nginx, although nginx has no problem with me uploading ...
0
votes
0answers
12 views

Varnish + nginx + advagg “HTTP requests to advagg for css files are not getting through.”

I get this error in the reports page when I view my site through Varnish( and then nginx). When I check it directly from the nginx there are no errors since we found a fix. Any idea how to configure ...
0
votes
0answers
14 views

Thumbnails not being generated from symlinked directory

We have set up a symlink that points outside the webroot. The symlink points to a directory that contains images. The images are accessible on the site, but Drupal is not creating thumbnails of the ...
0
votes
0answers
10 views

How to enable Clean URL's in Drupal 7 running on Nginx server? [duplicate]

I would like to enable clean urls in drupal 7 running under nginx server. I have tried alot of suggestions from the internet, but none worked. Here is my /etc/nginx/sites-available/default code ...
1
vote
0answers
24 views

How should I translate the “double gzip” parts of default .htaccess into an nginx directive?

There is this section of the default .htaccess: # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1] RewriteRule \.js\.gz$ - ...
0
votes
0answers
104 views

Clean URLs not working with localhost on drupal 7.34 install with nginx 1.4.6

I have installed nginx 1.4.6 and php-fpm on ubuntu 14.04 with drupal 7.34. The web root is /usr/share/nginx/html and my drupal install is in a subdirectory of this at /usr/share/nginx/html/drupal. I ...
0
votes
2answers
57 views

URLs aren't working after site migration

My problem is two fold: After migrating my site, many of the URLs aren't working, and producing 404 errors. But the main landing page is working, and so are most/all of the features on the main ...
0
votes
1answer
65 views

Remove language prefix from file url on drupal 6

We have a multilingual site on Drupal 6. which seems to work fine, we created a rotor view on the default language (en). This views looks great on default language which loads without any language ...
1
vote
2answers
472 views

Private files not found 404 error

My installation is Drupal 7 + Nginx + Varnish cache My private files path: sites/default/files/private/demo.img URL in browser: system/files/demo.img When I try to open private file: ...
0
votes
0answers
152 views

Drupal instalation throws 502 gateway error while connecting an external oracle database server

I need to install Drupal 7.34 on nginx web server with oracle 12 as database. Oracle is listing in DB list. But after submitting the DB and server details, it fails. I am posting the error that I got ...
1
vote
2answers
288 views

How to access update.php in Drupal 8 using nginx?

I would like to use Drupal 8 (beta) with nginx. It works correctly, except update.php . It doesn't find it. After analysing .htaccess (which is not processed by nginx) I realized, that there is no ...
0
votes
0answers
596 views

Set Cookie in response header

I am actually having a strange problem with one of my drupal installations. While I was trying to setup nginx for one of my sites, I ran into an issue that only the frontpage wont get cached. After a ...
0
votes
1answer
124 views

URL rewrite of localisation with nginx

I'm having trouble with changing the url of a drupal localisation. All urls are clean, but contain a non-clean localisation part; ?q="language", e.g. ?q=de, ?q=fr. The site runs on nginx + mysql + ...
0
votes
2answers
481 views

Advagg and Nginx

I have the following errors displayed on my status report page: Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for js files are not getting through. AdvAgg will issue a request for a file ...
0
votes
0answers
37 views

Caching issues on alias site

Hello I have a live site which has a web URL ( www.mysite.com) . On sites.php I configured another alias, lets call it apimysite.com. These sites are all on a stack that looks like this: DNS --> ...
1
vote
1answer
155 views

Drupal Commerce, Can't add to cart without HTTPS enabled

Well I have a quite weird situation here, I assume this problem must be a server side issue, but so far I couldn't figure it out how to fix this. I have a Nginx server with Varnish (I even disabled ...
0
votes
1answer
79 views

nginx rewrite for drupal

I have installed Nginx and I have a Drupal site installed in a sub folder. I also have a directory in /drupalpath/sites/default/files/books/ that stored some PDF in it. I configure my nginx like this: ...
1
vote
1answer
576 views

Drupal installation in nginx subdirectory

I have a new application that will be made of 2 frameworks yii and drupal 7 Yii framework will be in the root (/) and drupal will be in a sub directory called admin (/admin) I have a problem how to ...
0
votes
1answer
655 views

rule to remove “Public files directory Not fully protected” in nginx?

I use D7 with nginx and php5-fpm on Linux and get this security warning: Public files directory Not fully protected I see here that one needs to use this snippet in Apache's htaccess to resolve ...
0
votes
1answer
177 views

Access denied when enabling or setting by default a theme (on Nginx)

I get an Access denied error page when attempting to enable or set by default a theme. It is kinda weird as I am allowed to perform other admin tasks. I checked that my user is an administrator and ...
0
votes
1answer
221 views

Drupal multi-site Aegir caching strategy

We are migrating many sites from various content management systems onto a single Drupal/Aegir platform. We used to have a high density of sites on the same servers and Aegir definitely makes managing ...
2
votes
1answer
1k views

Redirect does not work on nginx

I'm migrating an old site to Drupal (using migrate module), and I've managed directly in code all old urls to redirect to new Drupal urls using redirect module, for example: ...
4
votes
1answer
1k views

Drupal behind a SSL offloading reverse proxy — is this config correct?

We are transitioning an existing drupal installation to run as a SSL-only site behind a SSL offloading proxy. Drupal itself has no SSL and is running on port 80 on apache. We've got what we think is ...
0
votes
1answer
132 views

BOA installation caching does not refresh

I have recently migrated an existing site into a fresh BOA platform. The problem I am facing is that the cache for the anonymous users is never cleaned, when new content is added. The anonymous user ...
2
votes
0answers
66 views

Running simpletest tests with clean urls on nginx

Having Drupal 7 on nginx with enabled clean urls. nginx config: location @drupal { rewrite ^/(.*)$ /index.php?q=$1 last; } When trying to run tests getting message: You are not authorized to ...
1
vote
0answers
532 views

system/ajax 502 Bad Gateway error

It's been almost 2 days I've been trying to get over this issue but I can't. So I have a content type and in Manage Display section I have a "rendered view" field using node reference, Display Suit ...
0
votes
1answer
786 views

Perusio Nginx Config and AdvAgg

Problem The latest in my series of nginx problems. I'm trying to get Perusio's nginx config working with AdvAgg. However I get an error, 404 requests are not getting through to AdvAgg. Basically ...
2
votes
1answer
2k views

Drupal nginx configuration. PHP files being downloaded

Problem I'm trying to configure my nginx server. I've been building from the default rather than jumping straight into Perusio's because I don't understand a lot of it. I'm trying to deny access or ...
0
votes
1answer
2k views

Setting up the private file directory (nginx)

Problem I'm trying to set-up a private file directory for Drupal on an LEMP stack (Ubuntu 12.04, nginx, MySQL, PHP), I wasn't 100% sure about the permissions or set-up so I thought I'd ask, how ...
0
votes
2answers
192 views

Can this PHP node leak memory?

I have a Drupal 7 installation that apparently leaks memory somewhere. The memory usage of nginx is going up in production until the server fails. This started basically when I added a new node with ...
1
vote
1answer
500 views

Using reverse proxy prevent login flooding

I have set $conf['reverse_proxy'] = TRUE; in settings.php, but the IP address logged in the flood table is 127.0.0.1, not the one passed through the X-Forwarded-For header. Nginx is configured to send ...
1
vote
2answers
856 views

Can't disable or enable any module

I recently moved a project from one server to another. the server is running on nginx. I noticed some issues like that I cant upload any picture to ckeditor using imce module (I can upload images ...
0
votes
1answer
196 views

Drupal 404 not found with SOME browsers

hello I have a drupal multisite setup, with the same modules and paths enabled ( services with REST endpoints). I have some weird behavior: on site1 I call a URL and get the HTTP status 401 ( which ...
0
votes
2answers
174 views

After migrating D6 only homepage works

I've migrated a D6 site to a new server and now it's working in a very strange way: Homepage loads OK Update.php and install.php loads OK Any other page (including /admin, /user...) doesn't work. ...
0
votes
0answers
191 views

Running drush on pressflow (D6) + nginx server

SO, I have been using drush from past many years on an apache server and it has been working like charm. I have a multisite setup with Drupal and run around 100 subdomains. In my situation, I feel ...
0
votes
1answer
2k views

Pathauto URL alias not working (using nginx)

I'm having several problems with URL paths (Drupal 7). I think they are related with nginx configuration, because I'm experiencing this problems since I migrated the site from an apache server to an ...
30
votes
3answers
79k views

Nginx vs Apache - Are there any actual usage comparisons and statistcs out there?

I have a new server to play with, and I am staring at a blank canvas. I can put anything I want on it. While I am comfortable with Apache, I keep hearing how nginx can handle so much more traffic than ...
0
votes
1answer
846 views

boost and nginx compatible?

Is the boost module compatible with nginx ? Or does boost support nginx integration? If so where can one find the default nginx rules for installing boost? The module requires installation using ...
0
votes
1answer
237 views

Nginx with boost serves cached pages to logged in users

I run my d7 using boost under nginx. Previously i had apache server so the .htaccess generated by boost module has the rewrite_mod for logged in users in order not to hit cached pages. What is the ...
0
votes
1answer
480 views

Clearing cache causes nginx error

Whenever I clear cache from the admin panel (or hit the url directly) I receive an nginx error (but nothing specific is being logged). There are no PHP error logs being created for this either. ...
1
vote
1answer
168 views

create email id for registered users in Drupal 7 and Nginx

I am working on a Drupal 7 site which lets users to register using their email, when the user verifies their email address, I am planning to create new email address for them to use, which has ...
7
votes
1answer
6k views

How do I enable clean URLs with Nginx?

I'm using Drupal 7.x. I have achieved to make it work without clean URLs. Investigating, I have understood that I should create a vhost for each drupal site and enable clean URLs with the following ...
8
votes
3answers
8k views

Is there a common nginx conf for Drupal 7 sites?

I've taken a look at Perusio's drupal-with-nginx repository and while I think it's impressive how extensive it is, it may be a little too advanced for me at the moment, plus I have several Symfony2 ...
1
vote
2answers
639 views

Redirecting Drupal multisite non-www to www with varnish / nginx

I'm building Drupal multisite with 35 sites (~60 different domains) and I'd like to redirect non-www urls to www regardless of domain. Nginx is redirecting all domains to Drupal install folder. I've ...
0
votes
1answer
423 views

Drupal on nginx: 404 Error

I'm migrating my drupal websites from a server running with Apache web server to a Nginx server. The problem is, I can't access any of my websites on the nginx server. It redirects me to a 404 error ...
1
vote
1answer
274 views

How does Drupal check write permissions for a folder?

How does Drupal check the write permissions on a folder in Linux? I am using php5-fpm and the web server is working as the user that owns the Drupal directory and I expect that even with a 700 the ...
0
votes
1answer
3k views

Special type of nginx redirect: redirect only if $request_uri is empty

I need a special type of redirect for a Drupal 6 website. I'm thinking that the best place to do this is in an nginx config file, but please correct me if I'm wrong. I know I can do it in a template ...