{"action":"closed","issue":{"url":"https://api.github.com/repos/Eole-dev/authphpbb3/issues/8","repository_url":"https://api.github.com/repos/Eole-dev/authphpbb3","labels_url":"https://api.github.com/repos/Eole-dev/authphpbb3/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Eole-dev/authphpbb3/issues/8/comments","events_url":"https://api.github.com/repos/Eole-dev/authphpbb3/issues/8/events","html_url":"https://github.com/Eole-dev/authphpbb3/issues/8","id":265088933,"number":8,"title":"Tried to redirect to potentially insecure url. with phpbb3.2.1","user":{"login":"sioc-de-narf","id":14063185,"avatar_url":"https://avatars1.githubusercontent.com/u/14063185?v=4","gravatar_id":"","url":"https://api.github.com/users/sioc-de-narf","html_url":"https://github.com/sioc-de-narf","followers_url":"https://api.github.com/users/sioc-de-narf/followers","following_url":"https://api.github.com/users/sioc-de-narf/following{/other_user}","gists_url":"https://api.github.com/users/sioc-de-narf/gists{/gist_id}","starred_url":"https://api.github.com/users/sioc-de-narf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sioc-de-narf/subscriptions","organizations_url":"https://api.github.com/users/sioc-de-narf/orgs","repos_url":"https://api.github.com/users/sioc-de-narf/repos","events_url":"https://api.github.com/users/sioc-de-narf/events{/privacy}","received_events_url":"https://api.github.com/users/sioc-de-narf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-12T21:16:23Z","updated_at":"2018-03-22T14:33:05Z","closed_at":"2018-03-22T14:33:05Z","author_association":"NONE","body":"Hello, looks like there is an issue with phpBB.3.2.1 : \r\n\r\nMy dokuwiki is in subfolder and so is phpbb.\r\n\r\nDokuwiki qith bootstrap3 template. \r\n\r\nVersions : \r\nphpBB : 3.2.1\r\nDokuwiki : Release 2017-02-19e \"Frusterick Manners\"\r\nnginx : 1.10.3\r\nPHP: 7.0.19-1\r\nMy nginx config is at the bottom.\r\n\r\n\r\nmy site is in https,port 443 and yes i had the port trouble too ... But now that's fixed...\r\n\r\nMy current trouble are : \r\n\r\n1. On login : \r\n> General Error\r\n> Tried to redirect to potentially insecure url.\r\n\r\nIf I do a F5 and validate, the auth is working and i am still on the forum.\r\n\r\n2. On logout : \r\nIt works But I stay on the forum page.\r\n\r\nThanks for the help\r\n\r\n\r\n----------------------------------\r\nnginx config for that domain : \r\n\r\nserver {\r\n\tlisten 80;\r\n\tlisten [::]:80;\r\n\tport_in_redirect off;\r\n\tserver_name mydomain.xyz www.mydomain.xyz;\r\n\treturn 301 https://$server_name$request_uri;\r\n}\r\nserver {\r\n    # SSL configuration\r\n    listen 443 ssl http2;\r\n    listen [::]:443 ssl http2;\r\n    server_name mydomain.xyz www.mydomain.xyz;\r\n    include snippets/ssl-mydomain.xyz.conf;\r\n    include snippets/ssl-params.conf;\r\n\r\n     client_max_body_size 8M;\r\n     root /var/www/html;\r\n     access_log /var/log/nginx/mydomain.access.log;\r\n     error_log /var/log/nginx/mydomain.error.log;\r\n\r\n     index index.html index.php index.htm doku.php;\r\n\r\n    location ~* \\.(eot|css|otf|ttf|woff)$ {\r\n        add_header Access-Control-Allow-Origin *;\r\n        expires 7d;\r\n        add_header Pragma public;\r\n        add_header Cache-Control \"public\";\r\n    }\r\n\r\n    gzip on;\r\n    gzip_vary on;\r\n    gzip_comp_level 4;\r\n    gzip_proxied    no-cache no-store private expired auth;\r\n    gzip_min_length 1024;\r\n    gzip_types      text/plain application/xml text/css application/javascript text/html image/svg+xml;\r\n\r\n    location ~ /\\.ht {\r\n                deny all;\r\n        \t}\t\r\n\r\n        location ~ /.well-known {\r\n                allow all;\r\n        \t}\r\n\r\n    location / {\r\n        try_files $uri $uri/ /index.php?$uri&$args;\r\n    }\r\n\t\r\n       location ~ /(\\.htaccess|\\.git|config|content|content-sample|vendor|CHANGELOG\\.md|composer\\.(json|lock)) {\r\n                return 404;\r\n        }\r\n\r\n        location ~ /wikimywiki/(data|conf|bin|inc)/ {\r\n        deny all;\r\n        }\r\n\t\r\n\tlocation ~ /wiki/(data|conf|bin|inc)/ {\r\n        deny all;\r\n        }\r\n\r\n        location ~ \\.(gif|png|ico|jpg)$ {\r\n        expires 30d;\r\n        }\r\n\r\n        location = /robots.txt  { access_log off; log_not_found off; }\r\n        location = /favicon.ico { access_log off; log_not_found off; }\r\n        location ~ /\\.          { access_log off; log_not_found off; deny all; }\r\n        location ~ ~$           { access_log off; log_not_found off; deny all; }\r\n\r\nlocation /wikimywiki {\r\n\ttry_files $uri $uri/ @dwi;\r\n\t}\t\r\n\r\nlocation @dwi {\r\nrewrite ^/wikimywiki/_media/(.*) /wikimywiki/lib/exe/fetch.php?media=$1 last;\r\nrewrite ^/wikimywiki/_detail/(.*) /wikimywiki/lib/exe/detail.php?media=$1 last;\r\nrewrite ^/wikimywiki/_export/([^/]+)/(.*) /wikimywiki/doku.php?do=export_$1&id=$2 last;\r\nrewrite ^/wikimywiki/(.*) /wikimywiki/doku.php?id=$1&$args last;\r\n}\r\n\r\nlocation /forums {\r\n            # phpBB uses index.htm\r\n            index index.php index.html index.htm;\r\n            try_files $uri $uri/ @rewriteapp;\r\n\r\n    location ~ \\.php(/|$) {\r\n            include fastcgi_params;\r\n            fastcgi_split_path_info ^(.+\\.php)(/.*)$;\r\n            fastcgi_param PATH_INFO $fastcgi_path_info;\r\n            fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;\r\n            fastcgi_param DOCUMENT_ROOT $realpath_root;\r\n            try_files $uri $uri/ /app.php$is_args$args;\r\n\t    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;\r\n            }\r\n}\r\n\r\nlocation @rewriteapp {\r\n            rewrite ^(.*)$ /app.php/$1 last;\r\n}\r\n\r\nlocation /forums/install/ {\r\n\t\ttry_files $uri $uri/ @rewrite_installapp;\r\n\r\n\tlocation ~ \\.php(/|$) {\r\n\t\tinclude fastcgi_params;\r\n\t\tfastcgi_split_path_info ^(.+\\.php)(/.*)$;\r\n\t\tfastcgi_param PATH_INFO $fastcgi_path_info;\r\n            \tfastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;\r\n            \tfastcgi_param DOCUMENT_ROOT $realpath_root;\r\n            \ttry_files $uri $uri/ /forums/install/app.php$is_args$args;\r\n            \tfastcgi_pass unix:/var/run/php/php7.0-fpm.sock;\r\n\t\t\t}\r\n}\r\n\r\nlocation @rewrite_installapp {\r\n            rewrite ^(.*)$ /forums/install/app.php/$1 last;\r\n                }\r\n\r\nlocation /fate-srd {\r\n\ttry_files $uri $uri/ /index.php?$args;\r\n}\r\n\r\nlocation ~ \\.php(/|$) {\r\n            include fastcgi_params;\r\n            fastcgi_split_path_info ^(.+\\.php)(/.*)$;\r\n            fastcgi_param PATH_INFO $fastcgi_path_info;\r\n            fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;\r\n            fastcgi_param DOCUMENT_ROOT $realpath_root;\r\n            try_files $uri $uri/ index.php$is_args$args;\r\n            fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;\r\n            }\r\n}\r\n\r\n"}}
{"actor":{"display_login":"sioc-de-narf"}}