SES / API urls (no .cfm) (as we move for first tim...
# lucee
d
SES / API urls (no .cfm) (as we move for first time to nginx)... used PeteF's setup... throws 404 for api requests... what do I need to tweak here to rewrite : https://api.datataxi.dev/v1/status or this https://api.datataxi.dev/v1/one/two/three v1 has application.cfc and index.cfm btw... (so running subdir) tried below but that throws
Copy code
location ~* /v[0-9] {
	include lucee-rewrite-proxy.conf;
	}
wondering if it's the taffy in subdirectory bug... @atuttle??
z
that looks like a webserver error, didn't even get as far as lucee i reckon?
a
Sorry, I’ve never setup nginx rewrites. don’t know that I’ll be much help.
z
I've read the wikipedia article and I'm now available for TV interviews on this topic!!!!
😉 1
d
@zackster what browser is that? Can you hit https://api.datataxi.dev/v1/ without errors from where you are?
@zackster You might have hit it as I was reconfiguring nginx
z
works for me
d
thanks... if you look at what taffy is using tho it's https://api.datataxi.dev/v1/index.cfm/status not https://api.datataxi.dev/v1/status I think it's the subdirectory bug that @atuttle is talking about in his docs. ( as /v1 is the root directory of taffy, but sub of domain. When I route it through ngninx, then I get 404 tomcat... just got to get path_info to pass correctly also. Good news is Lucee 6.x seems to be firing well!