How to remove index.cfm on FW1 project

已查看 154 次
跳至第一个未读帖子

Minh Y Nguyen

未读,
2015年10月15日 23:05:452015/10/15
收件人 Lucee
I have a project used FW1 and the client want remove index.cfm to make more user friendly URL. How can i do that?
My server used : nginx> tomcat > lucee

Thanks 

AJ Mercer

未读,
2015年10月15日 23:33:312015/10/15
收件人 lu...@googlegroups.com

--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
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/720f81aa-954a-4e5b-9a92-2480025ceaaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Michael Heel

未读,
2015年10月16日 02:07:372015/10/16
收件人 lu...@googlegroups.com

Just edit the /opt/tomcat/conf/web.xml of tomcat and scroll allll the way down and at the welcome-file-list:

 

    <welcome-file-list>

        <welcome-file>index.cfm</welcome-file>

        <welcome-file>index.html</welcome-file>

        <welcome-file>index.htm</welcome-file>

        <welcome-file>index.jsp</welcome-file>

    </welcome-file-list>

--

Minh Y Nguyen

未读,
2015年10月26日 06:15:392015/10/26
收件人 Lucee
I just tried rewrite on nginx, and it works fine, bellow is my config on ngixn.conf
    server {
        listen          80;
        server_name     localhost;        
        location / {
            rewrite  ^(/lucee|/railo-context)(.*)$  $1$2  break;
            rewrite  ^([^\.]+)$  /index.cfm?furl=$1  break;
            proxy_pass              http://localhost:8888;
            proxy_set_header        X-Real-IP $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header        Host $http_host;
        }
                                                                                                              
    }


Vào 10:05:45 UTC+7 Thứ Sáu, ngày 16 tháng 10 năm 2015, Minh Y Nguyen đã viết:
回复全部
回复作者
转发
0 个新帖子