.htaccess

OwnCloud - Increase Max File Upload Size

| 5 views

It has been more than 2 years, since I installed (set and forgot) OwnCloud for internal file sharing.  For the past two years OwnCloud have worked like a charm (and still does). Just today I faced a problem - I tried to upload file larger than 513 MB (default max file for OwnCloud), but struck because of exceeding max file upload size. I really needed to deliver this file across few continents as quick as possible. Well I could probably use direct file upload on bare ftp, but this is not the…


Redirect non www to www - Apache .htaccess

| 1 views

It has been years since I last time used .htaccess file available in Apache. I'm using Ngnix servers for 99.9 of mine work. But today I had an opportunity to work on Apache environment, which uses .htaccess file. So in order to rewrite non www to www in Apache I added following rulles to .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]   For Ngnix please read this article: http://www.reinisfischer.com/ngnix-www-non…