<div dir="ltr"><div>Hi Lee,</div><div><br></div><div>This bit in your Apache config looks wrong: <a href="https://github.com/cnm-Git/Varnish-Default-VCL-Rules/blob/dfc45d79caca4bc05d778ba21e15b1d1ad0892d4/httpd.conf#L102-L114">https://github.com/cnm-Git/Varnish-Default-VCL-Rules/blob/dfc45d79caca4bc05d778ba21e15b1d1ad0892d4/httpd.conf#L102-L114</a></div><div><br></div><div>When a request comes in for https://<redacted>.<redacted>.com it gets redirected to... https://<redacted>.<redacted>.com. Cue endless loop.</div><div><br></div><div>Add rewrite:trace3 (or higher) to your LogLevel to get what's happening in the RewriteRules logged.<br></div><div><br></div><div>Peter<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 22 Sept 2024 at 08:49, Lee Daniel <<a href="mailto:lee@caribbeannewmedia.com">lee@caribbeannewmedia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<div>Hey Guys,<br>
<br>
My earlier question was "When to use Varnish in front or behind
NGinx."<br>
<br>
Thanks much for the responses and advise.<br>
<br>
I actually prefer it the way that was suggested <a style="white-space:pre-wrap">nginx:443</a><span style="white-space:pre-wrap"> -> <a>varnish:6081</a> -> <a>httpd:7080</a>.</span></div>
<div><span style="white-space:pre-wrap">That way, in plesk, I can configure nginx per site.
The issue I am having now is when I set it up that way I get too many redirects.
Through Varnishstat, I can see the hits being made but the webpage won't load.
I have uploaded my configuration on github to reduce the text and ease to read.
If anyone has the patience can you tell me what needs to be adjusted.
I will upload my .htaccess, nginx.conf, httpd.conf and default.vlc.</span></div>
<div><span style="white-space:pre-wrap">Repo <a href="https://github.com/cnm-Git/Varnish-Default-VCL-Rules" target="_blank">here</a>. I hope I did not do a terrible Job redacting.
</span></div>
<div><span style="white-space:pre-wrap">
As of now my backend health is 5/5.
The default.vlc I found online, claim to be well tailored for Drupal sites.
Made little tweaks.
I will appreciate any help.
Regards,
Lee
</span></div>
</div>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Maple Design Ltd<br>
<a href="http://www.mapledesign.co.uk/" target="_blank">http://www.mapledesign.co.uk<br>
</a>+44 (0)330 122 0034<br><br>
Reg. in England no. 05920531</div><div>Prices exclude VAT where applicable</div></div></div></div></div>