Current time: 05-22-2024, 05:30 AM Hello There, Guest! (LoginRegister)


Post Reply 
Basic HTTP Auth Fails
Author Message
satlizard26 Offline


Posts: 4
Joined: Mar 2009
Reputation: 0
Post: #1
Sad Basic HTTP Auth Fails
Hi All

First of all ispCP looks great, I am current using VHCS2 and is looking to swith. I installed ispCP with now problems using the documentation and the recommendations from the Forum on Ubuntu 8.04.

Now this the tha bsic auth page that I have got, is seems to be problem with fast CGI and apache 2. Folowed this link and some suggestion in the forum but it still does not work.

http://www.digitalnerds.net/featured/apa...tcgi-php5/

This same page works 100% on VHCS2, any suggestions.

Thanks in advance.


<?php
require_once('config.php');

function pesanTolak() {
echo ('<p align="center"><strong>Authorization needed!</strong></p>
<p align="center">You do not have access to this page.');
}

if (!isset($_SERVER["PHP_AUTH_USER"])) {
header('WWW-Authenticate: Basic realm="ezRADIUS"');
header('HTTP/1.0 401 Unauthorized');
pesanTolak();
exit();
} else if (isset($_SERVER["PHP_AUTH_USER"])) {
if (($_SERVER["PHP_AUTH_USER"]!=$appUser) || ($_SERVER["PHP_AUTH_PW"]!=$appPasswd)) {
header('WWW-Authenticate: Basic realm="ezRADIUS"');
header('HTTP/1.0 401 Unauthorized');
pesanTolak();
exit();
}
}
?>
03-22-2009 03:39 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Basic HTTP Auth Fails - satlizard26 - 03-22-2009 03:39 PM
RE: Basic HTTP Auth Fails - BeNe - 03-23-2009, 06:23 AM
RE: Basic HTTP Auth Fails - rbtux - 03-23-2009, 06:31 AM
RE: Basic HTTP Auth Fails - satlizard26 - 03-24-2009, 03:26 AM
RE: Basic HTTP Auth Fails - rbtux - 03-24-2009, 03:30 AM
RE: Basic HTTP Auth Fails - satlizard26 - 03-25-2009, 03:24 AM
RE: Basic HTTP Auth Fails - rbtux - 03-25-2009, 04:08 AM
RE: Basic HTTP Auth Fails - kilburn - 03-25-2009, 10:11 PM
RE: Basic HTTP Auth Fails - satlizard26 - 03-26-2009, 04:39 PM
RE: Basic HTTP Auth Fails - kilburn - 03-26-2009, 11:50 PM
RE: Basic HTTP Auth Fails - joximu - 04-02-2009, 09:54 PM
RE: Basic HTTP Auth Fails - pongraczi - 06-25-2009, 07:01 AM
RE: Basic HTTP Auth Fails - joximu - 06-25-2009, 08:17 AM
RE: Basic HTTP Auth Fails - pongraczi - 06-25-2009, 08:29 PM
RE: Basic HTTP Auth Fails - kilburn - 06-25-2009, 11:25 PM

Forum Jump:


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