@@ -0,0 +1,91 @@
|
||||
<?php include('header.php'); ?>
|
||||
<div id="body">
|
||||
<?php include('hyproxy_category.php'); ?>
|
||||
|
||||
<?php
|
||||
if (!empty($notice)) echo '<div style="margin:5px 2px;width:500px;"><p id="' . $status . '">' . $notice . '</p></div>';
|
||||
?>
|
||||
<p>反代缓存设置:</p>
|
||||
<form action="./index.php?c=hyproxy&a=hyproxy_cache" method="POST" >
|
||||
<table border="0" cellspacing="1" id="STable" style="width:720px;">
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
<th>值</th>
|
||||
<th>说明</th>
|
||||
</tr>
|
||||
|
||||
<td>缓存数据目录</td>
|
||||
<td style="padding:8px">
|
||||
/home/hyproxy_cache
|
||||
</td>
|
||||
<td>缓存数据保存的位置</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>数据目录层次(levels)</td>
|
||||
<td><input type="text" name="levels" class="input_text" value="<?php echo $hyproxy_cache['levels'];?>" /> <font class="red">*</font>
|
||||
</td>
|
||||
<td>缓存数据目录层次<br />允许使用1或2 / 最大3层
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: 1:2)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>区域内存大小(keys_zone)</td>
|
||||
<td><input type="text" name="keys_zone" class="input_text" value="<?php echo $hyproxy_cache['keys_zone'];?>" /> <font class="red">*</font>
|
||||
</td>
|
||||
<td>设置缓存区域内存大小
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: 20m)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>磁盘空间大小(max_size)</td>
|
||||
<td><input type="text" name="max_size" class="input_text" value="<?php echo $hyproxy_cache['max_size'];?>" /> <font class="red">*</font>
|
||||
</td>
|
||||
<td>限制缓存磁盘空间大小
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: 2g)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>缓存文件有效时间(valid)</td>
|
||||
<td><input type="text" name="valid" class="input_text" value="<?php echo $hyproxy_cache['valid'];?>" /> <font class="red">*</font>
|
||||
</td>
|
||||
<td>设置缓存文件有效时间<br />
|
||||
超过设定时间即重新请求
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: 12h)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>缓存文件删除时间(inactive)</td>
|
||||
<td><input type="text" name="inactive" class="input_text" value="<?php echo $hyproxy_cache['inactive'];?>" /> <font class="red">*</font>
|
||||
</td>
|
||||
<td>缓存文件无新访问之后删除时间<br />
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: 10d)</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><th colspan="3" style="padding:10px;text-align:left;">
|
||||
<button type="submit" class="primary button" name="save"><span class="check icon"></span>保存</button>
|
||||
</th></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<div id="notice_message" style="width:880px;">
|
||||
<h3>» SSH HYProxy 缓存设置</h3>
|
||||
cache: 设置缓存 (ssh命令: amh module HYProxy-1.0 admin cache,levels,keys_zone,max_size,valid,inactive)<br />
|
||||
cache 参数说明: <br />
|
||||
<ul>
|
||||
<li>levels: 缓存数据目录层次,最多可为3层。示例值: 1:2:2</li>
|
||||
<li>keys_zone: 缓存区域内存大小。示例值: 20m</li>
|
||||
<li>max_size: 限制缓存磁盘空间大小。示例值:2g</li>
|
||||
<li>valid: 设置缓存文件有效时间,超过设定时间即重新请求。示例值:12h</li>
|
||||
<li>inactive: 缓存文件删除时间,超过设置的时间内如无新访问请求缓存将自动删除。示例值: 10d</li>
|
||||
</ul>
|
||||
start-cache: 域名开启缓存 (ssh命令: amh module HYProxy-1.0 admin start-cache,amysql.com) 启动amysql.com反代网站缓存。<br />
|
||||
stop-cache: 域名停止缓存 (ssh命令: amh module HYProxy-1.0 admin stop-cache,amysql.com) 停止amysql.com反代网站缓存。<br />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include('footer.php'); ?>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php include('header.php'); ?>
|
||||
<style>
|
||||
#STable td.object_list_last {
|
||||
background:url("View/images/Listbj.gif") repeat-x scroll left top white;
|
||||
padding:8px;
|
||||
text-align:right;
|
||||
line-height:18px;
|
||||
color:#607993;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var cache_host;
|
||||
var cache_key;
|
||||
var cache_host_js = <?php echo json_encode($cache_host);?>;
|
||||
window.onload = function ()
|
||||
{
|
||||
cache_host = G('cache_host');
|
||||
cache_key = G('cache_key');
|
||||
cache_host.onchange = function ()
|
||||
{
|
||||
|
||||
for (var k in cache_host_js)
|
||||
{
|
||||
var reg = new RegExp('http://' + cache_host_js[k], "gmi");
|
||||
cache_key.value = cache_key.value.replace(reg,'');
|
||||
}
|
||||
if (cache_host.value != '')
|
||||
cache_key.value = 'http://' + cache_host.value + cache_key.value + (cache_key.value == '' ? '%' : '');
|
||||
cache_key.value = cache_key.value == '%' ? '' : cache_key.value;
|
||||
}
|
||||
}
|
||||
var cache_delete_submit = function ()
|
||||
{
|
||||
if (!confirm('删除当前搜索结果(缓存索引&缓存文件) <?php echo $hyproxy_cache_list['sum'];?> 项吗?'))
|
||||
return false;
|
||||
G('cache_delete_button').innerHTML = '删除缓存中…';
|
||||
G('cache_delete_button').disabled = true;
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<div id="body">
|
||||
<?php include('hyproxy_category.php'); ?>
|
||||
|
||||
<?php
|
||||
if (!empty($notice)) echo '<div style="margin:5px 2px;width:500px;"><p id="' . $status . '">' . $notice . '</p></div>';
|
||||
?>
|
||||
|
||||
<div>
|
||||
<p>搜索查看缓存与删除</p>
|
||||
<form action="" method="GET">
|
||||
<input type="hidden" value="hyproxy_cache_del" name="a"/>
|
||||
<input type="hidden" value="hyproxy" name="c"/>
|
||||
索引域名 <select name="cache_host" id="cache_host" style="width:180px;">
|
||||
<?php if (is_array($cache_host))
|
||||
{
|
||||
foreach ($cache_host as $key=>$val)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $val;?>"><?php echo $val;?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<option value="">所有</option>
|
||||
</select>
|
||||
<script>G('cache_host').value = '<?php echo isset($_GET['cache_host']) ? $_GET['cache_host'] : '';?>';</script>
|
||||
网址匹配 (可使用%通配符) <input type="text" name="cache_key" id="cache_key" class="input_text" value="<?php echo isset($_GET['cache_key']) ? $_GET['cache_key'] : '';?>" style="width:250px;"/>
|
||||
文件类型 <select name="cache_type" id="cache_type" style="width:180px;">
|
||||
<?php if (is_array($cache_type))
|
||||
{
|
||||
foreach ($cache_type as $key=>$val)
|
||||
{
|
||||
if($val != 'all') {
|
||||
?>
|
||||
<option value="<?php echo $val;?>"><?php echo $val;?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<option value="all">所有</option>
|
||||
</select>
|
||||
<script>G('cache_type').value = '<?php echo isset($_GET['cache_type']) ? $_GET['cache_type'] : all;?>';</script>
|
||||
<button type="submit" class="primary button" >搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
#STable td {
|
||||
text-align:left;
|
||||
padding-left:10px;
|
||||
}
|
||||
</style>
|
||||
<div id="HYProxy_list">
|
||||
<table border="0" cellspacing="1" id="STable" style="width:1150px;">
|
||||
<tr>
|
||||
<th>编号</th>
|
||||
<th>缓存文件</th>
|
||||
<th width="380">网址</th>
|
||||
<th>状态码</th>
|
||||
<th>文件类型</th>
|
||||
<th>大小 / MB</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
<?php
|
||||
if(!is_array($hyproxy_cache_list['data']) || count($hyproxy_cache_list['data']) < 1)
|
||||
{
|
||||
?>
|
||||
<tr><td colspan="7" style="padding:10px;text-align:center;">没找到缓存索引数据。</td></tr>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
$k = 0;
|
||||
foreach ($hyproxy_cache_list['data'] as $key=>$val)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th class="i"><?php echo $val['hyproxy_id'];?></th>
|
||||
<td><?php echo $val['hyproxy_file'];?></td>
|
||||
<td><a href="<?php echo $val['hyproxy_key'];?>" target="_blank"><?php echo $val['hyproxy_key'];?></a></td>
|
||||
<td><?php echo $val['hyproxy_http_s'];?></td>
|
||||
<td><?php echo $val['hyproxy_type'];?></td>
|
||||
<td><?php echo !empty($val['hyproxy_size']) ? $val['hyproxy_size'] : 0;?></td>
|
||||
<td><?php echo $val['hyproxy_time'];?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="7" class="object_list_last">
|
||||
<form action="" method="POST" onsubmit="return cache_delete_submit()">
|
||||
删除当前搜索结果(缓存索引&缓存文件) <?php echo $hyproxy_cache_list['sum'];?> 项
|
||||
<button type="submit" class="primary button" id="cache_delete_button"> 确认删除</button>
|
||||
<input type="hidden" name="post_delete" value="y"/>
|
||||
<input type="hidden" value="<?php echo $_GET['cache_type'];?>" name="cache_type"/>
|
||||
<input type="hidden" value="<?php echo $_GET['cache_key'];?>" name="cache_key"/>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="page_list">总<?php echo $total_page;?>页 - <?php echo $hyproxy_cache_list['sum'];?>记录 » 页码 <?php echo htmlspecialchars_decode($page_list);?> </div>
|
||||
<button type="button" class="primary button" onclick="WindowLocation('/index.php?c=hyproxy&a=hyproxy_cache_del')"><span class="home icon"></span> 返回列表</button>
|
||||
|
||||
<div id="notice_message" style="width:880px;">
|
||||
<h3>» SSH HYProxy 缓存删除</h3>
|
||||
cache-delete: 缓存删除 (ssh命令: amh module HYProxy-1.0 admin cache-delete,url-param,file-type)<br />
|
||||
cache-delete 参数说明: <br />
|
||||
<ul>
|
||||
<li>url-param: 网址匹配参数,可使用%通配符进行匹配删除。预设参数值有: -all (使用-all即匹配所有网址)</li>
|
||||
<li>file-type: 缓存文件类型匹配参数,可匹配text/html、image/gif等相关文件类型进行删除。预设参数值有: -all (使用-all即匹配所有文件类型)</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php include('footer.php'); ?>
|
||||
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
<?php include('header.php'); ?>
|
||||
<style>
|
||||
#STable td.object_list {
|
||||
background:url("View/images/Listbj01.gif") repeat-x scroll left top white;
|
||||
padding:20px;
|
||||
}
|
||||
#STable td.object_list_last {
|
||||
background:url("View/images/Listbj.gif") repeat-x scroll left top white;
|
||||
padding:8px;
|
||||
text-align:right;
|
||||
line-height:18px;
|
||||
color:#607993;
|
||||
}
|
||||
#STable td.object_list_last font{
|
||||
font-size:14px;
|
||||
}
|
||||
#STable td.object_name, #STable th.object_name {
|
||||
text-align:left;
|
||||
padding-left:22px;
|
||||
}
|
||||
#STable .Object_list {
|
||||
width:930px;
|
||||
background:none;
|
||||
border:1px solid #E7E7E7;
|
||||
}
|
||||
#STable .Object_list td {
|
||||
border-bottom:1px solid #E0E0E0;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var cache_index_submit = function ()
|
||||
{
|
||||
G('cache_index_button').innerHTML = '创建索引中…';
|
||||
G('cache_index_button').disabled = true;
|
||||
}
|
||||
</script>
|
||||
<div id="body">
|
||||
<?php include('hyproxy_category.php'); ?>
|
||||
|
||||
<?php
|
||||
if (!empty($notice)) echo '<div style="margin:5px 2px;width:500px;"><p id="' . $status . '">' . $notice . '</p></div>';
|
||||
?>
|
||||
<p>反代缓存索引:</p>
|
||||
<table border="0" cellspacing="1" id="STable" style="width:720px;">
|
||||
<tr>
|
||||
<th>索引域名</th>
|
||||
<th>总缓存数量</th>
|
||||
<th>总使用空间</th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$host_sum = 0;
|
||||
$file_sum = 0;
|
||||
$file_size = 0;
|
||||
foreach ($hyproxy_cache_index as $key=>$val)
|
||||
{
|
||||
$file_sum += $val['all']['sum'];
|
||||
$file_size += $val['all']['size'];
|
||||
++$host_sum;
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="http://<?php echo $key;?>" class="button" target="_blank"><span class="home icon"></span>主页</a> <?php echo $key;?></td>
|
||||
<td style="padding:8px">总缓存文件 <b><?php echo $val['all']['sum'];?></b> 个</td>
|
||||
<td>总使用空间 <b><?php echo $val['all']['size'];?></b> MB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="object_list">
|
||||
<table border="0" cellspacing="0" id="STable" style="width:580px;" class="Object_list">
|
||||
<tr>
|
||||
<th class="object_name">缓存文件类型</th>
|
||||
<th>缓存数量</th>
|
||||
<th>使用空间</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($val as $k=>$v)
|
||||
{
|
||||
if($k != 'all')
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td class="object_name"><?php echo $k;?></td>
|
||||
<td style="padding:8px">缓存文件 <b><?php echo $v['sum'];?></b> 个</td>
|
||||
<td>使用空间 <b><?php echo $v['size'];?></b> MB</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3" class="object_list_last"><font>共索引域名 <b><?php echo $host_sum;?></b> 个: </font>
|
||||
全部缓存文件 <b><?php echo $file_sum;?></b> 个 /
|
||||
全部缓存文件已用 <b><?php echo $file_size;?></b> MB</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br /><br />
|
||||
<form action="./index.php?c=hyproxy&a=hyproxy_cache_index" method="POST" id="cache_index_form" onsubmit="return cache_index_submit()">
|
||||
<p>建立缓存索引:</p>
|
||||
<table border="0" cellspacing="1" id="STable" style="width:560px;">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>时间单位</th>
|
||||
<th>时间范围</th>
|
||||
<th>使用模式</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" name="cache_index_time_val" class="input_text" value="<?php echo isset($_POST['cache_index_time_val']) ? $_POST['cache_index_time_val'] : 2;?>" style="width:50px;"/></td>
|
||||
<td><select name="cache_index_time_type" id="cache_index_time_type" style="width:110px;">
|
||||
<option value="1">天</option>
|
||||
<option value="2">小时</option>
|
||||
<option value="3">分钟</option>
|
||||
</select>
|
||||
<script>
|
||||
G('cache_index_time_type').value = '<?php echo isset($_POST['cache_index_time_type']) ? $_POST['cache_index_time_type'] : 1;?>';
|
||||
</script>
|
||||
</td>
|
||||
<td><select name="cache_index_time_area" id="cache_index_time_area" style="width:110px;">
|
||||
<option value="1">之内</option>
|
||||
<option value="2">之外</option>
|
||||
</select>
|
||||
<script>
|
||||
G('cache_index_time_area').value = '<?php echo isset($_POST['cache_index_time_area']) ? $_POST['cache_index_time_area'] : 1;?>';
|
||||
</script>
|
||||
</td>
|
||||
<td><select name="cache_index_time_mode" id="cache_index_time_mode" style="width:110px;">
|
||||
<option value="1">更新与追加</option>
|
||||
<option value="2">清空后重建</option>
|
||||
</select>
|
||||
<script>
|
||||
G('cache_index_time_mode').value = '<?php echo isset($_POST['cache_index_time_mode']) ? $_POST['cache_index_time_mode'] : 1;?>';
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<input type="hidden" name="post_submit" value="y"/>
|
||||
<button type="submit" class="primary button" id="cache_index_button"><span class="check icon"></span>建立索引</button>
|
||||
</form>
|
||||
|
||||
|
||||
<div id="notice_message" style="width:880px;">
|
||||
<h3>» SSH HYProxy 缓存索引</h3>
|
||||
cache-index: 设置缓存 (ssh命令: amh module HYProxy-1.0 admin cache-index,cmin,mode)<br />
|
||||
cache-index 参数说明: <br />
|
||||
<ul>
|
||||
<li>cmin: 索引缓存文件使用的时间,单位为分钟。可使用:+分钟 / -分钟</li>
|
||||
<li>+分钟: 索引N分钟之前的缓存数据。</li>
|
||||
<li>-分钟: 索引N分钟之内的缓存数据。</li>
|
||||
<li>mode: 索引数据模式,可选参数。可用值:truncate (清空模式,清空旧索引数据后再建立索引)
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include('footer.php'); ?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php !defined('_Amysql') && exit; ?>
|
||||
<style>
|
||||
#HYProxy_list input.input_text {
|
||||
width: 292px;
|
||||
}
|
||||
#HYProxy_list textarea {
|
||||
display:inline;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
if(!WindowLocation){
|
||||
var WindowLocation = function (url){
|
||||
window.location = url;
|
||||
}
|
||||
var WindowOpen = function (url){
|
||||
window.open(url);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<h2>AMH » HYProxy</h2>
|
||||
<div id="category">
|
||||
<a href="index.php?c=hyproxy&a=hyproxy_list" id="hyproxy_list" >反代列表</a>
|
||||
<a href="index.php?c=hyproxy&a=hyproxy_cache" id="hyproxy_cache">缓存设置</a>
|
||||
<a href="index.php?c=hyproxy&a=hyproxy_cache_index" id="hyproxy_cache_index">缓存索引</a>
|
||||
<a href="index.php?c=hyproxy&a=hyproxy_cache_del" id="hyproxy_cache_del">缓存删除</a>
|
||||
<script>
|
||||
var action = '<?php echo $_GET['a'];?>';
|
||||
var action_dom = G(action) ? G(action) : G('hyproxy_list');
|
||||
action_dom.className = 'activ';
|
||||
</script>
|
||||
</div>
|
||||
@@ -0,0 +1,154 @@
|
||||
<?php include('header.php'); ?>
|
||||
<!-- 载入面板头部文件 -->
|
||||
|
||||
<div id="body">
|
||||
<?php include('hyproxy_category.php'); ?>
|
||||
<?php
|
||||
if (!empty($notice)) echo '<div style="margin:5px 2px;width:500px;"><p id="' . $status . '">' . $notice . '</p></div>';
|
||||
?>
|
||||
<p>HYProxy反向代理:</p>
|
||||
<div id="HYProxy_list">
|
||||
<table border="0" cellspacing="1" id="STable" style="width:850px;">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>域名</th>
|
||||
<th>最后修改</th>
|
||||
<th>管理</th>
|
||||
</tr>
|
||||
<?php
|
||||
if(!is_array($hyproxy_list) || count($hyproxy_list) < 1)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:10px;">暂无绑定域名。</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach ($hyproxy_list as $key=>$val)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th class="i"><?php echo $val['hyproxy_id'];?></th>
|
||||
<td><a href="http://<?php echo $val['server_name'];?>" target="_blank"><?php echo $val['server_name'];?></a></td>
|
||||
<td><?php echo date("Y-m-d H:i:s", $val['time']);?></td>
|
||||
<td><a href="index.php?c=hyproxy&run=<?php echo $val['server_name'];?>&g=<?php echo $val['status'] != 'stop' ? 'stop' : 'start';?>" > <span <?php echo $val['status'] != 'stop' ? 'class="run_start"' : 'class="run_stop"';?>><?php echo $val['status'] != 'stop' ? '运行中' : '已停止' ;?></span> </a> <a href="index.php?c=hyproxy&run_cache=<?php echo $val['server_name'];?>&g=<?php echo $val['proxy_cache'] != '0' ? '0' : '1';?>" > <span <?php echo $val['proxy_cache'] != '0' ? 'class="run_start"' : 'class="run_stop"';?>><?php echo $val['proxy_cache'] != '0' ? '有缓存' : '没缓存' ;?></span> </a> <a href="./index.php?c=hyproxy&admin=<?php echo $val['server_name'];?>" class="button"><span class="cog icon"></span> 管理</a> <a href="./index.php?c=hyproxy&del=<?php echo $val['server_name'];?>" class="button" onClick="return confirm('确认删除域名:<?php echo $val['server_name'];?>?');"><span class="cross icon"></span> 删除</a> </td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<button type="button" class="primary button" onClick="WindowLocation('/index.php?c=hyproxy')"><span class="home icon"></span> 返回列表</button>
|
||||
<br />
|
||||
<!-------------------------------------------------------------------------------------------------------->
|
||||
<?php if (isset($_GET['admin'])) { ?>
|
||||
<br />
|
||||
<form action="./index.php?c=hyproxy&admin=<?php echo $_GET['admin'];?>" method="POST" >
|
||||
<p>编辑反向代理网站:</p>
|
||||
<table border="0" cellspacing="1" id="STable" style="width:720px;">
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
<th>值</th>
|
||||
<th>说明</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>绑定域名</td>
|
||||
<td><input type="text" name="" class="input_text disabled" disabled="" value="<?php echo $hyproxy_get['server_name'];?>" />
|
||||
<input type="hidden" name="server_name" value="<?php echo $hyproxy_get['server_name'];?>" />
|
||||
<font class="red">*</font></td>
|
||||
<td>绑定的域名,不需加 http://
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: amysql.com)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>默认首页</td>
|
||||
<td><input type="text" name="index" class="input_text" value="<?php echo $hyproxy_get['index'];?>" />
|
||||
<input type="hidden" name="index_hidden" value="<?php echo $hyproxy_get['index'];?>" />
|
||||
<font class="red">*</font></td>
|
||||
<td>默认首页文件,用半角空格隔开
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: index.php index.html index.htm)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>后端域名</td>
|
||||
<td><input type="text" name="header_host" class="input_text" value="<?php echo $hyproxy_get['header_host'];?>" />
|
||||
<font class="red">*</font>
|
||||
<input type="hidden" name="header_host_hidden" class="input_text" value="<?php echo $hyproxy_get['header_host'];?>" />
|
||||
</td>
|
||||
<td>被反代的域名;$host为nginx变量,等于绑定的域名.
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: nginx.org)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>后端地址</td>
|
||||
<td><input type="text" name="proxy_pass" class="input_text" value="<?php echo $hyproxy_get['proxy_pass'];?>" />
|
||||
<font class="red">*</font>
|
||||
<input type="hidden" name="proxy_pass_hidden" class="input_text" value="<?php echo $hyproxy_get['proxy_pass'];?>" />
|
||||
</td>
|
||||
<td>被反代的IP地址或域名
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: http://123.123.123.123:8888)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="padding:10px;text-align:left;"> <button type="submit" class="primary button" name="edit"><span class="check icon"></span>保存</button>
|
||||
<a href="./index.php?c=hyproxy">取消返回</a> </th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php }else { ?>
|
||||
<!-------------------------------------------------------------------------------------------------------->
|
||||
<br />
|
||||
<form action="./index.php?c=hyproxy" method="POST" >
|
||||
<p>新增HYProxy反向代理网站:</p>
|
||||
<table border="0" cellspacing="1" id="STable" style="width:660px;">
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
<th>值</th>
|
||||
<th>说明</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>绑定域名</td>
|
||||
<td><input type="text" name="server_name" class="input_text" />
|
||||
<font class="red">*</font></td>
|
||||
<td>绑定的域名,不需加 http://
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: amysql.com)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>后端地址</td>
|
||||
<td><input type="text" name="proxy_pass" class="input_text" />
|
||||
<font class="red">*</font></td>
|
||||
<td>被反代的IP地址或域名
|
||||
<div style="font-size:11px;color:#848484;margin:5px;">(e.g: http://123.123.123.123:8888)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="padding:10px;text-align:left;"> <button type="submit" class="primary button" name="submit"><span class="check icon"></span>保存</button></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div id="notice_message" style="width:880px;">
|
||||
<h3>» SSH HYProxy</h3>
|
||||
1) 有步骤提示操作: <br />
|
||||
ssh执行命令: amh module HYProxy-1.0<br />
|
||||
然后选择对应的操作选项进行管理。<br />
|
||||
<br />
|
||||
2) 或直接操作: <br />
|
||||
<ul>
|
||||
<li>HYProxy管理: amh module HYProxy-1.0 [info / install / admin / uninstall / status]</li>
|
||||
</ul>
|
||||
3) HYProxy admin管理选项说明: <br />
|
||||
执行 amh module HYProxy-1.0 admin 提示输入管理参数(例如, list、add,amysql.com,nginx.org等),可以不输入直接回车显示下面选项菜单。
|
||||
<ul>
|
||||
<li>list: 列出反向代理网站列表 (ssh命令: amh module HYProxy-1.0 admin list)</li>
|
||||
<li>make: 生成反向代理网站conf (ssh命令: amh module HYProxy-1.0 admin make,amysql.com)生成amysql.com的conf。不填域名生成所有</li>
|
||||
<li>add: 新增反向代理网站 (ssh命令: amh module HYProxy-1.0 admin add,amysql.com,nginx.org) amysql,com为绑定域名,nginx.org为反代域名。</li>
|
||||
<li>start: 启动反向代理网站 (ssh命令: amh module HYProxy-1.0 admin start,amysql.com) 启动amysql.com反代网站。</li>
|
||||
<li>stop: 停止反向代理网站 (ssh命令: amh module HYProxy-1.0 admin stop,amysql.com) 停止amysql.com反代网站。</li>
|
||||
<li>edit: 编辑反向代理网站 (ssh命令: amh module HYProxy-1.0 admin edit,amysql.com,参数名,参数值,参数值...) amysql.com为绑定域名,<br />
|
||||
其它参数名与值可参考提示使用。</li>
|
||||
<li>del: 删除反向代理网站 (ssh命令: amh module HYProxy-1.0 admin del,amysql.com) 删除绑定amysql.com反代网站。</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include('footer.php'); ?>
|
||||
<!-- 载入面板底部文件 -->
|
||||
Reference in New Issue
Block a user