Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - thewebexpert

Pages: [1]
Varnish / Varnish Cache Age 0
« on: February 22, 2023, 12:56:44 AM »
Dear Forum, I hope that you can help me resolve this ... I have activated Nginx & Varnish & Apache, Website when I CURL returns AGE : 0 and i see that Varnish Cache is serving the site

However the test code <?php
echo rand(1, 99);

returns a different number every time, so even through curl shows varnish in the header, varnish is not caching.

I edited he webserver config for the domain and selected Vanish,  Selected the Wordpress.tpl file, rebuilt config and the site is up and running. I do not know what is missing, I suppose the website could be very busy and filling the cache perhaps too quickly but doubt that.. help would be great, or at least some hints to where I can look

TTP/1.1 200 OK
Server: nginx/1.22.1
Date: Wed, 22 Feb 2023 00:55:24 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 22
Connection: keep-alive
Keep-Alive: timeout=60
Cache-Control: max-age=0
Expires: Wed, 22 Feb 2023 00:55:24 GMT
Content-Encoding: gzip
X-Varnish: 296099
Age: 0
Via: 1.1 varnish (Varnish/5.2)

I went to test a migration of a client from cpanel to CWP, and the database name (eg someuser_wp_mydatabase) is way too long for CWP, as well as having the same issue with the username, someuser_wp_admin123

Other than restoring the backup with the GUI then extracting the MYSQL folder from the TAR/GZ file, has anyone found any documentation to change the length of those fields? I cannot be a limit of MYSQL ...

Thank you for any advise!

Nginx / ModSecurity not working with NGINX
« on: January 22, 2023, 10:58:46 PM »
New CWP admin, used to only use cPanel and looking for a change to save money!

Anyhow, testing out CWP Pro, got the firewall, mod security, apache, php-fpm all working, however when I try to use NGINX/NGINX configuration with PFP-FPM, ModSecurity is not working, the moment I switch back to Apache only, Mod Security starts working.

I also looked /etc/nginx/modules and it is empty, and nginx -V does not show modsecurity.

CentOS 7, Clean Install with CWP installed, nothing complicated here, confused why it just is not working out of the box.... any help would be appreciated, I do not see any documentation about adding modules ...

Pages: [1]