Language Selection

English French German Italian Portuguese Spanish

New Content/Layout OK?

95% (21 votes)
5% (1 vote)
Total votes: 22

Varnish Proxy

Silly me, a poll would not work on the new server. I forgot that with the Varnish cache proxy at the front almost all visitors arrive from the same IP address (the proxy), which means that Drupal would allocate just one vote to all (except registered and presently logged in users). With Drupal upgrade we can perhaps find polling software that overcomes this.


You must use mod_rpaf to fix this problem that Varnish introduces.
See eg
mod_rpaf for EL6 64bit here:


Thank, we will look into it. Currently, a lot of stuff other than the poll (e.g. views being counted) are not compatible with Varnish and it makes it look as though not many people visit and can participate in the site.

For sheer stats you could use

For sheer stats you could use an external (i.e. not cached by varnish) service, such as Google Analytics or run your own Piwik.


Google Analytics is spyware, but Piwik would be a possibility (Stallman recently told me that it's good). Can it be installed on a cache proxy? I'd have to gain access to it first. Either way, this would not facilitate per-post page request count. Susan had it set up with a module, but it's no longer working correctly. In turn, rating/sorting posts by popularity is no longer possible, and that's the real downside (the front page can no longer list popular items for today).

The problem is not just that IP addresses are not unique. Some requests are never seen by the CMS and Apache.

For the non-unique addresses

For the non-unique addresses look at mod_rpaf, it was made for this situations.
Is this drupal6 or 7? With 6 varnish integration sucks from what I've seen.

See also

Agreed on Google Analytics. You can just install Piwik on the same host and tell Varnish either not to cache it or you can just set its virtualhost on a port other than 80 so it bypasses Varnish completely.


Thanks for the pointers.

Yes, it's Drupal 6 and there are other issues that I am beginning to see, such as lack of updates from the RSS feeds around the page (I am currently investigating this, maybe it's related to a cron job or module config although I very much doubt the latter as I haven't changed configs).

Non-unique addresses could be bypassed as an issue even by writing random IP addresses, but that would enable easy poll rigging. I guess it's not essential for operation of the site, but it's a nice-to-have...

From "This module provides integration between your Drupal site and the Varnish HTTP Accelerator, an advanced and very fast reverse-proxy system. Basically, Varnish handles serving static files and anonymous page-views for your site much faster and at higher volumes than Apache, in the neighborhood of 3000 requests per second."

I have had such issues with Varnish on top of WordPress and MediaWiki (pages served improperly from cache) and it all makes me wonder if removing Varnish altogether is the best way to proceed.

As for Piwik, I have never tried it before, so I will look into it.

I would keep Varnish on for

I would keep Varnish on for static files (css, js, jpeg etc) and to clean up HTTP traffic (Varnish will not forward incomplete or malformed HTTP requests to the backend, it should also be the front line against synfloods etc).

Here's a sample of what I use (test it first, I'm just beginning with Varnish myself)

