Differences between revisions 7 and 8
Revision 7 as of 2011-07-04 10:21:41
Size: 2297
Editor: Praveen A
Comment:
Revision 8 as of 2011-07-31 19:43:54
Size: 2309
Editor: Praveen A
Comment: add local. to local instance of site
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
{{{127.0.1.1 in2011.mini.debconf.org}}} {{{127.0.0.1 local.in2011.mini.debconf.org}}}
Line 25: Line 25:
<VirtualHost in2011.mini.debconf.org:80> <VirtualHost local.in2011.mini.debconf.org:80>

This document aims to help folks maintaining MiniDebConf India website

or

 $ git clone git://gitorious.org/minidebconfindia/2011-mirror.git 

or

 $ svn checkout svn://anonscm.debian.org/debconf-data/in2011.mini 

Note: If you are planning to make changes, use your git clone at gitorious

  • For testing the site SSI needs to be enabled in Apache (see below for configuration)

  • Make an entry in /etc/hosts to resolve in2011.mini.debconf.org to 127.0.0.1 (localhost) as given below

127.0.0.1    local.in2011.mini.debconf.org

  • Configure a virtual host in apache for this. Create a file /etc/apache2/sites-available/minidebconfindia

<VirtualHost local.in2011.mini.debconf.org:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/in2011.mini/website/
        <Directory />
                Options FollowSymLinks +Includes 
                AllowOverride None
        </Directory>
        <Directory /var/www/in2011.mini/website/>
                Options Indexes FollowSymLinks MultiViews +Includes 
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>
  • Enable this site

 # a2ensite minidebconfindia 

  • Enable includes

 # a2enmod include 

  • Add following lines to /etc/apache2/mods-available/include.load

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml 
  • Add index.shtml to /etc/apache2/mods-available/dir.conf
  • Restart apache

 # /etc/init.d/apache2 restart