Difference between revisions of "HTTP"
Jump to navigation
Jump to search
(→Backup) |
|||
Line 43: | Line 43: | ||
== Caching == | == Caching == | ||
+ | * https://developers.google.com/speed/docs/best-practices/caching#LeverageBrowserCaching | ||
+ | |||
* http://www.mnot.net/cache_docs/ | * http://www.mnot.net/cache_docs/ | ||
Revision as of 22:48, 21 June 2012
Nginx
- Resources
- FullExample
- VirtualHostExample
- HttpRewriteModule - rewriting urls
- HttpAuthBasicModule - for directory passwords
Enable logging in vhost conf;
error_log /var/log/nginx-vhostnamehere.log error;
Apache
MediaWiki
- Manual:Short URL/wiki/Page title -- nginx rewrite--root access
- Manual:Short URL/Page title - nginx, Root Access, PHP as a CGI module
MediaWiki:Sidebar
Backup
change vars;
nice -n 19 mysqldump -u $USER --password=$PASSWORD $DATABASE -c nice -n 19 gzip -9 > wiki-$DATABASE-$(date '+%Y%m%d').sql.gz