Questions tagged [nginx]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
1answer
25 views

When installed in a subdirectory clean URLs don't work

I have my Drupal installation in the subdirectory with the following config file server { listen 80; server_name example.com root /var/www/example; access_log /var/log/nginx/...
0
votes
0answers
32 views

502 Bad Gateway nginx for a drupal sub-directory site install

I have a default drupal 8 site install and a sub directory site install. The second Drupal site was an after thought and had to be hosted on the default site url in a sub folder. both sites share the ...
0
votes
0answers
35 views

Tell the site to ignore the file path

I have a d7 site with static files under the docroot. (www.example.com/top-directory/sub-directory/file.php) I want all of the pages to follow the '/top-directory/sub-directory' URL pattern, ...
0
votes
0answers
171 views

Nginx virtual host configuration for multisite with sub-directory

We've Drupal multi-site (with different domain per site) running with single Drupal 8 code base and nginx. Now we wanted to setup Drupal Milti-site with sub-directory for few websites in following ...
0
votes
0answers
20 views

Nginx URL rewriting giving 404

I have a URL of something like www.something.com/development/2019/06/24/xxxxxxxx and I have rewrite it to www.something.com/news/xxxxxxxx I have written following code in nginx rewrite ^/...
0
votes
0answers
61 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
669 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
153 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
266 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
223 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.
1
vote
1answer
236 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
452 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
406 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
549 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
285 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
248 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
161 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
301 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-...
0
votes
2answers
5k 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
81 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....
2
votes
4answers
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
61 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
3k 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 ...
0
votes
1answer
222 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
578 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
802 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
917 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
362 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
2k 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
697 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
312 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
38 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
622 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) ...
0
votes
0answers
100 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 ...
6
votes
5answers
13k 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
489 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
152 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
386 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
2answers
457 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
801 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 ...
2
votes
1answer
842 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
732 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
143 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
110 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
806 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
336 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 ...