webuseramin.com is live

0 views
Skip to first unread message

Staffan Olsson

unread,
Sep 4, 2007, 8:27:27 AM9/4/07
to user...@googlegroups.com
Getting a project out of the door is always a big step. Now we're half
way. A first edition of the web site can be found at
http://webuseradmin.com/, with a release of the latest code.

However the online demo is not running. The problem is that the
webserver, freehostia, apparently runs the backend (php) in so called
"CGI mode" instead of Apache handler mode. This means the
Authentication header for BASIC login is never passed to php. It
seems, frustratingly enough, that there is _no_ way to access the
request headers from php. Does anyone know? Do I need to find a
different server?

Anyway, the beta release in the distributions folder should work on
your (modern) web server.

/Staffan

solsson

unread,
Sep 4, 2007, 4:00:23 PM9/4/07
to Useradmin
Solved it with a little workaround for CGI mode:

.htaccess:
# emulate authentication when PHP runs in CGI mode
RewriteEngine On
RewriteCond %{HTTP:Authorization} !=""
RewriteRule ^(.*)$ index.php?demoauth=%{HTTP:Authorization} [QSA]

php:
base64_decode(substr($_REQUEST['demoauth'],6));

So now the demo is up and running and project is public.

/Staffan

On Sep 4, 2:27 pm, "Staffan Olsson" <sols...@gmail.com> wrote:
> Getting a project out of the door is always a big step. Now we're half

> way. A first edition of the web site can be found athttp://webuseradmin.com/, with a release of the latest code.

Reply all
Reply to author
Forward
0 new messages