I've got several static sites (mostly generated by Sphinx), that I'm trying to host on my VPS. I've installed and configured nginx according to the guides, and I can successfully display my sites, but the issue is the URLs are absolute, and it looks ugly.
For instance, a typical site folder may look like:
/public_html/index.html /public_html/api.html /public_html/quickstart.html
And HTTP requests to / change the URL to "http://sitename/index.html". I basically want to drop all static prefixes from the URL requirements, and force nginx to both route incoming requests to /, /api, /quickstart to the correct places as well as force nginx to display proper pretty URLs when users visit pages.
I've tried googling, but all I find is rewrite rules which I feel are too complicated for what I'm trying to do.
Any help would be greatly appreciated.