Current time: 11-27-2024, 12:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
function loginHTTP no funciona en ispcp
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: function loginHTTP no funciona en ispcp
Depende de si usas fastcgi o fcgid, tienes que modificar:

- Para fcgid, añadir la siguiente linea en /etc/apache2/mods-enabled/fcgid_ispcp.conf:
Code:
PassHeader AUTHORIZATION

- Para fastcgi, añadir la siguiente opción en la directiva FastCgiConfig del fichero /etc/apache2/mods-enabled/fastcgi_ispcp.conf, (asegurate que la linea anterior termina con "\"):
Code:
-pass-header Authorization

Luego añade esto al principio de todo de tu script:
PHP Code:
list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = 
    
explode(':' base64_decode(substr($_SERVER['AUTHORIZATION'], 6))); 

Reinicia apache y ale, a correr!
(This post was last modified: 04-08-2010 05:46 AM by kilburn.)
04-08-2010 05:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: function loginHTTP no funciona en ispcp - kilburn - 04-08-2010 05:45 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)