--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/37907aa0-0d95-4f88-9fa9-7c8ff72875f0%40googlegroups.com.
Igal Sapir
Lucee Core Developer
Lucee.org
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG1WijVuk-bq%2BH8FoqnSz33Uw5ypOMWrGsfwvzrfe7FwXLGnqA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/192a1d9d-3bbc-440f-9ce6-b53a34a72693%40googlegroups.com.
CommandBox is a good solution, IMHO, and you can have different ports and configurations for each app. I prefer it over using a single Lucee installation.
This rewrite should handle what you’re looking to do in Apache (provided you have a custom hosts entry for “local.abc.com” set to 127.0.0.1).
RewriteRule ^/([category])/([^/]+)$ http://local.abc.com:8888/category.cfm?cat=$2 [R]
You can also proxy all traffic except images or use a default route like “index.cfm” - here’s an example using a Coldbox index.cfm rule with the CommandBox server running on a custom port:
<Location />
RewriteEngine on
# Bypass images, css, javascript and docs, add your own extensions if needed.
RewriteCond %{REQUEST_URI} \.(ttf|otf|woff2|woff|map|bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|ico)$
RewriteRule ^(.*)$ - [NC,L,NS]
#The ColdBox index.cfm/{path_info}:
RewriteRule ^$ index.cfm [QSA,NS]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:57616/index.cfm/%{REQUEST_URI} [P]
ProxyPass http://127.0.0.1:57616/
ProxyPassReverse http://127.0.0.1:57616/
SetEnv force-proxy-request-1.0 1
</Location>
HTH, Jon
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG1WijWuB7icH_d-WyFgQzOziJwD3FUpE8k9tU0Y-vv1fXwfqA%40mail.gmail.com.
Oops. That first example should be a [P], not an [R]:
RewriteRule ^/([category])/([^/]+)$ http://local.abc.com:8888/category.cfm?cat=$2 [P]