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
1answer
7 views

Need to alter response headers for error pages

We have Cloudflare sitting in front of our Drupal sites - and in order to take advantage of their "AlwaysOnline" feature - we need to alter the response code sent in the event of an error. I want to ...
0
votes
0answers
32 views

Page cache is not working over HTTPS

I have a Drupal 7 site that is served over HTTP and HTTPS protocols using default ports (80, 443). Cache is enabled of anonymous users. However, the whole cache functionality works only for HTTP ...
0
votes
1answer
48 views

How to correctly configure settings.php to use reverse proxy and ssl termination

In settings.php there is the section "Reverse Proxy Configuration". It suggests settings to add when you are using a reverse proxy and SSL termination. Nginx is listening on port 443, adds the ...
0
votes
0answers
18 views

Allow access to private files only to Drupal, rest all 'access denied'

I have a drupal 7 installation with PDF module on NGINX server. I have a PDF.js field configured in all of the content types, PDF uploads through this goes to private (I NEED this as private). pdf.js ...
0
votes
0answers
27 views

Ajax problem on node edit page trigger whole submit on Drupal 7

I'm facing a very strange problem on one website. First of all with the module media (I'm using the last version of the module). When click on "Remove" an image, an ajax request is triggered and ...
0
votes
0answers
32 views

Drupal + nginx no CSS

I'm having issues with drupal on nginx. CSS is not displaying but the website is working and I have no clue why this is happening. I have installed nginx + php70-fpm on Mac OS El Capitan and I am ...
1
vote
0answers
26 views

index.php is added in front of paths for anonymous users

I have a new Drupal 8.0.4 site running on Nginx, and I just noticed that the paths for anonymous users have a superfluous index.php in front of them. So instead of mysite.com/node/123 I get the ...
1
vote
2answers
89 views

Drupal 8 update.php/selection - access denied

I wanted to update d8 from 8.0.1 to 8.0.2, but i couldn't run the update.php due to the error "Access Denied". Am logged in as user1 which should have all required privileges.Following the drupal 8 ...
3
votes
1answer
119 views

Is using a TLS/SSL termination reverse proxy currently possible in Drupal 8

I use Nginx (port 443) which terminates TLS/SSL then forwards the request to Varnish (port 80) and on to Apache (port 8080). This worked really well for D7. Am I correct in thinking that because of ...
0
votes
1answer
57 views

Local moved to Server all nodes 404

My homepage works perfectly fine on the live server but when I use any of the links they give me a 404 Page not Found. I tried a couple things which was: Made sure .htaccess was there Tried a ...
0
votes
0answers
13 views

Boost uses different dir permissions depending on language

I'm using boost module on a multilingual site for super fast static caching. Everything works like a charm with one exception: When boost writes cache files it creates per domain directories (the ...
0
votes
1answer
59 views

Multi-site with two sites sharing the same domain?

There is absolutely no problem to have multi sites, where: domain1.com points to site A domain2.com points to site B But I want to have multi-site setup, where: domain1.com points to site A ...
0
votes
0answers
35 views

Services links not followed with nginx

I am running drupal on nginx and I have the services module installed (https://www.drupal.org/project/services). I have some views enabled to get and edit web content via http requests. The url's are ...
0
votes
1answer
50 views

Url params not working -> access denied

I'm new to Drupal 8. I tried to do some batch process (for example installing modules or importing language files). I got access denied for example on this address : ...
0
votes
0answers
17 views

How to configure VPS Nginx for Drupal?

I use nginx + php5-fpm. I work with IDN domains like пример.рф and usual latin domains like example.com My sites work on Drupal 7. But Drupal reports this: http request status error. Error is with ...
1
vote
0answers
219 views

Settings for cache and proxy with Vesta Control Panel in a Drupal site

In a site powered by Drupal 7 and a Vesta Control Panel I have a problem with cache, or proxy settings. When a visitor respons to a poll, the IP recorded is the IP from the servor, not from the ...
0
votes
1answer
163 views

Urls without question mark are served with 404 in Drupal 7 with Nginx

I am migrating an Drupal 6 site to Drupal 7. I encountered some behavior, I cannot explain and would like to ask the community. As I was testing if all urls work, I noticed, that there are urls like ...
1
vote
0answers
99 views

S3fs redirect aggregated file to s3 failed

I follow the s3fs's readme to redirect aggregated files. It didn't work. Got 403 error in the nginx access log. Here is my nginx conf. location ~* ^/(s3fs-css|s3fs-js)/(.*) { set $s3 ...
1
vote
1answer
250 views

Thumbnail generation with nginx reverse proxy

I'm using nginx as a reverse proxy for a Drupal 7 site running on Apache2. When I try to view a thumbnail I get the Drupal 404 page saying that the location is not found. I have implemented the ...
1
vote
1answer
299 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
169 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
169 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 ...
1
vote
0answers
48 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
11 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
41 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$ - ...
1
vote
1answer
65 views

403 error in files while hosting drupal site in hostgator

I'm trying to host my drupal site in Hostgator. Here what i've done so far: a. uploaded files to server, created db and user and imported too. b. Change settings.php database content. My site is up ...
1
vote
2answers
130 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
132 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 ...
2
votes
2answers
944 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: ...
1
vote
0answers
204 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
3answers
890 views

How do I access update.php 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 real ...
0
votes
0answers
1k views

Set Cookie in response header

I'm 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 ...
1
vote
1answer
245 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
916 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 ...
1
vote
1answer
219 views

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

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 it ...
0
votes
1answer
150 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
2answers
1k 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
843 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 ...
1
vote
2answers
339 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
307 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
2k 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
2k 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
174 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 ...
5
votes
1answer
96 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 ...
0
votes
0answers
708 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
1k 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
3k 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 ...
1
vote
1answer
3k 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
230 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
660 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 ...