Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nginx]

The tag has no usage guidance.

0
votes
0answers
49 views

Drupal not generate image style for .png

On node edition when i upload new image, like in basic page, all is working with .jpg and .jpeg picture but not with .png. When i upload a new image, the style is well created in 'sites/default/...
0
votes
0answers
150 views

“Broken pipe” between Nginx and PHP-FPM

On 6th January, I updated my Drupal 8 development system (composer update). The following ls listing shows the modules that were updated. drwxr-xr-x 7 drupal8 www-data 4096 Jan 6 02:36 checklistapi ...
1
vote
0answers
89 views

Diagnosing slow requests between Varnish and Nginx

I have been trying to diagnose slow page load time in my local Drupal 7 environment when using Varnish. My local environment runs in Docker using docker-compose. I have a containerised Varnish ...
1
vote
1answer
104 views

Serving Drupal from within a sub-directory of my web root

I need my Drupal 8 website to be served from within a subdirectory of my NGINX_SERVER_ROOT but is doesn't work. Drupal should be reached at mydomain.com/drupal. My NGINX_SERVER_ROOT is /var/www/...
-2
votes
1answer
167 views

Private files and Nginx configuration

How to configure Drupal 7 to have private files folder. And also this configuration is secure within Nginx config.
0
votes
0answers
38 views

Set dynamic $base_url with Domain Access module to avoid redirects

If you run two URLs with Domain module like e.g. main.site.com sub.site.com main.site.com is main site, so if you go to sub.site.com/user and login, it redirects back to main.site.com. This happens ...
1
vote
1answer
110 views

Creating redirects for files (images) on Pantheon

