International Support > French
[RESOLVED] Access Webcpanel
(1/1)
c-cris:
Bonjour,
Je test d'accéder au webcpanel de Anope mais rien y fait ou j'y ai rien compris :/
Ma configuration :
--- Code: ---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";
}
--- End code ---
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: ---
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";
}
--- End code ---
This in modules.conf.
When I access myip:8080 I have nothing:/ any idea?
thank you in advance
PeGaSuS:
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
c-cris:
Hola,
No, just :
--- Code: ---Page not found
--- End code ---
Even if I change ports :/
PeGaSuS:
On my server (Ubuntu 20.04), I have the following related to webcpanel:
--- Code: ---/*
* 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";
}
--- End code ---
When I do lsof -i :12345 I get the following output:
--- Code: ---$ lsof -i :12345
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
services 19618 anope 5u IPv4 1718481 0t0 TCP *:12345 (LISTEN)
--- End code ---
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.
c-cris:
Ah merci beaucoup, j'avais pas restart mais juste reload :/
Encore merci pour l'aide :)
Navigation
[0] Message Index
Go to full version