Rewrites for the PHP,Standalone OpenID Server
Niels Berkers
niels at quotar.com
Thu Apr 26 09:42:12 PDT 2007
Hey Antonio,
> Hi Niels,
>
> First of all, thanks a lot for your response and your attention.I'd like
> to ask you some things I don't still understand completely.
>
> With the solution that you propose, do not I need .htacces? are
> wild-cards, .htaccess and virtual hosts different solutions for the same
> problem?
nope a virtualhost is something you configure in apache. it lets the
http server listen to a domain name. a .htaccess is a file you place in
your documentroot which can hold some apache configuration, but is much
more limited in it's options than a virtualhost.
see http://apache.org
>
> If virtual hosts are my solution, should I put both entries you post in
> your response or just first of them?
both, the first is the catch all for all names under .openid.quotar.com
The second is where the openid server is installed. Note: you have to
limit the accountnames in you server to \w+ ( a-z , 0-9, _ ) So the
url's will turn out valid.
>
> In line:
>
> DocumentRoot /var/www/quotar.com/openid/names
>
> what should I put? the path to my server. I mean, if I have the server's
> index file at "http://my_server/dir1/index.php", should I rewrite that
> line as:
>
> DocumentRoot /dir1
>
check phpinfo(); or $_SERVER["DOCUMENT_ROOT"] in you current config.
> And the last question: In line:
>
> <VirtualHost 83.160.179.6:80>
>
> I should change it into: <VirtualHost <my_server_ip>:80>. The port
> number must be 80 or it can be something else?
>
the http protocol can run on any port. But the standard is 80. So if you
don't want ppl typing a portnr. (http://openid.site.com:7848/ ) in the
URL, you should use 80
> Thanks a lot for your attention and your support, and please, forgive my
> english.
>
np :)
best regards,
Niels Berkers
More information about the Dev
mailing list