Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: [RESOLVED] Access Webcpanel  (Read 2224 times)

0 Members and 2 Guests are viewing this topic.

c-cris

  • Anope User
  • Offline Offline
  • Posts: 12
[RESOLVED] Access Webcpanel
« on: February 27, 2022, 07:37:09 PM »

Bonjour,

Je test d'accéder au webcpanel de Anope mais rien y fait ou j'y ai rien compris :/

Ma configuration :

Code: [Select]
module
{
name = "m_httpd"
 
httpd
{
name = "httpd/main"
ip = "0.0.0.0"
port = 8080
timeout = 30
ssl = yes
#extforward_ip = "192.168.0.255"
extforward_header = "X-Forwarded-For Forwarded-For"
}
}

module
{
name = "webcpanel"
server = "httpd/main";
template = "default"; /* Ce paramètre est à changer si vous souhaitez faire votre propre template */
title = "Anope IRC Services";
}

Ceci dans modules.conf.

Lorsque j'accède à myip:8080 j'ai rien :/ une petite idée ?

Merci d'avance

Translate :
Hello,

I test to access the webcpanel of Anope but nothing works or I didn't understand anything :/

My setup:

Code: [Select]

module
{
name = "m_httpd"
 
httpd
{
name = "httpd/main"
ip = "0.0.0.0"
port = 8080
timeout = 30
ssl = yes
#extforward_ip = "192.168.0.255"
extforward_header = "X-Forwarded-For Forwarded-For"
}
}

module
{
name = "webcpanel"
server = "httpd/main";
template = "default"; /* Ce paramètre est à changer si vous souhaitez faire votre propre template */
title = "Anope IRC Services";
}

This in modules.conf.

When I access myip:8080 I have nothing:/ any idea?

thank you in advance
« Last Edit: March 13, 2022, 02:21:10 PM by c-cris »
Logged

The Myth Lives

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 30
  • What goes around, comes around.
    • PTirc
Re: Access Webcpanel
« Reply #1 on: February 27, 2022, 08:07:46 PM »

Check the following:
  • Be sure that there's nothing else listening on port 8080
  • Change ssl = yes to ssl = no
  • On IRC do /operserv modreload m_httpd
  • Access http://ip:port and see if it works
Logged
What doesn't kill us, makes us stronger!

c-cris

  • Anope User
  • Offline Offline
  • Posts: 12
Re: Access Webcpanel
« Reply #2 on: February 27, 2022, 09:07:31 PM »

Hola,

No, just :

Code: [Select]
Page not found

Even if I change ports :/
Logged

The Myth Lives

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 30
  • What goes around, comes around.
    • PTirc
Re: Access Webcpanel
« Reply #3 on: February 27, 2022, 09:24:06 PM »

On my server (Ubuntu 20.04), I have the following related to webcpanel:
Code: [Select]
/*
 * m_httpd
 *
 * Allows services to serve web pages. By itself, this module does nothing useful.
 *
 * Note that using this will allow users to get the IP of your services.
 * To prevent this we recommend using a reverse proxy or a tunnel.
 */
module
{
name = "m_httpd"

httpd
{
/* Name of this service. */
name = "httpd/main"

/* IP to listen on. */
ip = "0.0.0.0"

/* Port to listen on. */
port = 12345

/* Time before connections to this server are timed out. */
timeout = 30

/* Listen using SSL. Requires an SSL module. */
ssl = no

/* If you are using a reverse proxy that sends one of the
* extforward_headers set below, set this to its IP.
* This allows services to obtain the real IP of users by
* reading the forwarded-for HTTP header.
*/
#extforward_ip = "192.168.0.255"

/* The header to look for. These probably work as is. */
extforward_header = "X-Forwarded-For Forwarded-For"
}
}

/*
 * 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 = "PTirc - Online Accounts Management";
}

When I do
lsof -i :12345
I get the following output:
Code: [Select]
$ lsof -i :12345
COMMAND    PID  USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
services 19618 anope    5u  IPv4 1718481      0t0  TCP *:12345 (LISTEN)

So, as you can see, the httpd server is running, listening in the correct port and I can access it.

Please check if there's no firewall and if your httpd is really listening on the specified port.

Try to restart services if you didn't yet, with /os restart.
Logged
What doesn't kill us, makes us stronger!

c-cris

  • Anope User
  • Offline Offline
  • Posts: 12
Re: Access Webcpanel
« Reply #4 on: February 27, 2022, 09:33:25 PM »

Ah merci beaucoup, j'avais pas restart mais juste reload :/
Encore merci pour l'aide :)
Logged
Pages: [1]   Go Up