Difference between revisions of "2.0/Modules/webcpanel"

From AnopeWiki
Jump to: navigation, search
(Created page with "{{Language|2.0/Modules/webcpanel}} {{Header|webcpanel|Extra_Modules|Anope}} == <div class="moduleheader">Description</div> == This module creates a web configuration panel t...")
 
m
 
Line 40: Line 40:
 
}
 
}
  
 +
</syntaxhighlight></div>
 +
 +
 +
== <div class="moduleheader">Apache Configuration</div> ==
 +
 +
For using apache as a reverse proxy put following in your configuration:
 +
(does not work with .htaccess)
 +
 +
<div class="code">
 +
<syntaxhighlight lang="cpp">
 +
SetOutputFilter proxy-html
 +
# www.anope.org/cpanel/
 +
ProxyPass /cpanel/ http://192.168.1.2:12345/
 +
ProxyPassReverse /cpanel/ http://192.168.1.2:12345/
 +
ProxyPassReverseCookiePath / /cpanel/
 +
<Location /cpanel/>
 +
SetOutPutFilter proxy-html
 +
ProxyHTMLExtended On
 +
ProxyHTMLURLMap ^/(?!/) /cpanel/ R
 +
</Location>
 
</syntaxhighlight></div>
 
</syntaxhighlight></div>

Latest revision as of 14:57, 2 July 2014

Language

English

Section Extra_Modules
Module webcpanel
Author Anope


Description

This module creates a web configuration panel that allows users and operators to perform any task as they could over IRC.

  • NOTE: Requires module m_httpd.
name= 
Name of module
server= 
Server process to use
template= 
Web page templates to use
title= 
Web page title

Default Configuration

/*
 * webcpanel
 *
 * This module creates a web configuration panel that allows users and operators to perform any task
 * as they could over IRC. If you are using the default configuration you should be able to access
 * this panel by visiting http://127.0.0.1:8080 in your web browser from the machine Anope is running on.
 *
 * This module requires m_httpd.
 */
#module
{
        name = "webcpanel"
 
        /* Web server to use. */
        server = "httpd/main";
 
        /* Template to use. */
        template = "default";
 
        /* Page title. */
        title = "Anope IRC Services";
}


Apache Configuration

For using apache as a reverse proxy put following in your configuration: (does not work with .htaccess)

SetOutputFilter proxy-html
# www.anope.org/cpanel/
ProxyPass /cpanel/ http://192.168.1.2:12345/
ProxyPassReverse /cpanel/ http://192.168.1.2:12345/
ProxyPassReverseCookiePath / /cpanel/
<Location /cpanel/>
	SetOutPutFilter proxy-html
	ProxyHTMLExtended On
	ProxyHTMLURLMap ^/(?!/) /cpanel/ R
</Location>