From: <php...@li...> - 2012-11-29 14:24:22
|
Has anyone played with getting the CakePHP framework to work in a pjb servlet? It uses .htaccess files and mod_rewrite (Apache) but this can be disabled. Maybe you could use UrlRewriteFilter? (http://tuckey.org/urlrewrite/) Any thoughts/comments appreciated. Stuart Chalk, Ph.D. Associate Professor of Chemistry Department of Chemistry, Building 50, Room 3514, University of North Florida 1 UNF Drive, Jacksonville, FL 32224 USA P: 904-620-1938 F: 904-620-3535 E: sc...@un... W: http://www.unf.edu/coas/chemistry/ |
From: <php...@li...> - 2012-11-29 16:29:23
|
We use cakephp and the php-java bridge. You have to reproduce cake's .htaccess rewrite rules in tomcat. I didn't set that up, but that's how it works. On 11/29/2012 8:50 AM, php...@li... wrote: > Has anyone played with getting the CakePHP framework to work in a pjb servlet? > It uses .htaccess files and mod_rewrite (Apache) but this can be disabled. > > Maybe you could use UrlRewriteFilter? (http://tuckey.org/urlrewrite/) > > Any thoughts/comments appreciated. > > Stuart Chalk, Ph.D. > Associate Professor of Chemistry > Department of Chemistry, Building 50, Room 3514, > University of North Florida > 1 UNF Drive, Jacksonville, FL 32224 USA > P: 904-620-1938 > F: 904-620-3535 > E: sc...@un... > W: http://www.unf.edu/coas/chemistry/ > > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > VERIFY Test and improve your parallel project with help from experts > and peers. http://goparallel.sourceforge.net > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- David Harris Bridge Interactive Group email: dh...@bi... cell: 404-831-7015 office: 888-901-0150 Bridge Software Products: www.retsiq.com <http://www.retsiq.com> www.realvaluator.com <http://www.realvaluator.com> |
From: <php...@li...> - 2012-11-29 17:48:48
|
Could you contact, or send me the contact info for the person(s) that did set that up? Stuart On Nov 29, 2012, at 11:06 AM, php...@li... wrote: > We use cakephp and the php-java bridge. You have to reproduce cake's > .htaccess rewrite rules in tomcat. I didn't set that up, but that's how > it works. > > On 11/29/2012 8:50 AM, php...@li... wrote: >> Has anyone played with getting the CakePHP framework to work in a pjb servlet? >> It uses .htaccess files and mod_rewrite (Apache) but this can be disabled. >> >> Maybe you could use UrlRewriteFilter? (http://tuckey.org/urlrewrite/) >> >> Any thoughts/comments appreciated. >> >> Stuart Chalk, Ph.D. >> Associate Professor of Chemistry >> Department of Chemistry, Building 50, Room 3514, >> University of North Florida >> 1 UNF Drive, Jacksonville, FL 32224 USA >> P: 904-620-1938 >> F: 904-620-3535 >> E: sc...@un... >> W: http://www.unf.edu/coas/chemistry/ >> >> >> ------------------------------------------------------------------------------ >> Keep yourself connected to Go Parallel: >> VERIFY Test and improve your parallel project with help from experts >> and peers. http://goparallel.sourceforge.net >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > -- > > > David Harris > Bridge Interactive Group > email: dh...@bi... > cell: 404-831-7015 > office: 888-901-0150 > > Bridge Software Products: > www.retsiq.com <http://www.retsiq.com> > www.realvaluator.com <http://www.realvaluator.com> > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > VERIFY Test and improve your parallel project with help from experts > and peers. http://goparallel.sourceforge.net > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2012-11-29 18:26:40
|
Sorry, but I am not able to do that because they no longer work here. Take a look at the web.xml file and you can see that we do use UrlRewriteFilter (some bits removed for security purposes): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <filter> <filter-name>PhpCGIFilter</filter-name> <filter-class>php.java.servlet.PhpCGIFilter</filter-class> </filter> <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> </filter> <filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>PhpCGIFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <servlet-name>PhpCGIServlet</servlet-name> <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>PhpCGIServlet</servlet-name> <url-pattern>*.php</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.php</welcome-file> </welcome-file-list> </web-app> On 11/29/2012 12:48 PM, php...@li... wrote: > Could you contact, or send me the contact info for the person(s) that did set that up? > > Stuart > > On Nov 29, 2012, at 11:06 AM, php...@li... wrote: > >> We use cakephp and the php-java bridge. You have to reproduce cake's >> .htaccess rewrite rules in tomcat. I didn't set that up, but that's how >> it works. >> >> On 11/29/2012 8:50 AM, php...@li... wrote: >>> Has anyone played with getting the CakePHP framework to work in a pjb servlet? >>> It uses .htaccess files and mod_rewrite (Apache) but this can be disabled. >>> >>> Maybe you could use UrlRewriteFilter? (http://tuckey.org/urlrewrite/) >>> >>> Any thoughts/comments appreciated. >>> >>> Stuart Chalk, Ph.D. >>> Associate Professor of Chemistry >>> Department of Chemistry, Building 50, Room 3514, >>> University of North Florida >>> 1 UNF Drive, Jacksonville, FL 32224 USA >>> P: 904-620-1938 >>> F: 904-620-3535 >>> E: sc...@un... >>> W: http://www.unf.edu/coas/chemistry/ >>> >>> >>> ------------------------------------------------------------------------------ >>> Keep yourself connected to Go Parallel: >>> VERIFY Test and improve your parallel project with help from experts >>> and peers. http://goparallel.sourceforge.net >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> -- >> >> >> David Harris >> Bridge Interactive Group >> email: dh...@bi... >> cell: 404-831-7015 >> office: 888-901-0150 >> >> Bridge Software Products: >> www.retsiq.com <http://www.retsiq.com> >> www.realvaluator.com <http://www.realvaluator.com> >> >> ------------------------------------------------------------------------------ >> Keep yourself connected to Go Parallel: >> VERIFY Test and improve your parallel project with help from experts >> and peers. http://goparallel.sourceforge.net >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > VERIFY Test and improve your parallel project with help from experts > and peers. http://goparallel.sourceforge.net > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- David Harris Bridge Interactive Group email: dh...@bi... cell: 404-831-7015 office: 888-901-0150 Bridge Software Products: www.retsiq.com <http://www.retsiq.com> www.realvaluator.com <http://www.realvaluator.com> |
From: <php...@li...> - 2012-11-29 19:00:24
|
I hate to keep asking but I have played around with UrlRewriteFilter and it looks like it is probably using a rules file called "urlrewrite.xml" that would be in the same folder as web.xml. If that is there could I get a copy? If you have security concerns with it then you could send it to my personal email address and I agree not to re-distribute. If not, I understand. Stuart On Nov 29, 2012, at 1:21 PM, <php...@li...> wrote: > Sorry, but I am not able to do that because they no longer work here. > > Take a look at the web.xml file and you can see that we do use > UrlRewriteFilter (some bits removed for security purposes): > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application > 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > <filter> > <filter-name>PhpCGIFilter</filter-name> > <filter-class>php.java.servlet.PhpCGIFilter</filter-class> > </filter> > <filter> > <filter-name>UrlRewriteFilter</filter-name> > <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> > </filter> > > <filter-mapping> > <filter-name>UrlRewriteFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>PhpCGIFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > <servlet> > <servlet-name>PhpCGIServlet</servlet-name> > <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> > <load-on-startup>0</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>PhpCGIServlet</servlet-name> > <url-pattern>*.php</url-pattern> > </servlet-mapping> > > <welcome-file-list> > <welcome-file>index.php</welcome-file> > </welcome-file-list> > </web-app> > > > > On 11/29/2012 12:48 PM, php...@li... wrote: >> Could you contact, or send me the contact info for the person(s) that did set that up? >> >> Stuart >> >> On Nov 29, 2012, at 11:06 AM, php...@li... wrote: >> >>> We use cakephp and the php-java bridge. You have to reproduce cake's >>> .htaccess rewrite rules in tomcat. I didn't set that up, but that's how >>> it works. >>> >>> On 11/29/2012 8:50 AM, php...@li... wrote: >>>> Has anyone played with getting the CakePHP framework to work in a pjb servlet? >>>> It uses .htaccess files and mod_rewrite (Apache) but this can be disabled. >>>> >>>> Maybe you could use UrlRewriteFilter? (http://tuckey.org/urlrewrite/) >>>> >>>> Any thoughts/comments appreciated. >>>> >>>> Stuart Chalk, Ph.D. >>>> Associate Professor of Chemistry >>>> Department of Chemistry, Building 50, Room 3514, >>>> University of North Florida >>>> 1 UNF Drive, Jacksonville, FL 32224 USA >>>> P: 904-620-1938 >>>> F: 904-620-3535 >>>> E: sc...@un... >>>> W: http://www.unf.edu/coas/chemistry/ >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Keep yourself connected to Go Parallel: >>>> VERIFY Test and improve your parallel project with help from experts >>>> and peers. http://goparallel.sourceforge.net >>>> _______________________________________________ >>>> php-java-bridge-users mailing list >>>> php...@li... >>>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >>> -- >>> >>> >>> David Harris >>> Bridge Interactive Group >>> email: dh...@bi... >>> cell: 404-831-7015 >>> office: 888-901-0150 >>> >>> Bridge Software Products: >>> www.retsiq.com <http://www.retsiq.com> >>> www.realvaluator.com <http://www.realvaluator.com> >>> >>> ------------------------------------------------------------------------------ >>> Keep yourself connected to Go Parallel: >>> VERIFY Test and improve your parallel project with help from experts >>> and peers. http://goparallel.sourceforge.net >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> ------------------------------------------------------------------------------ >> Keep yourself connected to Go Parallel: >> VERIFY Test and improve your parallel project with help from experts >> and peers. http://goparallel.sourceforge.net >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > -- > > > David Harris > Bridge Interactive Group > email: dh...@bi... > cell: 404-831-7015 > office: 888-901-0150 > > Bridge Software Products: > www.retsiq.com <http://www.retsiq.com> > www.realvaluator.com <http://www.realvaluator.com> > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > VERIFY Test and improve your parallel project with help from experts > and peers. http://goparallel.sourceforge.net > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2012-11-29 19:16:54
|
No problem. Maybe this will help some people out: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN" "http://tuckey.org/res/dtds/urlrewrite3.2.dtd"> <urlrewrite> <!-- Rule applies to the live site only. Redirect http[s]://yourhostname.com to http[s]://www.yourhostname.com --> <rule> <name>Canonical Hostname (Live HTTP)</name> <condition type="scheme" operator="equal">http</condition> <condition name="host" operator="equal">^yourhostname.com</condition> <from>^/(.*)</from> <to type="redirect" last="true">http://www.yourhostname.com/$1</to> </rule> <rule> <name>Canonical Hostname (Live HTTPS)</name> <condition type="scheme" operator="equal">https</condition> <condition name="host" operator="equal">^yourhostname.com</condition> <from>^/(.*)</from> <to type="redirect" last="true">https://www.yourhostname.com/$1</to> </rule> <rule> <from>^/(.*)$</from> <to>/webroot/$1</to> </rule> <!-- Requests that come in for /webroot/* resources get an extra /webroot added to them. This rule removes it. Can't think of a better solution at the moment. --> <rule> <from>^/webroot/webroot/(.*)$</from> <to>/webroot/$1</to> </rule> <rule> <from>^/webroot/images/(.*)$</from> <to last="true">/webroot/images/$1</to> </rule> <rule> <from>^/webroot/img/(.*)$</from> <to last="true">/webroot/img/$1</to> </rule> <rule> <from>^/webroot/css/(.*)$</from> <to last="true">/webroot/css/$1</to> </rule> <rule> <from>^/webroot/scripts/(.*)$</from> <to last="true">/webroot/scripts/$1</to> </rule> <rule> <from>^/webroot/js/(.*)$</from> <to last="true">/webroot/js/$1</to> </rule> <rule> <from>^/webroot/favicon.ico$</from> <to last="true">/webroot/favicon.ico</to> </rule> <rule> <from>^/webroot/index.php$</from> <to last="true">/webroot/index.php</to> </rule> <rule> <from>^/webroot/(.*)$</from> <to last="true">/index.php?url=$1</to> </rule> </urlrewrite> On 11/29/2012 2:00 PM, php...@li... wrote: > I hate to keep asking but I have played around with UrlRewriteFilter and it looks like it is probably using a rules file called "urlrewrite.xml" that would be in the same folder as web.xml. If that is there could I get a copy? If you have security concerns with it then you could send it to my personal email address and I agree not to re-distribute. If not, I understand. > > Stuart > > On Nov 29, 2012, at 1:21 PM, <php...@li...> wrote: > >> Sorry, but I am not able to do that because they no longer work here. >> >> Take a look at the web.xml file and you can see that we do use >> UrlRewriteFilter (some bits removed for security purposes): >> >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application >> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> >> >> <web-app> >> <filter> >> <filter-name>PhpCGIFilter</filter-name> >> <filter-class>php.java.servlet.PhpCGIFilter</filter-class> >> </filter> >> <filter> >> <filter-name>UrlRewriteFilter</filter-name> >> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> >> </filter> >> >> <filter-mapping> >> <filter-name>UrlRewriteFilter</filter-name> >> <url-pattern>/*</url-pattern> >> </filter-mapping> >> <filter-mapping> >> <filter-name>PhpCGIFilter</filter-name> >> <url-pattern>/*</url-pattern> >> </filter-mapping> >> >> <servlet> >> <servlet-name>PhpCGIServlet</servlet-name> >> <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> >> <load-on-startup>0</load-on-startup> >> </servlet> >> <servlet-mapping> >> <servlet-name>PhpCGIServlet</servlet-name> >> <url-pattern>*.php</url-pattern> >> </servlet-mapping> >> >> <welcome-file-list> >> <welcome-file>index.php</welcome-file> >> </welcome-file-list> >> </web-app> >> >> >> >> On 11/29/2012 12:48 PM, php...@li... wrote: >>> Could you contact, or send me the contact info for the person(s) that did set that up? >>> >>> Stuart >>> >>> On Nov 29, 2012, at 11:06 AM, php...@li... wrote: >>> >>>> We use cakephp and the php-java bridge. You have to reproduce cake's >>>> .htaccess rewrite rules in tomcat. I didn't set that up, but that's how >>>> it works. >>>> >>>> On 11/29/2012 8:50 AM, php...@li... wrote: >>>>> Has anyone played with getting the CakePHP framework to work in a pjb servlet? >>>>> It uses .htaccess files and mod_rewrite (Apache) but this can be disabled. >>>>> >>>>> Maybe you could use UrlRewriteFilter? (http://tuckey.org/urlrewrite/) >>>>> >>>>> Any thoughts/comments appreciated. >>>>> >>>>> Stuart Chalk, Ph.D. >>>>> Associate Professor of Chemistry >>>>> Department of Chemistry, Building 50, Room 3514, >>>>> University of North Florida >>>>> 1 UNF Drive, Jacksonville, FL 32224 USA >>>>> P: 904-620-1938 >>>>> F: 904-620-3535 >>>>> E: sc...@un... >>>>> W: http://www.unf.edu/coas/chemistry/ >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Keep yourself connected to Go Parallel: >>>>> VERIFY Test and improve your parallel project with help from experts >>>>> and peers. http://goparallel.sourceforge.net >>>>> _______________________________________________ >>>>> php-java-bridge-users mailing list >>>>> php...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >>>> -- >>>> >>>> >>>> David Harris >>>> Bridge Interactive Group >>>> email: dh...@bi... >>>> cell: 404-831-7015 >>>> office: 888-901-0150 >>>> >>>> Bridge Software Products: >>>> www.retsiq.com <http://www.retsiq.com> >>>> www.realvaluator.com <http://www.realvaluator.com> >>>> >>>> ------------------------------------------------------------------------------ >>>> Keep yourself connected to Go Parallel: >>>> VERIFY Test and improve your parallel project with help from experts >>>> and peers. http://goparallel.sourceforge.net >>>> _______________________________________________ >>>> php-java-bridge-users mailing list >>>> php...@li... >>>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >>> ------------------------------------------------------------------------------ >>> Keep yourself connected to Go Parallel: >>> VERIFY Test and improve your parallel project with help from experts >>> and peers. http://goparallel.sourceforge.net >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> -- >> >> >> David Harris >> Bridge Interactive Group >> email: dh...@bi... >> cell: 404-831-7015 >> office: 888-901-0150 >> >> Bridge Software Products: >> www.retsiq.com <http://www.retsiq.com> >> www.realvaluator.com <http://www.realvaluator.com> >> >> ------------------------------------------------------------------------------ >> Keep yourself connected to Go Parallel: >> VERIFY Test and improve your parallel project with help from experts >> and peers. http://goparallel.sourceforge.net >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > VERIFY Test and improve your parallel project with help from experts > and peers. http://goparallel.sourceforge.net > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- David Harris Bridge Interactive Group email: dh...@bi... cell: 404-831-7015 office: 888-901-0150 Bridge Software Products: www.retsiq.com <http://www.retsiq.com> www.realvaluator.com <http://www.realvaluator.com> |