浏览代码

0036: Enabling mod_status for Monitoring Apache HTTPD

i12bretro 4 年之前
父节点
当前提交
94a5fa196f
共有 1 个文件被更改,包括 13 次插入8 次删除
  1. 13 8
      0036.html

+ 13 - 8
0036.html

@@ -33,9 +33,13 @@
             $(document).on('click','input.copy-text',function(){
               theButton = $(this);
 														$('input.copy-text').attr('src','images/clipboard.png');
-							              $('span.copy-animation').removeClass('copy-animation');
+							              $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
               try {
-                $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
+                } else {
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                }
                 navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
 																theButton.attr('src','images/clipboard_active.png');
 								              } catch(err) {
@@ -57,8 +61,8 @@
             });
 
             if(window.self !== window.top){
-              window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
-            }
+															window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
+							            }
           });
         </script>
         <link href="css/steps.css" rel="stylesheet" type="text/css" />
@@ -88,10 +92,11 @@
 	</li>
 	<li>At the bottom of the file paste the following
 	<p>ExtendedStatus On<br />
-	<location server-status=""><br />
-	&nbsp;&nbsp;&nbsp; SetHandler server-status<br />
-	&nbsp;&nbsp;&nbsp; Order allow,deny<br />
-	&nbsp;&nbsp;&nbsp; Allow from all</location></p>
+	&lt;location /server-status&gt;<br />
+	    SetHandler server-status<br />
+	    Order allow,deny<br />
+	    Allow from all<br />
+	&lt;/location&gt;</p>
 	</li>
 	<li><em>Note: By default this will only allow access from the host Apache is running on</em></li>
 	<li>Restart the Apache service to apply the changes</li>