Wrapping openid identities
Marco Bonetti
marco at kaywa.com
Tue Apr 24 05:46:27 PDT 2007
Antonio,
I think I see what you mean, now.
Assuming you are using the Apache webserver and virtual hosts, you
probably want to look into mod_rewrite and set up a wildcard redirector
in the Apache configuration file of your virtual server.
Something like this should do (please note: completely untested!)
RewriteEngine on
# match usernames containing lowercase chars and dots.
RewriteCond %{HTTP_HOST} ^([a-z\.]+)\.my_server\.com$
RewriteRule (.*) /%{DOCUMENT_ROOT}/path1/path2/?user=%1$1 [L]
You'll also have to set up your name server (DNS) to resolve wildcard
domains, e.g.
*.my_server.com IN A ip.address.of.vhost
More on this subject here:
http://www.easymodrewrite.com/example-subdomains
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
Hope this helps,
best,
-m
> I have my own server, we say
> "http://my_server.com", and the identities it provides are like
> "http://my_server.com/path1/path2/?user=my_user". I'd like to transform
> this into "my_user.my_server.com".
>
More information about the Dev
mailing list