LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2023, 09:52 PM   #1
webx99
Member
 
Registered: Feb 2019
Distribution: Centos 7
Posts: 103

Rep: Reputation: 11
Angry nginx and cgi


Hello,

I use:

cpanel: 110.0.7
Apache: 2.4
Nginx: 1.25
OS: Centos 7

I have a problem with Nginx, if I turn the cache on for the site then cgi counter will not work!!

TIA.
 
Old 06-06-2023, 10:24 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
My guess would be that pages served from cache, that is not processed by the webserver itself, do not result in processing of the cgi script, so no count.

If you have reason to think otherwise it would be helpful to others to know what cgi counter you are using and how caching is enabled.
 
Old 06-06-2023, 11:21 PM   #3
webx99
Member
 
Registered: Feb 2019
Distribution: Centos 7
Posts: 103

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by astrogeek View Post
My guess would be that pages served from cache, that is not processed by the webserver itself, do not result in processing of the cgi script, so no count.

If you have reason to think otherwise it would be helpful to others to know what cgi counter you are using and how caching is enabled.
Thanks for the reply astrogeek.

I'm using Cpanel's Count.cgi that used to come with Cpanel/WHM a few years ago, now they stopped distributing it!!

I enable/disable caching thru Nginx Manager in Cpanel.

a long time ago, I remember someone suggested changing "proxy_pass" for the vhost, it works, but I forgot now what was the solution exactly then!

thanks
 
Old 06-19-2023, 07:20 AM   #4
webx99
Member
 
Registered: Feb 2019
Distribution: Centos 7
Posts: 103

Original Poster
Rep: Reputation: 11
Any idea?

TIA.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx + php-fpm and nginx modules fantasygoat Linux - Server 0 06-09-2011 12:21 PM
Nagios, Statusmap.cgi and Trend.cgi NOT FOUND edwardcode Linux - Software 24 06-10-2010 07:45 AM
LXer: Nginx HTTP Server + PHP5 (With fast-cgi And xcache) On Ubuntu Feisty Fawn LXer Syndicated Linux News 0 10-10-2007 06:30 PM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 01:03 PM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration