From 0d1a5c66cab400dc484e231a552832ff0a9c67e8 Mon Sep 17 00:00:00 2001 From: cenci0 Date: Thu, 5 Feb 2015 18:11:18 +0100 Subject: Update README Add some info about how to enable gzip compression on Apache servers --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 6b930f8..e944f4d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Pomf.se -Only tested with Nginx + PHP5.5 + MySQL, but should work with newer PHP or any -other PDO-compatible database. +Original development environment is Nginx + PHP5.5 + MySQL, but is confirmed to work with Apache 2.4 +and newer PHP versions. Should work with any other PDO-compatible databases. Most of the code is ghetto and easily improved, will clean it up sometime. Modify it as you like. @@ -25,6 +25,13 @@ $ grunt ``` After this, the pomf site is now compressed and set up inside `dist/`. +### Apache +If you are runnging Apache and want to compress your output when serving files, add to your `.htaccess` file: +``` +AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/x-javascript application/json +``` +Remember to enable `deflate_module` and `filter_module` modules in your Apache configuration file. + ## Configuring The majority of settings are in `static/includes/settings.inc.php`. Read the comments in that file for more information. -- cgit v1.2.3 From fd98101d073805fc42474a00bca640a618f99de6 Mon Sep 17 00:00:00 2001 From: cenci0 Date: Thu, 5 Feb 2015 18:26:21 +0100 Subject: Update README.md Remove an 's' (damn random plurals) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index e944f4d..e4f9618 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Pomf.se Original development environment is Nginx + PHP5.5 + MySQL, but is confirmed to work with Apache 2.4 -and newer PHP versions. Should work with any other PDO-compatible databases. +and newer PHP versions. Should work with any other PDO-compatible database. Most of the code is ghetto and easily improved, will clean it up sometime. Modify it as you like. -- cgit v1.2.3