2.0/Modules/webcpanel

From AnopeWiki
Jump to: navigation, search
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>