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)
Edit:
[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 ^/?(.*)$ /$1.md [L]
Then visit /hi
Stuff i got from the console:
app@minimalwikia:~ 21:30
cd public
app@minimalwikia:~/public 21:30
cat hi.md
New Page
app@minimalwikia:~/public 21:30
cd ..
app@minimalwikia:~ 21:31
cat /public/hi.md
cat: /public/hi.md: 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/hi.md
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.