director default dns {
.list = {
.port = "8080";
.connect_timeout = 5s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
.max_connections = 10000;
sub vcl_recv {
if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {
sub vcl_fetch {
if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {
unset beresp.http.set-cookie;
if (req.restarts == 0) {
if (req.http.x-forwarded-for) {
set req.http.X-Forwarded-For =
req.http.X-Forwarded-For + ", " + client.ip;
} else {
set req.http.X-Forwarded-For = client.ip;

Then install mod_rpaf and make sure your Apache is listening on port 8080 and add this to /etc/httpd/conf.d/rpaf.conf:
LoadModule rpaf_module modules/

RPAFenable On
RPAFsethostname On
RPAFheader X-Forwarded-For

PS: looks like drupal is messing with my comments, here's a text version


Thanks, I will look at it and into it in the weekend.

RSS feeds

The Piwik demo looks impressive, I have just given them a word of endorsement.

I am still trying to resolve some other issues we've identified.

I think I found the source of the issue above (RSS feeds). It seems like any external site access is denied by default, which helps explain why RSS feeds cannot be retrieved by the Drupal part of the site:

[root@tuxmachines ~]# wget
--2014-02-05 04:34:37--
Connecting to||:80... failed: Connection refused.
[root@tuxmachines ~]# wget
--2014-02-05 04:34:54--
Connecting to||:80... failed: Connection refused.

Looks like a firewall issue

Looks like a firewall issue at the first glance.


Nux wrote:

Looks like a firewall issue at the first glance.

Yes, it was a simply issue to tackle. It works now.

Pageview count and polls

I'll have a look and see if configuration can solve not just the polling issue but also pageview count. The site of this module is down and it seems like it may require configuration on the cache server too.

More in Tux Machines

OSS Leftovers

  • What Is Fuchsia, Google’s New Operating System?
    Fuchsia first popped up on the tech world’s radar in mid-2016, when an unannounced open source project from Google appeared on the GitHub repository. According to initial inspection by the technology press, it was designed to be a “universal” operating system, capable of running on everything from low-power smartwatches to powerful desktops. That potentially includes phones, tablets, laptops, car electronics, connected appliances, smarthome hardware, and more.
  • Google created an AI-based, open source music synthesizer
    Move over musicians, AI is here. Google's 'NSynth' neural network is designed to take existing sounds and combine them using a complex, machine learning algorithm. The result? Thousands of new musical sounds, and an instrument you can play them on.
  • March Add(on)ness: uBlock (1) vs Kimetrack (4)
  • TenFourFox FPR6 SPR1 coming
    Stand by for FPR6 Security Parity Release 1 due to the usual turmoil following Pwn2Own, in which the mighty typically fall and this year Firefox did. We track these advisories and always plan to have a patched build of TenFourFox ready and parallel with Mozilla's official chemspill release; I have already backported the patch and tested it internally.
  • GCC 8 Compiler Offering More Helpful Debug Messages, Usability Improvements
    Red Hat's David Malcom has outlined some of the usability improvements coming with the imminent release of GCC 8.
  • Friday Free Software Directory IRC meetup time changed: March 16th starting at 12:00 p.m. EDT/16:00 UTC
  • Your guide to LibrePlanet 2018, wherever you are, March 24-25
    The free software community encompasses the globe, and we strive to make the LibrePlanet conference reflect that. That's why we livestream the proceedings of the conference, and encourage you to participate remotely by both watching and participating in the discussion via IRC.
  • Open Source Advocate Dr. Joshua Pearce Publishes Paper on Inexpensive GMAW Metal 3D Printing
    One of the most outspoken advocates of open source philosophy in the 3D printing industry is Dr. Joshua M. Pearce, Associate Professor, Materials Science & Engineering and Electrical & Computer Engineering for Michigan Technological University (Michigan Tech).
  • ONF Launches Stratum Open-Source SDN Project
    The growing adoption of software-defined networking over the past several years has given a boost to makers of networking white boxes. The separation of the network operating system, control plane and network tasks from the underlying proprietary hardware meant that organizations could run that software on white-box switches and servers that are less expensive than those systems from the likes of Cisco Systems, Juniper Networks, Dell EMC and Hewlett Packard Enterprise. Network virtualization technologies such as software-defined networking (SDN) and network-functions virtualization (NFV) have proven to be a particular boon for hyperscale cloud providers like Google and Facebook and telecommunications companies like AT&T and Verizon, which are pushing increasingly massive amounts of traffic through their growing infrastructures. Being able to use less expensive and easily manageable white boxes from original design manufacturers (ODMs) has helped these organizations keep costs down even as demand rises.

KDE: Discover, Qt Creator, LibAlkimia

  • This week in Discover, part 10
    This week saw many positive changes for Discover, and I feel that it’s really coming into its own. Discover rumbles inexorably along toward the finish line of becoming the most-loved Linux app store!
  • Qt Creator 4.6 RC & Qt 5.11 Beta 2 Released
    The Qt Company has some new software development releases available in time for weekend testing. First up is the Qt Creator 4.6 Release Candidate. Qt Creator 4.6 has been working on better C++17 feature support, Clang-Tidy and Clazy warnings are now integrated into the diagnostic messages for the C++ editor, new filters, and improvements to the model editor.
  • LibAlkimia 7.0.1 with support for MPIR released
    LibAlkimia is a base library that contains support for financial applications based on the Qt C++ framework. One of its main features is the encapsulation of The GNU Multiple Precision Arithmetic Library (GMP) and so providing a simple object to be used representing monetary values in the form of rational numbers. All the mathematical details are hidden inside the AlkValue object.
  • Last Weeks Activity in Elisa and Release Schedule
    Elisa is a music player developed by the KDE community that strives to be simple and nice to use. We also recognize that we need a flexible product to account for the different workflows and use-cases of our users. We focus on a very good integration with the Plasma desktop of the KDE community without compromising the support for other platforms (other Linux desktop environments, Windows and Android). We are creating a reliable product that is a joy to use and respects our users privacy. As such, we will prefer to support online services where users are in control of their data.

SwagArch 18.02 - U Got Swag?

SwagArch sounds like an interesting concept. The aesthetic side of things is reasonable, although brown as a color and a dark theme make for a tricky choice. The fonts are pretty good overall. But the visual element is the least of the distro's problems. SwagArch 18.02 didn't deliver the basics, and that's what made Dedoimedo sad. Network support plus the clock issue, horrible package management and broken programs, those are things that must work perfectly. Without them, the system has no value. So you do get multimedia support and a few unique apps, however that cannot balance out all the woes and problems that I encountered. All in all, Swag needs a lot more work. Also, it will have a tough time competing with Manjaro and Antergos, which are already established and fairly robust Arch spins. Lastly, it needs to narrow down its focus. The overall integration of elements is pretty weak. Eclectic, jumbled, not really tested. 2/10 for now. Let's see how it evolves. Read more

How Open Source Approach is Impacting Science

Dive into the exciting world of Innovative Science to explore and find out about how the Linux-based Operating System and Open Source are playing a significant role in the major scientific breakthroughs that are taking place in our daily lives. Read more