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 [proxies]

The tag has no usage guidance.

0
votes
0answers
25 views

Running a site with a reverse proxy and subpath

I'd like to run a Drupal 8 site from behind a CDN as a subpath. What that looks like is: Canonical D8 install: somedrupalsite.companyname.com CDN edge domain: www.example.com D8 accessible at: www....
3
votes
0answers
21 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/...
0
votes
0answers
24 views

Access denied while using IPv6

I have a drupal 8 setup running behind an HTTP proxy(mod_proxy). The proxy server is working on an IPv4 IP, and the back-end server is working on IPv6. I was able to connect to drupal via browser. ...
1
vote
0answers
116 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 ...
0
votes
2answers
141 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']; ...
2
votes
1answer
75 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 ...
0
votes
1answer
465 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['...
-1
votes
1answer
124 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 ...
-1
votes
1answer
590 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 ...
1
vote
2answers
154 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 ...
1
vote
1answer
544 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-...
0
votes
1answer
672 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 ...
0
votes
2answers
552 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 ...
0
votes
1answer
64 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 ....
2
votes
1answer
483 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 ...
0
votes
1answer
176 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
92 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($...
1
vote
0answers
34 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 ...
1
vote
0answers
70 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 ...
0
votes
1answer
316 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 ...
0
votes
1answer
1k 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 ...
1
vote
0answers
60 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 ...
1
vote
0answers
73 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 ...
0
votes
1answer
44 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. ...
1
vote
1answer
3k 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 ...
0
votes
0answers
282 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 ...
1
vote
0answers
835 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 ...
5
votes
4answers
10k 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 ...
2
votes
1answer
2k views

Changing proxy settings and making them effective

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 (...
1
vote
1answer
61 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 ...
1
vote
0answers
47 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 ...
1
vote
1answer
1k 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 ...
1
vote
0answers
304 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....
0
votes
1answer
112 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 ...
4
votes
1answer
737 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 ...
2
votes
1answer
821 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 ...
2
votes
2answers
590 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....
0
votes
1answer
650 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, ...
3
votes
0answers
641 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 ...
0
votes
0answers
40 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 ...
1
vote
1answer
199 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 ...
2
votes
2answers
727 views

Drupal batches return error “No Active Batch”

Whenever I run any functions that require a batch to run (delete users, manually check for updates, etc.), the Batch API returns an error "No Active Batch". I have scoured the internet for pointers, ...
1
vote
2answers
536 views

drupal behind reverse proxy

I have multiple drupal instance behind f5 load balancer. If I use it as http, that is ok. But if I want to use http and https and ofload https on the LB. All css,js links in https site comes as http ...
2
votes
1answer
715 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 ...
1
vote
0answers
373 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 ...
1
vote
1answer
1k 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 ...
1
vote
0answers
319 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....
0
votes
1answer
293 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 ...
0
votes
1answer
645 views

Proxying a subdirectory to a remote Drupal site

The goal Make all requests to a previously static page at https://www.example.com/sub/folder on server 1 (Proxy) ACTUALLY go to a Drupal site at https://other.example.com on server 2 (Origin) This ...
1
vote
0answers
158 views

User landed on cached page instead of language selection page

Problem : On multilingual site, varnish caching is enabled. When any user call www.example.com, page gets cached to the first visitor's language preferences. All subsequent visitors get pages in that ...