# phpbb configuration Alias /phpbb /usr/share/phpbb <Directory /usr/share/phpbb/> <IfModule mod_php4.c> php_flag register_globals off </IfModule> Options -Indexes +FollowSymlinks DirectoryIndex index.php AllowOverride None Order Allow,Deny Allow from all </Directory> <Directory /var/lib/phpbb/files/> <Limit GET POST PUT> Order Allow,Deny Deny from All </Limit> </Directory> <Directory /usr/share/phpbb/install/> Order Allow,Deny Deny from All Allow from 127.0.0.1 </Directory> <Directory /var/lib/phpbb/store/> <Limit GET POST PUT> Order Allow,Deny Deny from All </Limit> </Directory> # For a second board on the same server: #Alias /second_board /usr/share/phpbb #<Location /second_board> # php_value auto_prepend_file /etc/phpbb/alternative_config.php #</Location> #<VirtualHost *> # # For using an alternative database (for multiple boards for example) # php_value auto_prepend_file /etc/phpbb/virtualhost_config.php # # ServerName forum.example.com # DocumentRoot /usr/share/phpbb # # You may need to workaround the global /images/ alias in your apache # # configuration, your mileage may vary # Alias /images/avatars /var/lib/phpbb/avatars # Alias /images /usr/share/phpbb/images #</VirtualHost> <IfModule mod_ssl.c> <LocationMatch /phpbb> Options FollowSymLinks RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] </LocationMatch> </IfModule>