Questions tagged [proxies]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
760 views

Proxying a subdirectory to a remote 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 ...
0
votes
1answer
788 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 ...
7
votes
1answer
2k views

How to set up Authcache module with Varnish and ESI?

I am trying to set up Drupal 7 with Authcache beta 2 and Varnish 3.0 but I can't get the ESI blocks working. Varnish it self seems to work well. I am using the example.vcl from sites/all/modules/...
1
vote
1answer
53 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 ...
0
votes
1answer
409 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
408 views

How do you make Varnish cache update when Drupal content changes?

I just started playing with Varnish cache. Looks like an awesome thing to have for speeding up page load times! How does one force the cached copy of a node/page/content to be updated when the ...
0
votes
1answer
356 views

Drush Hangs on wget but wget Works

Every drush command I run hangs on wget. However, if I run wget outside of drush, it works just fine. I am behind an http proxy and suspect that's factoring into the problem. I don't understand why ...
5
votes
1answer
36 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/...
1
vote
2answers
753 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 ...
0
votes
0answers
482 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 ...
1
vote
0answers
356 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....
2
votes
4answers
1k views

Redirecting Drupal multisite non-www to www with varnish / nginx

I'm building Drupal multisite with 35 sites (~60 different domains) and I'd like to redirect non-www urls to www regardless of domain. Nginx is redirecting all domains to Drupal install folder. I've ...
0
votes
0answers
490 views

How to cache whole pages using nginx?

Currently I am using nginx and php5-fpm behind Varnish to render pages. It is great of guest users; however, I feel it is a bit slow and error-prone for authenticated users, and I'd like to disable ...
1
vote
2answers
2k 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 ...
6
votes
1answer
8k 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
438 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 ...
4
votes
3answers
2k 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: http://domian....
0
votes
1answer
300 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 ...
0
votes
0answers
18 views

Configure settigs.php proxy options to run a Drupal with apache proxy

I'm trying to use a docker-compose inside a server, Apache it's configure to use proxypass to send the trafic to the docker. The problem it's that the images urls are with this path: http://...
0
votes
0answers
38 views

How to change base url in Drupal 8 in reverse proxy?

Drupal is configured with reverse proxy server and sometimes user gets redirected to internal host instead of the configured domain.
1
vote
1answer
52 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 ...
-1
votes
1answer
960 views

Drupal not able to make any outgoing HTTP requests

So, my drupal setup is on a NAS architecture. It's a portal for a college department and is hosted on the campus NAS. This basically means that my web server has to connect through an internal proxy ...
1
vote
2answers
1k views

varnish + multiple webheads = files/(css/*.css|js/*.js) missing

I have this weird issue and I'm not sure if it's me who's doing something wrong or I'm just missing something but maybe some of you can guide me a little bit here... i setup a varnish server, within ...
0
votes
2answers
270 views

Cannot post new content after installing varnish

Our drupal 7 site was running so slow it was almost unresponsive, so I had to install varnish 2.1.5 this weekend. I got it up and running, and everything is now lightning fast, users can login and ...
0
votes
0answers
94 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....
4
votes
2answers
4k views

How to clear varnish cache using drush? I'm on acquia cloud dev account

im working in an acquia cloud environment and currently im clearing the varnish cache via the web interface. is there a drush command to clear varnish cache while using an acquia environment.
2
votes
1answer
3k 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 (...
6
votes
5answers
16k 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 ...
3
votes
1answer
9k views

Can't get Varnish working properly, not caching anything. (varnishd is running , status is tick)

System info: Ubuntu / LAMP Drupal 7.14 Varnish 3.0.2 Varnish module: 7.x-1.0-beta1 http port 80 I have installed Varnish in server. I started it as: $ sudo varnishd -f default.vcl -s malloc,1G -...
1
vote
0answers
533 views

Scheduled publishing timings, cron, cache clear

We have a site where users make extensive use of scheduler to schedule publishing of articles etc. Site crons are run externally through drush and elysia_cron is installed to give fine-grained ...
0
votes
1answer
565 views

Problem with aggregated CSS/JS on flush cache

We are using Varnish and Pressflow (v6.30). Every time we flush cache in Drupal, we encounter problems where browsers can not get requested CCS/JS aggregate files as they do not exist. We have found ...
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 ....
4
votes
4answers
8k views

How can I clear the Varnish cache?

We have installed node queue module on Pressflow 6 + Varnish. For clearing the varnish cache for node queues, we developed rules using the Rules, and Cache action modules. Whenever we update the ...
0
votes
1answer
971 views

Gateway timeout error from proxy server

I was recently developed a drupal site for a client who lives in HongKong. The site worked perfectly (is still functional when I access it) But after deploying it for demo, the client compalained that ...
0
votes
2answers
382 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']; ...
1
vote
0answers
171 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 ...
2
votes
1answer
166 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
2answers
946 views

Can't login with varnish enabled

I can't login from the front-end with varnish installed. Here's what I think it is issue sub vcl_recv { # Do not cache these paths. if (req.url ~ "^/status\.php$" || req.url ~ "^/admin$" || ...
0
votes
1answer
664 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, ...
0
votes
1answer
708 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
177 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 ...
2
votes
1answer
601 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 ...
-1
votes
1answer
779 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 ...
4
votes
4answers
2k views

Varnish and page cache

I have a question about using Varnish along with the Drupal page cache. I was wondering if using both of them is a bit redundant, since Varnish already caches pages for anonymous users? Currently I ...
1
vote
2answers
181 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 ...
0
votes
0answers
173 views

How to set Content-Lenght http header for images?

How to set the Content-Lenght header or any other header for images? I need it to set a rule in the varnish to not cache images larger than 500kb.
1
vote
1answer
697 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-...
5
votes
3answers
2k views

Letting anonymous users vote in a poll when using Varnish

I have a poll on my front page that I want users to be able to vote on, but anonymous users always just see the results and are never able to vote. I've been trying just about everything I can think ...
0
votes
2answers
799 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
2answers
921 views

Problem with admin_menu and Varnish

I'm a beginner with configuring varnish, so my apologies if this is a stupid question. I am trying to make things work on my ubuntu VM (12.04) with Varnish 3. I am facing a problem, where after I log ...