Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 267311 Details for
Bug 396241
Support for Real Server's remote port
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Nuno Tavares patch to piranha-gui for real server "port" option
piranha-gui_remote_port.patch.txt (text/plain), 3.06 KB, created by
Nuno Tavares
on 2007-11-23 02:50:53 UTC
(
hide
)
Description:
Nuno Tavares patch to piranha-gui for real server "port" option
Filename:
MIME Type:
Creator:
Nuno Tavares
Created:
2007-11-23 02:50:53 UTC
Size:
3.06 KB
patch
obsolete
>diff -ruN secure.orig/parse.php secure/parse.php >--- secure.orig/parse.php 2007-11-23 02:04:16.000000000 +0000 >+++ secure/parse.php 2007-11-22 20:16:10.000000000 +0000 >@@ -14,6 +14,7 @@ > "active" => "", > "nmask" => "", > "heartbeat" => "", >+ "port" => "" > "weight" => "" > ), > ), >@@ -332,6 +333,8 @@ > break; > case "weight" : $serv[$virt_count][$server_count+1]['weight'] = $datum; > break; >+ case "port" : $serv[$virt_count][$server_count+1]['port'] = $datum; >+ break; > case "" : break; > default : if ($debug) { echo "<FONT COLOR=\"BLUE\">Level2 - garbage [$name] (ignored line [$buffer])</FONT><BR>"; } > break; >@@ -569,6 +572,7 @@ > echo "<BR>Server [$loop1]:[$loop2]['nmask'] = " . $serv[$loop1][$loop2]['nmask']; > echo "<BR>Server [$loop1]:[$loop2]['active'] = " . $serv[$loop1][$loop2]['active']; > echo "<BR>Server [$loop1]:[$loop2]['weight'] = " . $serv[$loop1][$loop2]['weight']; >+ echo "<BR>Server [$loop1]:[$loop2]['port'] = " . $serv[$loop1][$loop2]['port']; > echo "<BR>"; > $loop2++; > } >@@ -960,6 +964,13 @@ > if ($debug) { echo "$egap2 active = " . $serv[$loop3][$loop4]['active'] . "<BR>"; }; > } > >+ if (isset($serv[$loop3][$loop4]['port']) && >+ $serv[$loop3][$loop4]['port'] != "") { >+ fputs ($fd, "$gap2 port = " . $serv[$loop3][$loop4]['port'] . "\n", 80); >+ if ($debug) { echo "$egap2 port = " . $serv[$loop3][$loop4]['port'] . "<BR>"; }; >+ } >+ >+ > if (isset($serv[$loop3][$loop4]['weight']) && > $serv[$loop3][$loop4]['weight'] != "") { > fputs ($fd, "$gap2 weight = " . $serv[$loop3][$loop4]['weight'] . "\n", 80); >@@ -1071,6 +1082,7 @@ > $serv[$virt_idx][$loop2]['server'] = "[unnamed]"; > $serv[$virt_idx][$loop2]['address'] = "0.0.0.0"; > $serv[$virt_idx][$loop2]['active'] = "0"; >+ $serv[$virt_idx][$loop2]['port'] = ""; > $serv[$virt_idx][$loop2]['weight'] = "1"; > > open_file("w+"); write_config(""); /* umm save this quick to file */; >diff -ruN secure.orig/virtual_edit_real_edit.php secure/virtual_edit_real_edit.php >--- secure.orig/virtual_edit_real_edit.php 2007-11-23 02:04:16.000000000 +0000 >+++ secure/virtual_edit_real_edit.php 2007-11-23 02:25:58.000000000 +0000 >@@ -22,6 +22,8 @@ > $nmask = $_GET['nmask']; > $address = $_GET['address']; > $weight = $_GET['weight']; >+ $port = $_GET['port']; >+ > if ($name == "") { > $name = $serv[$selected_host][$selected]['server']; > } else { >@@ -37,6 +39,7 @@ > } > > // $serv[$selected_host][$selected]['heartbeat'] = $heartbeat_lvs; >+ $serv[$selected_host][$selected]['port'] = $port; > $serv[$selected_host][$selected]['weight'] = $weight; > } > >@@ -178,6 +181,10 @@ > </TR> > --> > <TR> >+ <TD>Port: </TD> >+ <TD><INPUT TYPE="TEXT" NAME="port" VALUE=<?php echo $serv[$selected_host][$selected]['port'] ?>><small>(Leave blank to default to Virtual Server's Application Port)</small></TD> >+ </TR> >+ <TR> > <TD>Weight: </TD> > <TD><INPUT TYPE="TEXT" NAME="weight" VALUE=<?php echo $serv[$selected_host][$selected]['weight'] ?>></TD> > </TR>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 396241
:
267301
| 267311