summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcenci0 <alchimist94@gmail.com>2015-02-05 18:11:18 +0100
committercenci0 <alchimist94@gmail.com>2015-02-05 18:11:18 +0100
commit0d1a5c66cab400dc484e231a552832ff0a9c67e8 (patch)
tree7f9b11f64af979e9442f448037329da8fb7d9fc3
parentc9fe613404d6b745edb51a6b71d637f22234c862 (diff)
Update README
Add some info about how to enable gzip compression on Apache servers
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
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.