--- /dev/null
+# Uncomment the following line if you want any server name /m to point to moodle-sdk.
+# (Do not forget to update your config.json file accordingly.)
+# Alias /m /var/lib/moodle-sdk/www
+<VirtualHost *:80>
+ ServerName moodle-sdk
+
+ DocumentRoot /var/lib/moodle-sdk/www
+ <Directory /var/lib/moodle-sdk/www/>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride All
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ ErrorLog ${APACHE_LOG_DIR}/error-moodle-sdk.log
+ LogLevel notice
+
+ CustomLog ${APACHE_LOG_DIR}/access-moodle-sdk.log combined
+</VirtualHost>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Moodle Development Kit
+ *
+ * Copyright (c) 2012 Frédéric Massart - FMCorz.net
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * http://github.com/FMCorz/mdk
+*/
+
+echo "<h2>Moodle Development Kit</h1>";
+echo "<ul>";
+
+$path = dirname(__FILE__);
+$dirs = scandir($path);
+foreach ($dirs as $dir) {
+ if (!is_dir($path . $dir)) {
+ continue;
+ }
+ print "<li><a href='$dir'>$dir</a></li>";
+}
+
+echo "</ul>";