Difference between revisions of "HTTP"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 86: Line 86:
  
 
* https://www.varnish-cache.org/
 
* https://www.varnish-cache.org/
 +
 +
== Web server logs ==
 +
Combined Log Format
 +
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
 +
 +
old skool;
 +
* http://www.webalizer.org/
 +
* http://awstats.sourceforge.net/
 +
 +
=== Apache ===
 +
* http://httpd.apache.org/docs/1.3/logs.html
 +
 +
=== Nginx ===
 +
* http://wiki.nginx.org/HttpLogModule
 +
error_log  /var/log/nginx/error.log;
 +
access_log  /var/log/nginx/access.log;
 +
 +
* http://articles.slicehost.com/2010/8/27/reading-nginx-web-logs
 +
* http://gadelkareem.com/2012/07/01/nginx-error-log-reader/
 +
 +
=== GoAccess ===
 +
* [http://goaccess.prosoftcorp.com/ GoAccess] is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.
 +
** [http://goaccess.prosoftcorp.com/man man goaccess]
 +
 +
== Analytics ==
 +
* [http://piwik.org/ Piwik] is downloadable, Free/Libre (GPLv3 licensed) real time web analytics software. It provides you with detailed reports on your website visitors; the search engines and keywords they used, the language they speak, your popular pages, and much more.
 +
** [http://piwik.org/docs/installation-optimization/ Installation & Optimization]
 +
** [http://piwik.org/docs/user-guide/ User Guide]
 +
** [http://piwik.org/log-analytics/ Log Analytics] - combined format logs (apache, nginx)
 +
** [http://dev.piwik.org/trac/query?status=new&status=assigned&status=reopened&milestone=Third+Party+Piwik+Plugins&order=priority Plugins]
 +
 +
=== Google ===
 +
* [http://www.google.com/analytics/ Google Analytics]

Revision as of 23:59, 23 July 2012


Basics

  • HTTPie is a CLI, cURL-like tool for humans

User and group

See also *nix#Users

Servers

Nginx

Site folder location can vary.

/var/www
  debian
/etc/nginx/html
  arch linux

Site setup

Create 'Server Block' (vhost) config file in

/etc/nginx/sites-available

and later ln -s them in

/etc/nginx/sites-enabled

Enable logging in vhost conf;

error_log /var/log/nginx-vhostnamehere.log error;

Tools

Control panels

Apache

Other

Performance

Web server logs

Combined Log Format

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined

old skool;

Apache

Nginx

error_log  /var/log/nginx/error.log;
access_log  /var/log/nginx/access.log;

GoAccess

  • GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.

Analytics

  • Piwik is downloadable, Free/Libre (GPLv3 licensed) real time web analytics software. It provides you with detailed reports on your website visitors; the search engines and keywords they used, the language they speak, your popular pages, and much more.

Google