Questions tagged [proxies]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
104 views

Drupal 10 + Apache2 behind nginx reverse proxy setup with subdirectory

I am trying to access my drupal 10 + apache2 installation through a subdirectory. Currently I use nginx as a reverse proxy to access all my services (nextcloud, joplin, grafana) on my server. ...
NIghtshadow1258's user avatar
1 vote
2 answers
980 views

Reverse proxy and auto_complete with mixed content

I have an apache configuration with reverse proxy (IP of this server: 192.168.1.82) to handle my new D9 server: 192.168.1.82 : 443 is passed to 192.168.1.87 as HTTP(80) <VirtualHost *:443> ...
Baud's user avatar
  • 532
0 votes
0 answers
66 views

How do I give a root directory to all requests?

A project I'm working on has a slightly unusual requirement. We have Drupal 9 running inside of Apache and Drupal is currently the only application running on the hostname. Our Drupal 9 installation ...
JonMcL's user avatar
  • 617
1 vote
1 answer
973 views

How to get cache tags invalidation working with Varnish Purger

On my server, I've got Varnish 5.2 working, so far so good. However, any changes made on the site are not shown to anonymous visitors, until the cache expires. I installed the purge module together ...
C.A. Vuyk's user avatar
  • 227
1 vote
1 answer
816 views

How to set up Drupal behind a proxy correctly?

I have a Drupal 7 website on the domain hiddendomain.be:3200. Users visiting publicdomain.be are proxied to the hidden domain. My home page is rendered just fine, but when I log in with the existing ...
Jeroen's user avatar
  • 2,518
0 votes
0 answers
224 views

What should be the reverse proxy settings in settings.php, if a site is behind a Load Balancer which is further behind a Reverse Proxy?

