summaryrefslogtreecommitdiffstats
path: root/php-eaccelerator.httpd
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-09-09 16:32:47 +0200
committerRemi Collet <fedora@famillecollet.com>2012-09-09 16:32:47 +0200
commit2b1d9607f6d89404d4c48ac04059480d75bb1b1f (patch)
treec3ce87b73ed69df15265dd773da90f45ab5e1545 /php-eaccelerator.httpd
parentd83caf893828eabd0fe9b4071eeb6ccc781f66c6 (diff)
php-eaccelerator: create 'httpd' sub package for Apache config
Diffstat (limited to 'php-eaccelerator.httpd')
-rw-r--r--php-eaccelerator.httpd24
1 files changed, 24 insertions, 0 deletions
diff --git a/php-eaccelerator.httpd b/php-eaccelerator.httpd
new file mode 100644
index 0000000..6c84a8e
--- /dev/null
+++ b/php-eaccelerator.httpd
@@ -0,0 +1,24 @@
+# eAccelerator - PHP accelerator, optimizer, encoder and dynamic content cacher
+
+# Apache specific options - enable cache disk
+php_value eaccelerator.shm_only "0"
+php_value eaccelerator.cache_dir "/var/cache/php-eaccelerator"
+php_value eaccelerator.log_file "/var/log/httpd/eaccelerator_log"
+
+# Configure control panel
+Alias /eaccelerator /usr/share/eaccelerator
+
+<Directory /usr/share/eaccelerator>
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require local
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
+ Order Deny,Allow
+ Deny from All
+ Allow from 127.0.0.1
+ Allow from ::1
+ </IfModule>
+</Directory>
+