Skip to content

Instantly share code, notes, and snippets.

@mythmon
Created November 11, 2010 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mythmon/672907 to your computer and use it in GitHub Desktop.
Save mythmon/672907 to your computer and use it in GitHub Desktop.
diff --git a/files/etc/apache2/vhosts.d/phpbb-www/phpbb.com.conf b/files/etc/apache2/vhosts.d/phpbb-www/phpbb.com.conf
index f57f087..e888d85 100644
--- a/files/etc/apache2/vhosts.d/phpbb-www/phpbb.com.conf
+++ b/files/etc/apache2/vhosts.d/phpbb-www/phpbb.com.conf
@@ -22,6 +22,10 @@
# phpBB specific settings
Include /var/www/phpbb.com/htdocs/.htdev
+ ProxyRequests off
+ ProxyPass /updatecheck http://version.phpbb.com/legacy
+ ProxyPassReverse /updatecheck http://version.phpbb.com/legacy
+
<Directory /var/www/phpbb.com/htdocs>
Options FollowSymLinks
AllowOverride All
@@ -35,6 +39,11 @@
Deny from all
</FilesMatch>
+ <Proxy *>
+ Order allow,deny
+ Allow from All
+ </proxy>
+
CustomLog "|/usr/sbin/cronolog /var/log/apache2/phpbb.com/transfer/%Y%m%d.log" combined
ErrorLog "|/usr/sbin/cronolog /var/log/apache2/phpbb.com/error/%Y%m%d.log"
</VirtualHost>
diff --git a/files/etc/conf.d/apache2/phpbb-www b/files/etc/conf.d/apache2/phpbb-www
index 8a8171a..fa58ad4 100644
--- a/files/etc/conf.d/apache2/phpbb-www
+++ b/files/etc/conf.d/apache2/phpbb-www
@@ -37,7 +37,7 @@
# SSL_OSL Use the default *.osuosl.org ssl cert
# WWWCACHE Enables support for using Squid
#
-APACHE2_OPTS="-D INFO -D STATUS -D PHP5 -D WWWCACHE -D RPAF"
+APACHE2_OPTS="-D INFO -D STATUS -D PHP5 -D WWWCACHE -D RPAF -D PROXY"
# Extended options for advanced uses of Apache ONLY
# You don't need to edit these unless you are doing crazy Apache stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment