summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorh6w <tudor@tudorholton.com>2017-11-10 15:20:05 +1100
committerGitHub <noreply@github.com>2017-11-10 15:20:05 +1100
commita4d94f678024d28ad23a0c27b8e0dc48b635cd6b (patch)
tree3523d32af0cc7f0266d6fa416a46223ea9cc43d3
parent14d7c3877cbdea2e00f482fd07b16f996c773e0d (diff)
downloadphpvirtualbox-a4d94f678024d28ad23a0c27b8e0dc48b635cd6b.zip
phpvirtualbox-a4d94f678024d28ad23a0c27b8e0dc48b635cd6b.tar.gz
phpvirtualbox-a4d94f678024d28ad23a0c27b8e0dc48b635cd6b.tar.bz2
apache2 conf.d config file
Put this file in /etc/apache2/conf-available/phpvirtualbox.conf Then run `a2enconf phpvirtualbox` and `service apache2 reload`
-rw-r--r--phpvirtualbox.conf31
1 files changed, 31 insertions, 0 deletions
diff --git a/phpvirtualbox.conf b/phpvirtualbox.conf
new file mode 100644
index 0000000..192c882
--- /dev/null
+++ b/phpvirtualbox.conf
@@ -0,0 +1,31 @@
+Alias /phpvirtualbox /usr/share/phpvirtualbox
+
+<Directory /usr/share/phpvirtualbox>
+
+<IfModule mod_dir.c>
+DirectoryIndex index.php
+</IfModule>
+AllowOverride None
+
+# Only allow connections from localhost:
+Require local
+
+<IfModule mod_php.c>
+ php_flag magic_quotes_gpc Off
+ php_flag track_vars On
+ #php_value include_path .
+</IfModule>
+<IfModule !mod_php.c>
+ <IfModule mod_actions.c>
+ <IfModule mod_cgi.c>
+ AddType application/x-httpd-php .php
+ Action application/x-httpd-php /cgi-bin/php
+ </IfModule>
+ <IfModule mod_cgid.c>
+ AddType application/x-httpd-php .php
+ Action application/x-httpd-php /cgi-bin/php
+ </IfModule>
+ </IfModule>
+</IfModule>
+
+</Directory>