New Install Of Lucee On Oracle Linux 7 Issues

200 views
Skip to first unread message

Grant Griffith

unread,
Mar 19, 2015, 10:28:32 PM3/19/15
to lu...@googlegroups.com
I am setting up a new server and running into issues with getting things working 100%.  Looking for some configuration help with the 64-bit install from the website.

I installed the software using the install from the lucee.org site and the site will load if I go to the site using http://domain.com/index.cfm?id=#####, but I can not get to the site by going to http://domain.com/index.cfm/home/default/id/##### even though the following rules are in the web.xml file.

    <!-- Mappings for the Railo servlet -->
    <servlet-mapping>
        <servlet-name>CFMLServlet</servlet-name>
        <url-pattern>*.cfm</url-pattern>
        <url-pattern>*.cfml</url-pattern>
        <url-pattern>*.cfc</url-pattern>
        <!-- Basic SES Mappings -->
        <url-pattern>/index.cfc/*</url-pattern>
        <url-pattern>/index.cfm/*</url-pattern>
        <url-pattern>/index.cfml/*</url-pattern>
    </servlet-mapping>

I get this in the Apache Error_Log.

[Thu Mar 19 22:22:37.763260 2015] [authz_core:debug] [pid 16058] mod_authz_core.c(835): [client 216.8.220.73:54541] AH01628: authorization result: granted (no directives), referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.763431 2015] [proxy:debug] [pid 16058] mod_proxy.c(1117): [client 216.8.220.73:54541] AH01143: Running scheme ajp handler (attempt 0), referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.763629 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(718): [client 216.8.220.73:54541] AH00895: serving URL ajp://10.1.0.50/home/index.cfm/obituaries/default/fh_id/10273, referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.763674 2015] [proxy:debug] [pid 16058] proxy_util.c(2200): AH00942: AJP: has acquired connection for (*)
[Thu Mar 19 22:22:37.763687 2015] [proxy:debug] [pid 16058] proxy_util.c(2253): [client 216.8.220.73:54541] AH00944: connecting ajp://10.1.0.50/home/index.cfm/obituaries/default/fh_id/10273 to 10.1.0.50:8009, referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.763823 2015] [proxy:debug] [pid 16058] proxy_util.c(2419): [client 216.8.220.73:54541] AH00947: connected /home/index.cfm/obituaries/default/fh_id/10273 to 10.1.0.50:8009, referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.764082 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(272): [client 216.8.220.73:54541] AH00872: APR_BUCKET_IS_EOS, referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.764116 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(278): [client 216.8.220.73:54541] AH00873: data to read (max 8186 at 4), referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.764127 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(292): [client 216.8.220.73:54541] AH00875: got 0 bytes of data, referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.767642 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(630): [client 216.8.220.73:54541] AH00892: got response from (null) (*), referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.767679 2015] [proxy:debug] [pid 16058] proxy_util.c(2215): AH00943: AJP: has released connection for (*)

Http.conf has this...
<IfModule mod_proxy.c>
        <Proxy *>
        Allow from 10.1.0.50
        </Proxy>
        ProxyPreserveHost On
        ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://10.1.0.50:8009/$1$2
        ProxyPassMatch ^/(.+\.cfchart)(/.*)?$ ajp://10.1.0.50:8009/$1$2
        ProxyPassMatch ^/(.+\.cfml)(/.*)?$ ajp://10.1.0.50:8009/$1$2
        ProxyPassMatch /(.*)\.(jpg|gif|png|jpeg|swf|mp4|wmv)$ !
        # optional mappings
        #ProxyPassMatch ^/flex2gateway/(.*)$ http://127.0.0.1:8888/flex2gateway/$1
        #ProxyPassMatch ^/messagebroker/(.*)$ http://127.0.0.1:8888/messagebroker/$1
        #ProxyPassMatch ^/flashservices/gateway(.*)$ http://127.0.0.1:8888/flashservices/gateway$1
        #ProxyPassMatch ^/openamf/gateway/(.*)$ http://127.0.0.1:8888/openamf/gateway/$1
        #ProxyPassMatch ^/rest/(.*)$ http://127.0.0.1:8888/rest/$1
        ProxyPassReverse / ajp://10.1.0.50:8009/
</IfModule>


PerlRequire /opt/lucee/tomcat_connectors/mod_cfml/mod_cfml.pm
PerlHeaderParserHandler mod_cfml
PerlSetVar LogHeaders false
PerlSetVar LogHandlers false
PerlSetVar CFMLHandlers ".cfm .cfc .cfml"

Risto

unread,
Mar 20, 2015, 9:24:17 AM3/20/15
to lu...@googlegroups.com
The install is probably fine, but if your web site needs rewrite rules make sure mod_rewrite is enabled and you have rewrite rules setup for your application or framework needs.
 https://httpd.apache.org/docs/current/mod/mod_rewrite.html

Grant Griffith

unread,
Mar 20, 2015, 9:45:01 AM3/20/15
to lu...@googlegroups.com
I have the rules in the web.xml file on the Tomcat side as all cfm traffic should be redirected to there and handled on that side according to ProxyPassMatch in Apache.  Maybe I am missing something in Apache that is not proxing things to Tomcat?  If someone could help with that it might solve my issues.

Thanks
Grant

Robert Munn

unread,
Mar 20, 2015, 2:45:52 PM3/20/15
to lu...@googlegroups.com
In this part of the log:

[Thu Mar 19 22:22:37.764116 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(278): [client 216.8.220.73:54541] AH00873: data to read (max 8186 at 4), referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.764127 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(292): [client 216.8.220.73:54541] AH00875: got 0 bytes of data, referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.767642 2015] [proxy_ajp:debug] [pid 16058] mod_proxy_ajp.c(630): [client 216.8.220.73:54541] AH00892: got response from (null) (*), referer: http://domain.com/home/index.cfm?fh_id=10273
[Thu Mar 19 22:22:37.767679 2015] [proxy:debug] [pid 16058] proxy_util.c(2215): AH00943: AJP: has released connection for (*)

it looks like Tomcat is not returning the expected data. 

this: data to read (max 8186 at 4)

then this: got 0 bytes of data

So it looks like maybe Tomcat is not handling the request as a Lucee request. Have you checked the Tomcat logs for the matching request? You could add a logging statement to your Application.cfc to check whether the request is getting through to Lucee.



On Mar 20, 2015, at 6:45 AM, Grant Griffith <ggri...@gmail.com> wrote:


Thanks

Reply all
Reply to author
Forward
0 new messages