Author Topic: Nginx & Varnish & Apache  (Read 8884 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Nginx & Varnish & Apache
« on: January 10, 2020, 09:05:18 AM »
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.

Offline
*****
Re: Nginx & Varnish & Apache
« Reply #1 on: January 10, 2020, 12:20:20 PM »
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

Offline
*
Re: Nginx & Varnish & Apache
« Reply #2 on: January 11, 2020, 03:54:30 PM »
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

Offline
*
Re: Nginx & Varnish & Apache
« Reply #3 on: January 11, 2020, 05:49:15 PM »
+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

Offline
*****
Re: Nginx & Varnish & Apache
« Reply #4 on: January 20, 2020, 08:52:30 AM »
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