Hello guys, I have the same result...
I received the Cannot GET http://kb.loc/ message in my browser. I run Flarum from a Vagrant box with Nginx, PHP 7.0 FPM and MySQL 5.0.
My kb.conf's content is:
erver {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
server_name kb.loc
error_log /home/vagrant/log/nginx/kb.error.log;
access_log /home/vagrant/log/nginx/kb.access.log;
root /home/vagrant/www/kb;
index index.html index.htm index.php;
location /admin { try_files $uri $uri/ /admin.php?$query_string; }
location /api { try_files $uri $uri/ /api.php?$query_string; }
location / { try_files $uri $uri/ /index.php?$query_string; }
location /flarum {
deny all;
return 404;
}
location ~* \.php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability
fastcgi_index index.php;
}
location ~* \.html$ {
expires -1;
}
location ~* \.(css|js|gif|jpe?g|png)$ {
expires 1M;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types application/atom+xml
application/javascript
application/json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/html
text/plain
text/xml;
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
# Make site accessible from http://localhost/
# server_name example.com;
}
The Flarum info is:
vagrant@vagrant:~/www/kb$ php flarum info
Flarum core 0.1.0-beta.6
PHP 7.0.13-0ubuntu0.16.04.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, mysqlnd, PDO, xml, apcu, calendar, ctype, c url, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, exif, memcached, my sqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysv sem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache, xde bug
EXT flarum-approval v0.1.0-beta.6
EXT flarum-bbcode v0.1.0-beta.5
EXT flarum-emoji v0.1.0-beta.6
EXT flarum-english v0.1.0-beta.6
EXT flarum-flags v0.1.0-beta.6
EXT flarum-likes v0.1.0-beta.6
EXT flarum-lock v0.1.0-beta.6
EXT flarum-markdown v0.1.0-beta.5
EXT flarum-mentions v0.1.0-beta.6
EXT flarum-sticky v0.1.0-beta.6
EXT flarum-subscriptions v0.1.0-beta.6
EXT flarum-suspend v0.1.0-beta.6
EXT flarum-tags v0.1.0-beta.7
Base URL: kb.loc
Installation path: /home/vagrant/www/kb
I fixed the Zend Framework Stratigility issue, so I use "zendframework/zend-stratigility": "1.2.1" in my composer.jsoin.
I tried to debug why Flarum sent me this, so I added the next two line into \Zend\Diactoros\Server.php line 171-172:
var_dump($this->getEmitter()->emit($response, $bufferLevel));
die();
It dies, OK, and showing var_dump() like this:
Cannot GET http://kb.loc/
/home/vagrant/www/kb/vendor/zendframework/zend-diactoros/src/Server.php:171:null
So... What could be the reason of receiving this "Cannot GET" message?