Mailing List Archive

banning content from a multiuser web server
Hi,

   I do have a Cpanel server with Wordpress sites. Varnish plugin is
working fine but some users do have non-Wordpress websites and sometimes
they want to purge the whole website and currently I have to do it as root.

  How can I ban a domain within the SSH user account and make sure it
only purges the domains that are hosted in his account?

  Regards,

  Miguel


---
This email has been checked for viruses by AVG.
https://www.avg.com

_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
Re: banning content from a multiuser web server [ In reply to ]
(this was in my spam folder)

Hi,

I think I would create a script that would link an SSH/user account to a
domain, and then do "varnishadm ban req.http.host == $DOMAIN" (no ban
lurker-friendly, but you get the idea)

--
Guillaume Quintard


On Thu, Nov 29, 2018 at 8:20 PM Miguel González <miguel_3_gonzalez@yahoo.es>
wrote:

> Hi,
>
> I do have a Cpanel server with Wordpress sites. Varnish plugin is
> working fine but some users do have non-Wordpress websites and sometimes
> they want to purge the whole website and currently I have to do it as root.
>
> How can I ban a domain within the SSH user account and make sure it
> only purges the domains that are hosted in his account?
>
> Regards,
>
> Miguel
>
>
> ---
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc@varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>