From 65373c7bc8208e7de23e08b214f23a5e0b06b3c8 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 12 Aug 2015 21:09:49 +0200 Subject: Rename vhosts_php.tmp to vhosts_php.php --- config/vhosts/vhosts_php.php | 209 +++++++++++++++++++++++++++++++++++++++++++ config/vhosts/vhosts_php.tmp | 209 ------------------------------------------- 2 files changed, 209 insertions(+), 209 deletions(-) create mode 100644 config/vhosts/vhosts_php.php delete mode 100644 config/vhosts/vhosts_php.tmp (limited to 'config/vhosts') diff --git a/config/vhosts/vhosts_php.php b/config/vhosts/vhosts_php.php new file mode 100644 index 00000000..d2777dc9 --- /dev/null +++ b/config/vhosts/vhosts_php.php @@ -0,0 +1,209 @@ + + + + + +

vHosts: Web Server

+ +
+ + +
+ +
+ + + + + +
+ +
+ "; + //print_info_box_np("This is an info box."); + //echo"
"; + //endif; + + ?> + + + + +

+ vHosts is a web server package that can host HTML, Javascript, CSS, and PHP. It creates another instance of the lighttpd web server + that is already installed. It uses PHP5 in FastCGI mode and has access to PHP Data Ojbects and PDO SQLite. To use SFTP enable SSH from + System -> Advanced -> Enable Secure Shell. Then SFTP can be used to access the files at /usr/local/vhosts. + After adding or updating an entry make sure to restart the service to apply the settings. +

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

+
+ + + + + + + + + + + + 0) { + //sort array + if (!function_exists('sort_host')) { + function sort_host($a, $b){ + return strcmp($a["host"], $b["host"]); + } + } + //disable for now because it throws off the edit and delete + //if (count($a_vhosts) > 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; + ?> + + + + + + + + + + + + + + + + + + + +
HostPortSSLEnabledDescription + + + + + +
+
+   + +   + +
+ +
+
+ + +   + + + + + + +
+
+ + + + + +
+
+ +
+ + +
+
+
+
+
+
+
+
+ +
+ +
+ + + + + diff --git a/config/vhosts/vhosts_php.tmp b/config/vhosts/vhosts_php.tmp deleted file mode 100644 index d2777dc9..00000000 --- a/config/vhosts/vhosts_php.tmp +++ /dev/null @@ -1,209 +0,0 @@ - - - - - -

vHosts: Web Server

- -
- - -
- -
- - - - - -
- -
- "; - //print_info_box_np("This is an info box."); - //echo"
"; - //endif; - - ?> - - - - -

- vHosts is a web server package that can host HTML, Javascript, CSS, and PHP. It creates another instance of the lighttpd web server - that is already installed. It uses PHP5 in FastCGI mode and has access to PHP Data Ojbects and PDO SQLite. To use SFTP enable SSH from - System -> Advanced -> Enable Secure Shell. Then SFTP can be used to access the files at /usr/local/vhosts. - After adding or updating an entry make sure to restart the service to apply the settings. -

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

-
- - - - - - - - - - - - 0) { - //sort array - if (!function_exists('sort_host')) { - function sort_host($a, $b){ - return strcmp($a["host"], $b["host"]); - } - } - //disable for now because it throws off the edit and delete - //if (count($a_vhosts) > 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; - ?> - - - - - - - - - - - - - - - - - - - -
HostPortSSLEnabledDescription - - - - - -
-
-   - -   - -
- -
-
- - -   - - - - - - -
-
- - - - - -
-
- -
- - -
-
-
-
-
-
-
-
- -
- -
- - - - - -- cgit v1.2.3