Maison >développement back-end >tutoriel php >wecenter使用QQ互联登录报错redirect uri is illegal100010

wecenter使用QQ互联登录报错redirect uri is illegal100010

WBOY
WBOYoriginal
2016-07-28 08:30:091319parcourir

决解方案:
首先将回调地址改为:“http://你的域名/account/openid/qq/bind/”
然后需要开启伪静态设置,开启伪静态后页面出现错误 需要在nginx配置伪静态。
我用的是nginx 服务器 ,下面贴出伪静态配置文件

<code>server {
        listen       <span>80</span>;
        server_name 域名 ;
        index index<span>.</span>html index<span>.</span>htm index<span>.</span>php;
        root  项目所在的目录;
        location <span>/</span> {
        try_files <span>$uri</span><span>$uri</span><span>/</span> /index<span>.</span>php<span>$is_args</span><span>$args</span>;
        }
         location ~ <span>\</span><span>.</span>php$ {
        include fastcgi<span>.</span>conf;
        <span>#fastcgi_param</span> SCRIPT_FILENAME <span>$document_root</span><span>/</span><span>$fastcgi_script_name</span>;
        fastcgi_pass   <span>127.0</span><span>.0</span><span>.1</span>:<span>9000</span>;
        fastcgi_index  index<span>.</span>php;
        <span>#fastcgi_pass</span> unix:/<span>var</span>/run/php5<span>-fpm</span><span>.</span>sock;
        <span>#try_files</span><span>$uri</span><span>=</span><span>404</span>;
    }
        location ~ <span>.</span><span>*\</span><span>.</span>(gif<span>|</span>jpg<span>|</span>jpeg<span>|</span>png<span>|</span>bmp<span>|</span>swf)$
        {
                expires <span>30</span>d;
        }
        location ~ <span>.</span><span>*\</span><span>.</span>(js<span>|</span>css)<span>?</span>$
        {
                expires <span>1</span>h;
        }
        include /alidata/server/nginx/conf/rewrite/default<span>.</span>conf;
        access_log  /alidata/<span>log</span>/nginx/access/default<span>.</span><span>log</span>;
}</code>
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了 wecenter使用QQ互联登录报错redirect uri is illegal100010,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn