From 6102105a07880d0dafb02c33019e23fe9491ec1c Mon Sep 17 00:00:00 2001 From: mcrane Date: Sun, 20 Dec 2009 07:06:59 -0700 Subject: vHosts web server 0.2 http web server functioning. https support needs a little more work. --- config/vhosts/vhosts_php.tmp | 75 +++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 32 deletions(-) (limited to 'config/vhosts/vhosts_php.tmp') diff --git a/config/vhosts/vhosts_php.tmp b/config/vhosts/vhosts_php.tmp index c77d50a3..41ccf11f 100644 --- a/config/vhosts/vhosts_php.tmp +++ b/config/vhosts/vhosts_php.tmp @@ -51,7 +51,7 @@ include("head.inc"); -

vHosts Service:

+

vHosts:

@@ -88,8 +88,7 @@ include("head.inc");
@@ -99,7 +98,7 @@ include("head.inc");

- Is command line PHP designed to run PHP as a Service. The custom PHP code that is defined below is run over and over again inside a continuous loop. There are many possible uses such as monitoring CPU, Memory, File System Space, interacting with Snort, and many others uses that are yet to be discovered. - It can send events to the sylog that will can be viewed from the system log or remote syslog server. example: exec("logger This is a test"); + vHosts is a web server package that can host HTML, Javascript, CSS, and PHP. It uses the lighttpd web server that is already installed. It uses PHP5 in FastCGI mode and has access to PHP Data Ojbects and PDO SQLite.

For more information see: http://doc.pfsense.org/index.php/vhosts

- + - 0) { - - foreach ($a_vhosts as $ent) { - - ?> - - - - - - - 1) { + // usort($a_vhosts, 'sort_host'); + //} + foreach ($a_vhosts as $ent) { + $host = $ent['host']; + $port = $ent['port']; + if (strlen($ent['certificate']) == 0) { $http_protocol = 'http'; } else { $http_protocol = 'https'; } + if ($http_protocol == 'http' && $port == '80') { $port = ''; } + if ($http_protocol == 'https' && $port == '443') { $port = ''; } + if (strlen($port) > 0) { $port = ':'.$port; } + $vhost_url = $http_protocol.'://'.$host.$port; + ?> + + + + + + + -- cgit v1.2.3
NameHost Enabled Description @@ -114,37 +113,49 @@ include("head.inc");
-   - -   - -   - - - - - - -
-
+   + +   + +   + + + + + + +
+