We have a Drupal 8 site, which is behind a Load Balancer (lets say the I.P of Load Balancer is a.b.c.d). This Load Balancer is further behind a Reverse Proxy (lets say the I.P of Reverse Proxy is e.f....
Martin Borugadda's user avatar
6 votes
1 answer
125 views

Module Uninstall Validators and Lazy Services

I have recently been working on creating functionality for a module that requires certain content related to the module be deleted before the module itself can be uninstalled. https://www.drupal.org/...
Stephanie Galata's user avatar
0 votes
2 answers
1k views

Where to use setTrustedProxies() or how to set new trusted proxies

I need to set a trusted proxy in my installation so that secure cookie flags are set correctly. Currently as a temporary measure i am setting the following in index.php $proxies = ['122.128.0.1']; ...
Rob Holmes's user avatar
2 votes
1 answer
255 views

Serve Anonymous Pages when users are logged in for some pages

so essentially I have a Drupal website with great performance for anonymous users and terrible performance for logged in users. What I am looking for is a way to serve some pages that logged in users ...
Simon's user avatar
  • 131
0 votes
1 answer
944 views

Varnish doesn't cache first hit at all, only second hit

I have Varnish 4 with Drupal 7. In Drupal settings.php I have: // Tell Drupal it's behind a proxy. $conf['reverse_proxy'] = TRUE; // Tell Drupal what addresses the proxy server(s) use. $conf['...
user2337504's user avatar
-1 votes
1 answer
187 views

Varnish 4.0 - Drupal says it is working successfully but it isn't in my headers

I have a very basic Varnish setup: backend default { .host = "127.0.0.1"; .port = "8080"; } And that's about it. I have the Varnish module installed as well with the standard defaults and ...
Jack Ryan's user avatar
  • 2,297
-1 votes
1 answer
916 views

Varnish Cache - Sometime Hit and sometime Miss on the same page

It's from the same page. When I first load the page, it's "MISS" if I refresh the page it will "HIT" If I go back to my website home page and come back to the same page again it's "MISS" I refresh ...
mana's user avatar
  • 403
1 vote
2 answers
282 views

How do I setup Drupal/Varnish caching so Content Editors don't see browser-cached pages after logging in?

I've got a bit of a situation going on with our caching solution and would love some input. We use a solution of HAProxy -> Varnish -> Apache. HAProxy terminates SSL and sends that to Varnish which ...
dasginganinja's user avatar
1 vote
1 answer
999 views

Cache max-age and varnish ESI

I need to display a custom block on my homepage. This custom block retrieves some data that are not managed by Drupal. Since no event will happen in Drupal to say that those data have changed, the max-...
Kap's user avatar
  • 113
0 votes
1 answer
1k views

How to setup Recaptcha on pages cached by Varnish?

On a site where a contact form is displayed at the bottom of each page, I implemented Varnish caching. To do so I had to deactivate Recaptcha to avoid 'no cache -must revalidate " headers. I tried ...
Kojo's user avatar
  • 3,523
0 votes
2 answers
1k views

Clearing Acquia Varnish Cache when any content gets updated

I have a drupal 7 site on acquia and everytime one of my editor makes changes to content, I have to manually clear the varnish cache for him. Is there a way to fire this clear cache everytime he ...
Patoshi パトシ's user avatar
0 votes
1 answer
83 views

Need help optimizing a site for speed and response time [closed]

In my Drupal 6 site (fairly busy about 200 anonymous users on average at at time) I have the following setup to speed up the site. Caching Mode - normal Optimize JavaScript files Gzip enabled via ....
user3236765's user avatar
2 votes
1 answer
938 views

How to purge cached content every day via cache tag?

Drupal 8 page has a day specific element which is valid for current day. I would like to add a cache tag so that it can be purged in varnish/fastly periodically. Is there a way to invalidate cache tag ...
vijaycs85's user avatar
  • 2,394
0 votes
1 answer
424 views

Varnish selective clearing not happening

I am using: NginX 1.10.2 Varnish 4.1 Drupal 7 with the following modules Expire (Set to external.) Varnish (Set to selective.) Purge (Set to 127.0.0.1:80.) The settings.php file contains the ...
user1064293's user avatar
1 vote
0 answers
161 views

drupal 8 Restore client's original IP address from apache behind nginx

Is there any simple method can i restore client's original IP address behind nginx? i've tried to add the following code in settings.php, but not work $settings['reverse_proxy'] = TRUE; if (isset($...
hkguile's user avatar
  • 265
1 vote
0 answers
35 views

HTML wrapper not added to views row

In drupal8 site, I have views for showing blog content created a twig file and wrapped with some HTML tag for theming the blog page. Consider I have 10 content on one page. During particular interval ...
Vamsi's user avatar
  • 2,116
1 vote
0 answers
138 views

How do I get flood control to respect X-Forwarded-For? [duplicate]

We're using JWilder's excellent dockergen switchboard to proxy vhosts on our main server. Like most nginx proxies, it sets an X-Forwarded-For header but it can't mask it's own IP address on each ...
DMCoding's user avatar
  • 111
0 votes
1 answer
491 views

How to configure drush with Acquia DevDesktop on Windows to access through proxy?

There are some answers to similar questions using WAMP, but now drush is not recommended under Windows (unless using DevDesktop, which I am). And this is seriously frustrating. I followed the ...
Martin K's user avatar
  • 565
1 vote
1 answer
2k views

Site behind a reverse proxy - subfolder

We are using a public apache web server as a reverse proxy for to show a drupal instance (to the client). The website should come up in http://publicSite/path The Reverse proxy contains basic apache ...
Al-Punk's user avatar
  • 113
1 vote
0 answers
61 views

Possible Cross Domain Proxy Issues

My drupalgap app works fine in ripple emulator when I disable the cross domain proxy options. However, when I compile the app and pull out the debug apk and run the app on emulator the main menu and ...
Arvind Vishwakarma's user avatar
1 vote
0 answers
95 views

Installation through proxy

I am using Drupal 7 and need to make the installer work through a proxy. I can access the installation through my proxy at https://my.proxy/install.php?profile=myprofile&locale=en, but the JS and ...
macurie's user avatar
  • 123
0 votes
1 answer
72 views

Autcache + Varnish modules installed but cache tables growing

I have a site in Drupal 7, multilanguage and multidomain, and when I do a weekly manual database backup (apart from the automated ones), I see that the size of the mysqldump file is of about 200 Mb. ...
Cesar's user avatar
  • 932
1 vote
1 answer
5k views

Stop Varnish from caching 302 redirect from POST responses

drupal_goto() uses a 302 redirect by default, which means a lot of redirects, including form redirects, get served with a 302 response code. Having a issue in Varnish that is caching 302 response ...
jozwikjp's user avatar
  • 151
0 votes
0 answers
322 views

Varnish is working but X-Drupal cache is missed

I have configured varnish on a Digital Ocean server and installed Drupal varnish module. I have confirmed that varnish is running but once i do a test on my site using blazemeter.com the server CPU ...
brainHax's user avatar
  • 663
2 votes
0 answers
2k views

trusted_host_patterns behind reverse_proxy

I'm trying to run Drupal 8.0.5 on Apache 2.4 behind an Nginx reverse proxy (both on the same host). However, I'm running into problems w.r.t. trusted_host_patterns, i.e. I'm getting The provided host ...
Florian Brucker's user avatar
8 votes
5 answers
26k 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 ...
Taylor Taff's user avatar
2 votes
1 answer
4k views

Changing proxy settings and making them effective [closed]

I'm running a Drupal training course at work. For the exercises I've set up an Ubuntu Server VM (with Unity GUI) using VirtualBox. This allows me to port the VM around between my home workstation (...
Martin K's user avatar
  • 565
1 vote
1 answer
66 views

Varnish + Adaptive Theme

Using the Adaptive theme on Acquia platform and seeing an issue with mobile rendered views being cached and served to desktop browsers with block regions hidden for mobile display. The issue seems ...
user3182999's user avatar
1 vote
0 answers
52 views

Varnish does not serve cached content

I have successfully installed Varnish cache with my Drupal instance for both PROD and TEST servers. My PROD server seems to work without any problems. However my TEST server (which has the SAME ...
Labrosb's user avatar
  • 61
1 vote
1 answer
2k views

How to use drush with proxy [closed]

I am using Acquia Dev Desktop 2 for my Drupal 8 project, I tried to download module with Drush. But I can only access the internet via a proxy. How can I configure drush to use the correct http proxy ...
Good Taofiq's user avatar
1 vote
0 answers
383 views

Varnish 4.0 (authcache) not working for authenticated users on drupal 7.41

I've configured Varnish 4.0 through authcache and its working perfectly fine for anonymous users but for authenticated users it always shows "MISS" both in authcache debug and browser response headers....
Himanshu Sharma's user avatar
0 votes
1 answer
160 views

Drupal 8 css and images relative to root

I have the challenge that I want my site to be cache-able by and external varnish cache provider. Most of my page gets cached nicely, but elements like the ico file, images and css are written with ...
Jonasdk's user avatar
  • 485
4 votes
1 answer
2k views

Multiple login attempts from different IP Addresses

My website has been getting about 25 login attempts per hour for the past few days for usernames admin, administrator and our website name. The attacker seems to be using differing IP addresses and ...
Robert Lee's user avatar
2 votes
1 answer
939 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 ...
Taylor Taff's user avatar
2 votes
2 answers
859 views

Varnish has no SSL support; then what to use?

As the developer of Varnish, Poul Henning, wrote back in 2011 on https://www.varnish-cache.org/docs/trunk/phk/ssl.html and again this year on https://www.varnish-cache.org/docs/trunk/phk/ssl_again....
Nick's user avatar
  • 347
0 votes
1 answer
694 views

Bluehost cloud hosting, varnish caching issue authenticated user

I have narrowed down my problem to varnish on my cloud server provided from bluehost. When logged in you make an edit, but it is not reflected back until 5-10 minutes later. Clearing all caches, ...
SoundCheese's user avatar
3 votes
0 answers
695 views

Configuring Varnish for Drupal with Proper Module Usage (Expiration Cache, Varnish, Purge, Memcache)

Can someone help me straighten out my setup? What is needed...what isn't? Varnish has been working well with a high hitrate average, but I am really trying to dial in my configuration. Any insight ...
gvall's user avatar
  • 31
0 votes
0 answers
62 views

Import a Batch of Nodes via Feeds Module on Varnish environment

I have some problems on import node via Feeds module. I already set feeds importer and it worked fine on the dev site and local site. But It have some problems on the site with varnish already ...
cobenash's user avatar
  • 632
1 vote
1 answer
235 views

How to check if is anonymous user's first visit to site when using varnish

If one has a Drupal 7 site which uses varnish for caching, is there some method which would enable one to serve a different version of front-page if it is first time the anonymous user has visited the ...
Benjen's user avatar
  • 928
1 vote
2 answers
1k views

Reverse proxy causes issue with CSS links and HTTPS [closed]

I have multiple Drupal instances behind a F5 load balancer. If I use it as http, that is OK. If I want to use http and https and ofload https on the LB, all CSS and JavaScript links in the https site ...
edib's user avatar
  • 111
2 votes
1 answer
882 views

Varnish is serving sometime wrong cache theme on desktop or in mobile

Setup - We have Varnish in front of three drupal backend server. Varnish is serving as a cache and load balancer. Load balancer is using round robin director. It also does the device detection ...
ashish kushwah's user avatar
1 vote
0 answers
423 views

Detect mobile device and redirect only specific URLs

We are using Acquia Mobile Redirect module to detect mobile device and redirect accordingly and it's working correctly on Acquia cloud. Its redirecting every request on mobile device. But the request ...
user2114603's user avatar
1 vote
1 answer
2k views

Access denied at password reset page when logging in

I run a D7 site that for some reason is not allowing users to reset their passwords, but only on the server. The email with the one-time login link is sent just fine, but when the user clicks on the ...
wonder95's user avatar
  • 1,201
1 vote
0 answers
380 views

S3fs redirect aggregated file to s3 failed [closed]

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....
user3467070's user avatar
0 votes
1 answer
320 views

Detect device using Varnish

I have some difficulties finding a correct code (VCL) to configure varnish to detect if the device is a tablet or a mobile or a desktop. Here is the best module version found today, but still not ...
Ismail H's user avatar
  • 389