summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-11-14 11:46:49 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-11-14 11:46:49 +0100
commit38c9df8e97311bdd960e555ee7dbc4beed0d2e96 (patch)
tree6aeda489f5ee72db1d7d6f2dbbad287ef7417f95
parent8d91770bcc4811cacab6aacb682b51369035287c (diff)
Add public_html directory to be used as document root or alias directory for Roundcube installations. This will only expose the required resources to public access
l---------public_html/.htaccess1
-rw-r--r--public_html/index.php27
l---------public_html/plugins1
l---------public_html/program/js1
l---------public_html/program/resources1
l---------public_html/robots.txt1
l---------public_html/skins1
7 files changed, 33 insertions, 0 deletions
diff --git a/public_html/.htaccess b/public_html/.htaccess
new file mode 120000
index 000000000..94546dc49
--- /dev/null
+++ b/public_html/.htaccess
@@ -0,0 +1 @@
+../.htaccess \ No newline at end of file
diff --git a/public_html/index.php b/public_html/index.php
new file mode 100644
index 000000000..cec0dca07
--- /dev/null
+++ b/public_html/index.php
@@ -0,0 +1,27 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | Roundcube Webmail IMAP Client |
+ | Version 1.0-git |
+ | |
+ | Copyright (C) 2005-2013, The Roundcube Dev Team |
+ | |
+ | Licensed under the GNU General Public License version 3 or |
+ | any later version with exceptions for skins & plugins. |
+ | See the README file for a full license statement. |
+ | |
+ | PURPOSE: |
+ | This is the public entry point for all HTTP requests to the |
+ | Roundcue webmail application. |
+ +-----------------------------------------------------------------------+
+ | Author: Thomas Bruederli <roundcube@gmail.com> |
+ | Author: Aleksander Machniak <alec@alec.pl> |
+ +-----------------------------------------------------------------------+
+*/
+
+define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/');
+
+// include index.php from application root directory
+include INSTALL_PATH . 'index.php';
+
diff --git a/public_html/plugins b/public_html/plugins
new file mode 120000
index 000000000..7655edcc0
--- /dev/null
+++ b/public_html/plugins
@@ -0,0 +1 @@
+../plugins \ No newline at end of file
diff --git a/public_html/program/js b/public_html/program/js
new file mode 120000
index 000000000..2c7564380
--- /dev/null
+++ b/public_html/program/js
@@ -0,0 +1 @@
+../../program/js \ No newline at end of file
diff --git a/public_html/program/resources b/public_html/program/resources
new file mode 120000
index 000000000..a1164a03c
--- /dev/null
+++ b/public_html/program/resources
@@ -0,0 +1 @@
+../../program/resources \ No newline at end of file
diff --git a/public_html/robots.txt b/public_html/robots.txt
new file mode 120000
index 000000000..123b16649
--- /dev/null
+++ b/public_html/robots.txt
@@ -0,0 +1 @@
+../robots.txt \ No newline at end of file
diff --git a/public_html/skins b/public_html/skins
new file mode 120000
index 000000000..249223789
--- /dev/null
+++ b/public_html/skins
@@ -0,0 +1 @@
+../skins \ No newline at end of file