Bonjour,
j'ai le plugin HTTPConsole et j'aimerais faire en sorte que sur mon site quand on clique sur un lien ça execute une commande sur mon serveur via HTTPConsole qui supporte cette fonctionnalité.
Dans config voici ce qu'il y a:
- This is a list of the allowed hostnames (domains) that HTTPConsole will
- accept requests on. This means that if someone uses
- "http://my.domain.com:8765/console?command=stop" to issue the
- stop command to your server, and my.domain.com is not listed below, the
- connection will be refused.
- The one exception to the above rule is that If no hostnames are listed than
- any hostname will be allowed.
- This is similar to virtual hosting except that HTTPConsole only uses the
- hostname to allow or deny the request.
- This feature combined with the cross site scripting restrictions in modern
- browsers is designed to make it more difficult for unauthorized people
- to target your server from client side (browser) scripts. This does not make
- it impossible however as they can always create a proxy if they really want
- to send requests from the browser.
- If any hostnames are listed, requests to bare ip addresses will be denied
- unless the ip address is 127.0.0.1.
- An asterisk (*) in the left most label will match any valid label or labels.
- At the very least one label and a top level domain (com, org, net, etc.) must
- be given per hostname.
allowed-hosts:
- admin.jim178.fr
J'ai donc mis mon site et j'ai créer une page avec mot de passe, j'ai ensuite mis un lien cliquable de ce type : admin.jim178.fr:8765/console?command=stop
Le problème c'est que quand je clique sur ce lien il y a un long chargement pour ensuite me dire que la page est inaccessible, aucun refus dans les logs de mon serveur.
Il y a ceci a placer sur la page mais je ne sais pas où le mettre : http://dev.bukkit.org/server-mods/httpconsole/pages/php-example/
Help please =)