How to make ngix virtual directories accessible in php?
Let's say I have a web server (nginx) server.com where I have only one php file index.php (there is no directory structure). I want to be able to access anything after server.com. It will be an url structure. For example server.com/google.com, server.com/yahoo.com.au etc…
Q1: How can I access whatever is afer server.com in my index.php?
Q2: Can I even get protocol from such url? For example server.com/