Aller au contenu

Nouveau membre ?! Pense à te présenter pour accéder au contenu du forum !

New member ?! Introduce yourself to get access to the forum !

Messages recommandés

Bonjour à tous,

 

Je vous partage le CMS Habbo 2 pour la gestion de vos serveurs Habbo ! Il vous faut un serveur web avec Apache / NGinx avec PHP et MySQL d'installé pour pouvoir en profiter pleinement ! Le CMS est prévu initialement pour Apache, vous pouvez l'utiliser avec NGinx en utilisant la configuration ci-dessous.

 

Configuration NGinx :

 

# nginx configuration

error_page 404 /error.php;

autoindex off;

location /account {
  rewrite ^/account/password/resetIdentity/([^/]+) /account/resetIdentity.php?ukey=$1;
  rewrite ^/account/password/identityResetForm([^/]+) /account/identityResetForm.php;
}

location /identity {
  rewrite ^/identity/useOrCreateAvatar/([^/]+) /identity/useOrCreateAvatar.php?id=$1;
}

location /logout {
  rewrite ^/logout([^/]+) /account/logout.php;
}

location /community {
  rewrite ^/community/socialmedia([^/]+) /socialmedia.php;
  rewrite ^/community/fansites([^/]+) /fansites.php;
  rewrite ^/community/staffs([^/]+) /staffs.php;
}

location /safety {
  rewrite ^/safety/habbo_way([^/]+) /habbo_way.php;
  rewrite ^/safety/safety_tips([^/]+) /safety_tips.php;
}

location /profile {
  rewrite ^/profile/email([^/]+) /profile_config/email.php;
  rewrite ^/profile/friendsmanagement([^/]+) /profile_config/friendsmanagement.php;
  rewrite ^/profile/password([^/]+) /profile_config/password.php;
  rewrite ^/profile/profileupdate([^/]+) /profile.php?p=update;
}

location /articles {
  rewrite ^/articles/(.*)-(.*)$ /articles.php?id=$1&idpage=$2;
}

location /home {
  rewrite ^/home/([^/]+) /home.php?username=$1;
}

location /room {
  rewrite ^/room/([^/]+) /room.php?id=$1;
}

location /proceedWithPayment {
  rewrite ^/proceedWithPayment/StarPass/(.*)/(.*)$ /proceedWithPayment/StarPass.php?check=$1&checkcode=valide;
  rewrite ^/proceedWithPayment/StarPass/([^/]+) /proceedWithPayment/StarPass.php?check=$1;
  rewrite ^/proceedWithPayment/VIP/([^/]+) /proceedWithPayment/VIP.php?check=$1;
}

location /admin {
  rewrite ^/admin/site/boutique([^/]+) /admin/boutique.php;
  rewrite ^/admin/site/fansites([^/]+) /admin/fansites.php;
  rewrite ^/admin/staffs/([^/]+) /admin/staffs.php?id=$1;
  rewrite ^/admin/bans/([^/]+) /admin/bans.php?value=$1;
  rewrite ^/admin/delete_new/([^/]+) /admin/delete_new.php?id=$1;
  rewrite ^/admin/new/post([^/]+) /admin/new.php?post=true;
}

location / {
  if (!-e $request_filename){
    rewrite ^/(([A-Za-z0-9\-_]+/)*[A-Za-z0-9\-_]+)?$ /$1.php;
  }
}

location /.htaccess {
  deny all;
}

location ~ \.log$ {
  deny all;
}

 

Cordialement,

ASIKOO

---

Download

 

Download

 

Liste des téléchargements possible pour ce tutoriel / partage...

 

CMS Habbo 2 : Télécharger

 

 

Partager ce message


Lien à poster
Partager sur d’autres sites

Non, non et non. 

 

Quelqu'un qui a nginx ne pourra pas en profiter comme quelqu'un disposant  d'Apache car ce site fonctionne avec un htacces et a donc été fait pour Apache.

 

Partager ce message


Lien à poster
Partager sur d’autres sites

Voici la configuration Nginx adapté au CMS ( je te laisse éditer ton topic Asikoo si tu le souhaites )

 

# nginx configuration

error_page 404 /error.php;

autoindex off;

location /account {
  rewrite ^/account/password/resetIdentity/([^/]+) /account/resetIdentity.php?ukey=$1;
  rewrite ^/account/password/identityResetForm([^/]+) /account/identityResetForm.php;
}

location /identity {
  rewrite ^/identity/useOrCreateAvatar/([^/]+) /identity/useOrCreateAvatar.php?id=$1;
}

location /logout {
  rewrite ^/logout([^/]+) /account/logout.php;
}

location /community {
  rewrite ^/community/socialmedia([^/]+) /socialmedia.php;
  rewrite ^/community/fansites([^/]+) /fansites.php;
  rewrite ^/community/staffs([^/]+) /staffs.php;
}

location /safety {
  rewrite ^/safety/habbo_way([^/]+) /habbo_way.php;
  rewrite ^/safety/safety_tips([^/]+) /safety_tips.php;
}

location /profile {
  rewrite ^/profile/email([^/]+) /profile_config/email.php;
  rewrite ^/profile/friendsmanagement([^/]+) /profile_config/friendsmanagement.php;
  rewrite ^/profile/password([^/]+) /profile_config/password.php;
  rewrite ^/profile/profileupdate([^/]+) /profile.php?p=update;
}

location /articles {
  rewrite ^/articles/(.*)-(.*)$ /articles.php?id=$1&idpage=$2;
}

location /home {
  rewrite ^/home/([^/]+) /home.php?username=$1;
}

location /room {
  rewrite ^/room/([^/]+) /room.php?id=$1;
}

location /proceedWithPayment {
  rewrite ^/proceedWithPayment/StarPass/(.*)/(.*)$ /proceedWithPayment/StarPass.php?check=$1&checkcode=valide;
  rewrite ^/proceedWithPayment/StarPass/([^/]+) /proceedWithPayment/StarPass.php?check=$1;
  rewrite ^/proceedWithPayment/VIP/([^/]+) /proceedWithPayment/VIP.php?check=$1;
}

location /admin {
  rewrite ^/admin/site/boutique([^/]+) /admin/boutique.php;
  rewrite ^/admin/site/fansites([^/]+) /admin/fansites.php;
  rewrite ^/admin/staffs/([^/]+) /admin/staffs.php?id=$1;
  rewrite ^/admin/bans/([^/]+) /admin/bans.php?value=$1;
  rewrite ^/admin/delete_new/([^/]+) /admin/delete_new.php?id=$1;
  rewrite ^/admin/new/post([^/]+) /admin/new.php?post=true;
}

location / {
  if (!-e $request_filename){
    rewrite ^/(([A-Za-z0-9\-_]+/)*[A-Za-z0-9\-_]+)?$ /$1.php;
  }
}

location /.htaccess {
  deny all;
}

location ~ \.log$ {
  deny all;
}

 

Partager ce message


Lien à poster
Partager sur d’autres sites

×

Information importante

By using this site, you agree to our Conditions d’utilisation.