I have a VPS running with nginx and I’m having trouble figuring out how to configure the server so I can have friendly urls:
instead of index.php … have this: /
or instead of contact.php … have this: /contact/ etc etc
Also being able to do this with sub directories too.
I read through this:
but still am unsure.
- Where does the new configuration go? and what is the name of it? It seems like it would go here: /home/YOURUSER/nginx/YOURDOMAIN.COM/*
What is the file called? nginx.conf or can it be called anything?
Does the server automatically load anything with a .conf?
If someone has this figured out already, it would be greatly appreciated.