Difference between revisions of "HTTP"
Jump to navigation
Jump to search
(→Nginx) |
|||
Line 27: | Line 27: | ||
* [http://wiki.nginx.org/Resources Resources] | * [http://wiki.nginx.org/Resources Resources] | ||
− | |||
* [http://wiki.nginx.org/Configuration Configuration] | * [http://wiki.nginx.org/Configuration Configuration] | ||
Line 61: | Line 60: | ||
* http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ | * http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ | ||
+ | |||
+ | ==== Logging and stats ==== | ||
+ | [http://linux.die.net/man/8/logrotate logrotate] | ||
+ | |||
+ | 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/ | ||
+ | |||
+ | * [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] | ||
+ | |||
+ | old skool; | ||
+ | * http://www.webalizer.org/ | ||
+ | * http://awstats.sourceforge.net/ | ||
+ | |||
+ | ==== Control panels ==== | ||
+ | * http://www.virtualmin.com/ | ||
=== Apache === | === Apache === |
Revision as of 08:20, 22 July 2012
Basics
- HTTPie is a CLI, cURL-like tool for humans
- httpbin(1) - HTTP Request & Response Service
User and group
See also *nix#Users
Servers
Nginx
- Configuration
- FullExample
- HttpRewriteModule - rewriting urls
- HttpAuthBasicModule - for directory passwords
- Pitfalls
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
- ServerBlockExample - Basic examples
- FcgiExample - FastCGI example. Keep seperate and include.
- http://wiki.nginx.org/Wordpress
- https://wiki.archlinux.org/index.php/PhpMyAdmin#NGINX_Configuration
Enable logging in vhost conf;
error_log /var/log/nginx-vhostnamehere.log error;
Tools
- https://github.com/perusio/nginx_ensite - nginx_ensite and nginx_dissite for quick virtual host enabling and disabling
Logging and stats
logrotate
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/
- 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.
- Installation & Optimization
- User Guide
- Log Analytics - combined format logs (apache, nginx)
- Plugins
old skool;