Nginx & Varnish & Apache

Started by stkontra, January 10, 2020, 09:05:18 AM

Previous topic - Next topic

stkontra

Hi,
When Nginx & Varnish & Apache webserver is selected, should the .htaccess mod_rewrites work? Or only those in the nginx vhosts config files?
None of them seems to be working when I am trying to setup a rewrite for jpg -> webp images.

Igor S.

Hi, if you using Apache then .htaccess will work well.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

stkontra

Thanks Igor,
Yes I know that but the question is if use the 3 of them combined:
See screenshot: http://kontranet.hu/Screenshot2020-01-11at16.52.29.png

x1705

+1 for that Question.. @igor too, i have had the exact same difficulty with my .htaccess files when running ALL THREE services.
(apache+nginx+varnish)... it is tricky at best.. i don't recall exactly what i had to do, but it was not right.  thank you.

Cheers.
X

Igor S.

in this case .htaccess works fine. Or I did not see it does not (do not like Varnish).
So, if you use nginx+Apache .htaccess work fine. I believe it works with Varnish too



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services