What is the best way to create 301 redirects on Pantheon for file? I can create redirects for paths by placing rules in my settings.php: switch ($_SERVER['REQUEST_URI']) { case '/my-path': ...
0
votes
1answer
267 views

Image styles are not created 404 Not Found

I'm running on Nginx. All permissions are set to 777 and owner is www-data:www-data. Create/edit a node with image_field, upload an image. Original image is uploaded and stored at sites/default/files/...
-1
votes
1answer
314 views

Does the Nginx default block suffice?

The following conf file is my default Nginx conf (it's basically the one shipped with Nginx 1.10.3 in Ubuntu). server { # listen, root, index, server_name, locations; listen 80 default_server;...
0
votes
1answer
434 views

Path aliases don't work

We are running Drupal 7 on NGINX. The config has worked fine except that path aliases are ignored. When we navigate there, we get a "file not found" page instead of a redirection to the node. Clean ...
1
vote
1answer
254 views

Inline images are broken

I'm running Drupal 8.4.3 on PHP 7.0.22 atop Ubuntu 16.04LTS, Nginx 1.10.3 and MySQL 5.7.20, using the OpenSocial distribution. Whenever I try to add an inline image into a basic page using CKeditor, I ...
1
vote
0answers
193 views

Drupal 8 : Serving private files using nginx and X-Accel-Redirect [closed]

We're using private files on a site which is working quite fine. The problem is that if an author uploads private videos which have like 10 minutes length the php worker does not shut down until the ...
0
votes
1answer
139 views

An Nginx site-conf maker for Drupal [closed]

Is this Nginx site-conf maker for Drupal valid? cat << EOF > "/etc/nginx/sites-available/${domain}.conf" server { root /var/www/html/${DOMAIN}; server_name ${DOMAIN} www....
0
votes
1answer
249 views

Enable clean urls drupal 7.56 / nginx - check failed

I have an issue with the clean urls check. When I test there is an error in the Nginx log: 2017/10/06 09:49:01 [error] 468#468: *199 open() "/usr/share/nginx/html/drupal-7/admin/config/search/clean-...
-2
votes
1answer
104 views

Headless Drupal compared to Nginx servings of webpages [closed]

I contemplated both the way Headless Drupal works (from the bit I know of JS and AJAJ in particular), aside to the way Nginx serves webpages. Here's what I know of the term "headless Drupal" and why ...
0
votes
1answer
49 views

How to have two domains for same site, but site working in directory in second domain

Example: www.domain1.com -> Drupal site in root dir (Managed by Apache) www.domain2.com/usa -> Drupal site of domain1.com (Managed by Nginx) The idea is that www.domain2.com/<countrycode&...
0
votes
2answers
3k views

Logging URLs in the PHP-FPM Access Log - possible Clean URL Conflict

I have set up an access log in PHP-FPM under pool.d/www.conf, and I noticed that the log usually constructs the URL as "index.php" with all query parameters, EXCEPT for 'q,' which is the URL. I know ...
0
votes
1answer
61 views

Can view HTML and PHP I wrote but install.php returns error

I installed Drupal8 for the first time to try things out. I used nginx and mySQL on FreeBSD with php-fpm for fastcgi. I have the nginx root set to /usr/local/www/drupal8 cause that's where the install....
1
vote
2answers
2k views

Drupal 8 Image Styles Not Generating - LEMP on CentOS 7

Centos 7 Nginx 1.10.2 PHP Version 7.1.5 Database 5.5.52-MariaDB Drupal 8.3.2 I have exhausted just about every possible google result and every forum post I can feasibly find. Thank you in advance ...
0
votes
1answer
58 views

Configure NGINX on Centos 6.8

I have nginx installed on our server and configured with a previous drupal 7 installation and it works well. I have installed a new drupal 7 installation and i want to configure it to also work with ...
1
vote
1answer
2k views

Nginx Clean URLs don't work

I tried this: How do I enable clean URLs with Nginx? And I tried this: https://www.digitalocean.com/community/questions/how-do-i-enable-clean-urls-with-nginx-for-drupal So, I tried these: location ...
5
votes
2answers
4k views

How to prevent executing .php files in sites/default/files directory for nginx+php7.0-fpm?

URL to Drupal.org article Preventing execution of untrusted PHP By default .htaccess inside sites/default/files contains: <IfModule mod_php5.c> php_flag engine off </IfModule> Adding ...
0
votes
1answer
155 views

Drupal 7: Varnish selective clearing not happening

My setup: nginx 1.10.2 Varnish 4.1 Drupal 7(latest) expire module(set to external) varnish module(set to selective) Purge module: Set to 127.0.0.1:80 Settings.php config: // Configuration when ...
1
vote
0answers
463 views

ModSecurity problem: How to resolve that 404 error page?

I have installed Drupal 7 on latest version of Nginx web server which was completed with the support of the ModSecurity module. I have activated the core OWASP rule set, but when I active ModSecurity ...
0
votes
2answers
661 views

How do I show a 403 error page when the server returns a 403 error code?

I use the nginx config file from https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/ It has return 403 and deny all on some file. Ex. When I visit /core/CHANGELOG.txt, nginx returns ...
2
votes
3answers
716 views

Wrong URL being generated in a view

I have a very strange issue with a Drupal 8 install. My production setup is running on NGINX in a subdirectory - something like www.example.com/abc. The site is running great, but I have seen an ...
1
vote
1answer
317 views

“Place block” ajax error when using nginx

I'm having a lot of trouble configuring nginx properly for Drupal 8. Using the Drupal nginx recipe on the official site works well except for opening modal dialogs like the "Place block" dialog. This ...
1
vote
1answer
1k views

“The specified file temporary://fileXXXXXX could not be copied” warning

If i open my local website there is a indication like this. The specified file temporary://filel17IDM could not be copied, because the destination directory is not properly configured. This may ...
5
votes
2answers
493 views

Installing Drupal on an all-Nginx server - OOB or should you customize / replace any file?

When one downloads Drupal, she gets several .htaccess files with it. These files contain Apache directives written in the Apache variant of the Perl Compatible Regular Expressions (PCRE) language ...
0
votes
1answer
287 views

PHP fatal error on server after deactivating modules

Today our site went down with only white pages showing. The logs from the nginx server looks like this: [01-Sep-2016 10:33:15] WARNING: [pool www0] child 26970 said into stderr: "NOTICE: PHP message:...
1
vote
1answer
1k views

Private folder issues with NGINX

So I have been setting up my Drupal 8 installation and I'm having troubles with my private folder setup. I went on to settings.php and specified the path which I wanted for my private folder as sites/...
1
vote
0answers
34 views

Images 404 error after migration [closed]

After migration images are not loading anymore. To be exact image urls in css files are loading but the ones with full url show 404 error. I am using Nginx and previous site was on Apache. Site is ...
1
vote
1answer
512 views

Returns 403 error after user login

My site was copied from production to test server. It works on Drupal 7 + Nginx + PostgreSQL. On production, user login works fine, but on test server I receive a 403 error on users/admin (or user/1) ...
2
votes
1answer
54 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
92 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 ...
5
votes
4answers
9k 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 ...
1
vote
0answers
446 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 ...
1
vote
1answer
112 views

Ajax problem on node edit page trigger whole submit

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 ...
1
vote
0answers
324 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 ...
2
votes
1answer
358 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
3answers
701 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
809 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
137 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 copy/...
1
vote
1answer
656 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 domain1....
0
votes
0answers
135 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
95 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 : http://localhost/en/batch?id=17&...
2
votes
0answers
1k 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 ...
1
vote
1answer
708 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
311 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 '*.s3....
1
vote
1answer
1k 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 ...