summaryrefslogtreecommitdiff
path: root/debian/examples/apache2.conf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/examples/apache2.conf')
-rw-r--r--debian/examples/apache2.conf54
1 files changed, 54 insertions, 0 deletions
diff --git a/debian/examples/apache2.conf b/debian/examples/apache2.conf
new file mode 100644
index 0000000..9a8fe5a
--- /dev/null
+++ b/debian/examples/apache2.conf
@@ -0,0 +1,54 @@
+# Note: order matters
+Alias /phpbb/images /var/lib/phpbb3/images
+Alias /phpbb /usr/share/phpbb3/www
+
+<Directory /usr/share/phpbb3/www/>
+ <IfModule mod_php5.c>
+ php_flag register_globals off
+ </IfModule>
+
+ Options -Indexes +FollowSymlinks
+
+ DirectoryIndex index.php
+
+ <IfVersion >= 2.3>
+ Require all granted
+ </IfVersion>
+ <IfVersion < 2.3>
+ AllowOverride None
+ order allow,deny
+ allow from all
+ </IfVersion>
+</Directory>
+<Directory /var/lib/phpbb3/images>
+ <IfVersion >= 2.3>
+ Require all granted
+ </IfVersion>
+ <IfVersion < 2.3>
+ AllowOverride None
+ order allow,deny
+ allow from all
+ </IfVersion>
+</Directory>
+
+### Multisite examples (see README.multiboard for details)
+
+# For a second board on the same server using aliases:
+#
+#Alias /second_board/images /var/lib/phpbb3/images ### create!
+#Alias /second_board /usr/share/phpbb3/www
+#<Location /second_board>
+# php_value auto_prepend_file /etc/phpbb3/alternative_config.php
+#</Location>
+
+# For virtual host:
+#<VirtualHost *:80>
+# # For using an alternative database (for multiple boards for example)
+# php_value auto_prepend_file /etc/phpbb3/virtualhost_config.php
+#
+# ServerName forum.example.com
+# DocumentRoot /usr/share/phpbb3/www
+# # You may need to workaround the global /images/ alias in your apache
+# # configuration, your mileage may vary
+# Alias /images /var/lib/phpbb3/images
+#</VirtualHost>