PHP code error - can't view MD files

Edit: i remixed php-poc and added all the files, it worked. I think I edited something I wasn’t supposed to edit in php-poc

Is this what the log says or is this redacted?

It’s redacted (only the IP/Port rest werent)
[Thu Sep 17 21:12:41 2020] (IP/Port) Invalid request (Malformed HTTP request)

This also popped up once but not later after refreshing

Maybe the .md mime type is not being accepted?

Create a .htaccess file with this:

RewriteEngine On

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^\ ]+)\.md
RewriteRule ^/?(.*)\.md$ /$1 [L,R=301]

RewriteCond %{REQUEST_FILENAME}\.md-f
RewriteRule ^/?(.*)$ /$ [L]

Then visit /hi

Stuff i got from the console:
app@minimalwikia:~ 21:30
cd public app@minimalwikia:~/public 21:30 cat
New Page
app@minimalwikia:~/public 21:30
cd .. app@minimalwikia:~ 21:31 cat /public/
cat: /public/ No such file or directory
file_show_contents($_GET[‘pageName’] . “.md”) didn’t give a output

The home directory ~ is the same as /app so try

cat /app/public/

The PHP will need to prepend the file path, which is not necessarily the same as the url path depending on how you have setup the server.

I just think its a bit odd how no error was raised in the logs.