首頁 >後端開發 >php教程 >wecenter使用QQ互聯登入報錯redirect uri is illegal100010

wecenter使用QQ互聯登入報錯redirect uri is illegal100010

WBOY
WBOY原創
2016-07-28 08:30:091319瀏覽

決解方案:
先將回呼位址改為:「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教程有興趣的朋友有所幫助。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn