Control Web Panel
WebPanel => How to => Topic started by: MAMAC on December 06, 2018, 03:53:42 PM
-
Hello, im trying to disable varnish on xf2, i try many things that i find on google but nothing works. i still have varnish on xf. Problem is that varnish doesent work ok with xenforo admin panel. he logout u as admin every time u click something in panel.
-
Could you not use the "WebServers Domain Conf" in admin panel and set just that domains config to not use varnish, like i have some sites that use just apache, some that use nginx + varnish and some that use all three and never get any issues
-
I have on same domain wordpress and /forum is xenforo... so i dont want to disable varnish for wordpress only for subfolder.
i try many things in /etc/varnish/ including in hosts i add
if (req.url ~ "^/\forum/") {
return (pass);
}
i try like everything that i find on net but it seems like it doesent apply... i even try to reboot machine after changes...
EDIT:
http://prntscr.com/lrlk2y
-
I would say that maybe you can add the forum as a sub domain and change the config for just the forum forum example domain.com has varnish enabled and then forum.domain.com has a separate just apache ?
-
that is a last solution to change to subdomain :P
-
that is a last solution to change to subdomain :P
i get that, after doing a bit of googling people are saying that it could take some time for it to take effect etc, try restarting the server or at least varnish Apache etc and of course make sure you dont have a cached version of the site, try also using the full path the the folder maybe i dont know exactly but here is what i read.
https://stackoverflow.com/questions/49012502/how-to-make-varnish-not-cache-a-certain-folder
-
I have on same domain wordpress and /forum is xenforo... so i dont want to disable varnish for wordpress only for subfolder.
i try many things in /etc/varnish/ including in hosts i add
if (req.url ~ "^/\forum/") {
return (pass);
}
i try like everything that i find on net but it seems like it doesent apply... i even try to reboot machine after changes...
EDIT:
http://prntscr.com/lrlk2y
try pipe instead of pass
if (req.url ~ "^/\forum/") {
return (pipe);
}