I own VPS with Debian 9, and Apache2 (with PHP 7) installed, I have enabled Virtual Hosts in Apache and disabled default host. The matter is following: On my localhost server with everything same (Only VirtualHost configuration is different) GET requests work in subdirectories, but after uploading files to VPS's folder var/www/PersonalWebsite/API index.php work normally, but after adding &Example=Nothing it will give me a 404 error, It just looks like GET isnt working (In root directory of website (var/www/PersonalWebsite) get requests work.) If you should ask, no I dont have any .htaccess inside of any folder.
I have already tried to include lines like grant request all (I cant remember how it was called), but then Apache service didnt boot, so when I reverted to previous config it worked, I tried also many restarts, but nothing good. :(
Actually code inside the API file isnt requirement, because as I mentioned on localhost inside my Win10 XAMPP it did work. But Ill show you virtualhost config - www.itzarty.cf.conf contains following:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/PersonalWebsite
ServerAlias itzarty.cf
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Options Indexes FollowSymLinks
</VirtualHost>
No error messages appear in logs, only the 404 one as mentioned