Re: Rewrite WO app URL
Ah, but it really is that simple. If it isn't working, you've most likely misconfigured something. Did you remove your modification to Application._rewriteURL? -G On Sep 17, 2012, at 12:03 PM, Raymond NANEON wrote: > Hi George, > > Thanks for your reply but it's not simple as you talk. If you have read all > topics, you can see I have done all settings you wrote but nothing work. > > Is this problem come form my WO server settings? > > I would like to have an answer about this issue. > > Ray > > Envoyé depuis iCloud > > > > Le 17 sept. 2012 à 15:33, George Domurot a > écrit : > >> Hi Raymond, >> >> Rewriting an entire app is simple and straight forward with Wonder. You are >> most likely over coding. >> >> 1) update your Properties file >> >> # Apache Deployment Rewrite >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/AppName.woa >> er.extensions.ERXApplication.replaceApplicationPath.replace=/AppName >> >> 2) update Apache >> >> RewriteEngine On >> RewriteRule ^/AppName(.*)$ /cgi-bin/WebObjects/AppName.woa$1 [PT,L] >> >> >> NOTE: properties and rewrite mirror each other. The first line in Properties >> matches the second part of the rewrite rule, and the second line matches the >> first part. >> >> 3) if you've done anything else >> Delete it, i.e. don't screw with Application._rewriteURL. >> >> -G >> >> >> >> On Sep 17, 2012, at 12:42 AM, Raymond NANEON wrote: >> >>> Hi All, >>> >>> nobody have idea about my problem. >>> >>> Thanks for your help. >>> >>> Envoyé depuis iCloud >>> >>> Le 12 sep 2012 à 23:49, Raymond NANEON a écrit : >>> Hi List, for the RewriteLog Pascal was right, permission problem. When I delete /wa pattern from my properties file and apache.conf, my url : http://agecanonix-form.utt.fr/Etudiant/myDefault continue to work but I can't navigate in my app beacause I stuck on myDefault page. When I add /wa pattern I can use my app normaly. How can I use my app correctly through this link : http://agecanonix-form.utt.fr/Etudiant/ ? Here is Rewrite log when /wa deleted for the same link: [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite engine with requested uri /Etudiant/wo/3.0.13.3.9.3 [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/Etudiant/wo/3.0.13.3.9.3' [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite '/Etudiant/wo/3.0.13.3.9.3' -> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' ===> Here whe are forcing to return myDefault page [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' to get passed through to next API URI-to-filename handler [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite engine with requested uri /Etudiant/wa/myDefault [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/Etudiant/wa/myDefault' [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite '/Etudiant/wa/myDefault' -> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' [13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' to get passed through to next API URI-to-filename handler Rewrite log with /wa pattern for the same link [13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3 [13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3' [13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (1) pass through /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3 [13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js [13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js' [13/Sep/2012:08:36:30 +0200] [agecano
Re: Rewrite WO app URL
Hi George, Thanks for your reply but it's not simple as you talk. If you have read all topics, you can see I have done all settings you wrote but nothing work. Is this problem come form my WO server settings? I would like to have an answer about this issue. Ray Envoyé depuis iCloud Le 17 sept. 2012 à 15:33, George Domurot a écrit : > Hi Raymond, > > Rewriting an entire app is simple and straight forward with Wonder. You are > most likely over coding. > > 1) update your Properties file > > # Apache Deployment Rewrite > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/AppName.woa > er.extensions.ERXApplication.replaceApplicationPath.replace=/AppName > > 2) update Apache > > RewriteEngine On > RewriteRule ^/AppName(.*)$ /cgi-bin/WebObjects/AppName.woa$1 [PT,L] > > > NOTE: properties and rewrite mirror each other. The first line in Properties > matches the second part of the rewrite rule, and the second line matches the > first part. > > 3) if you've done anything else > Delete it, i.e. don't screw with Application._rewriteURL. > > -G > > > > On Sep 17, 2012, at 12:42 AM, Raymond NANEON wrote: > >> Hi All, >> >> nobody have idea about my problem. >> >> Thanks for your help. >> >> Envoyé depuis iCloud >> >> Le 12 sep 2012 à 23:49, Raymond NANEON a écrit : >> >>> Hi List, >>> >>> for the RewriteLog Pascal was right, permission problem. When I delete /wa >>> pattern from my properties file and apache.conf, my url : >>> http://agecanonix-form.utt.fr/Etudiant/myDefault continue to work but I >>> can't navigate in my app beacause I stuck on myDefault page. When I add /wa >>> pattern I can use my app normaly. >>> >>> How can I use my app correctly through this link : >>> http://agecanonix-form.utt.fr/Etudiant/ ? >>> >>> Here is Rewrite log when /wa deleted for the same link: >>> >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite >>> engine with requested uri /Etudiant/wo/3.0.13.3.9.3 >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying >>> pattern '^/Etudiant(.*)$' to uri '/Etudiant/wo/3.0.13.3.9.3' >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite >>> '/Etudiant/wo/3.0.13.3.9.3' -> >>> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' >>> ===> Here whe are forcing to return myDefault page >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing >>> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' to get passed >>> through to next API URI-to-filename handler >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite >>> engine with requested uri /Etudiant/wa/myDefault >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying >>> pattern '^/Etudiant(.*)$' to uri '/Etudiant/wa/myDefault' >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite >>> '/Etudiant/wa/myDefault' -> >>> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' >>> [13/Sep/2012:08:40:31 +0200] >>> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing >>> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' to get passed >>> through to next API URI-to-filename handler >>> >>> >>> Rewrite log with /wa pattern for the same link >>> >>> [13/Sep/2012:08:36:30 +0200] >>> [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (2) init rewrite >>> engine with requested uri >>> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3 >>> [13/Sep/2012:08:36:30 +0200] >>> [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (3) applying >>> pattern '^/Etudiant(.*)$' to uri >>> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3' >>> [13/Sep/2012:08:36:30 +0200] >>> [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (1) pass through >>> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3 >>> [13/Sep/2012:08:36:30 +0200] >>> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite >>> engine with requested uri >>> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js >>> [13/Sep/2012:08:36:30 +0200] >>> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying >>> pattern '^/Etudiant(.*)$' to uri >>> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js' >>> [13/Sep/2012:08:36:30 +0200] >>> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (1) pass through >>> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js >>> [13/Sep/2012:08:36:30 +0200] >>> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite >>> engine with requested uri >>> /cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1 >>> [13/Sep/2012:08:36:30 +
Re: Rewrite WO app URL
Hi Raymond, Rewriting an entire app is simple and straight forward with Wonder. You are most likely over coding. 1) update your Properties file # Apache Deployment Rewrite er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/AppName.woa er.extensions.ERXApplication.replaceApplicationPath.replace=/AppName 2) update Apache RewriteEngine On RewriteRule ^/AppName(.*)$ /cgi-bin/WebObjects/AppName.woa$1 [PT,L] NOTE: properties and rewrite mirror each other. The first line in Properties matches the second part of the rewrite rule, and the second line matches the first part. 3) if you've done anything else Delete it, i.e. don't screw with Application._rewriteURL. -G On Sep 17, 2012, at 12:42 AM, Raymond NANEON wrote: > Hi All, > > nobody have idea about my problem. > > Thanks for your help. > > Envoyé depuis iCloud > > Le 12 sep 2012 à 23:49, Raymond NANEON a écrit : > >> Hi List, >> >> for the RewriteLog Pascal was right, permission problem. When I delete /wa >> pattern from my properties file and apache.conf, my url : >> http://agecanonix-form.utt.fr/Etudiant/myDefault continue to work but I >> can't navigate in my app beacause I stuck on myDefault page. When I add /wa >> pattern I can use my app normaly. >> >> How can I use my app correctly through this link : >> http://agecanonix-form.utt.fr/Etudiant/ ? >> >> Here is Rewrite log when /wa deleted for the same link: >> >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite >> engine with requested uri /Etudiant/wo/3.0.13.3.9.3 >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying >> pattern '^/Etudiant(.*)$' to uri '/Etudiant/wo/3.0.13.3.9.3' >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite >> '/Etudiant/wo/3.0.13.3.9.3' -> >> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' >> ===> Here whe are forcing to return myDefault page >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing >> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' to get passed >> through to next API URI-to-filename handler >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite >> engine with requested uri /Etudiant/wa/myDefault >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying >> pattern '^/Etudiant(.*)$' to uri '/Etudiant/wa/myDefault' >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite >> '/Etudiant/wa/myDefault' -> >> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' >> [13/Sep/2012:08:40:31 +0200] >> [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing >> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' to get passed >> through to next API URI-to-filename handler >> >> >> Rewrite log with /wa pattern for the same link >> >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (2) init rewrite >> engine with requested uri >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3 >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (3) applying >> pattern '^/Etudiant(.*)$' to uri >> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3' >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (1) pass through >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3 >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite >> engine with requested uri >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying >> pattern '^/Etudiant(.*)$' to uri >> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js' >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (1) pass through >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite >> engine with requested uri >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1 >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying >> pattern '^/Etudiant(.*)$' to uri >> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1' >> [13/Sep/2012:08:36:30 +0200] >> [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (1) pass through >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1 >> >> >> Thanks for your help >> >> Ray >> Envoyé depuis iCloud >> >> Le 12 sep 2012 à 09:32, Raymond NANEON a écrit : >> >>> I a
Rép : Re: Rewrite WO app URL
Hi All,nobody have idea about my problem.Thanks for your help.Envoyé depuis iCloudLe 12 sep 2012 à 23:49, Raymond NANEON a écrit :Hi List,for the RewriteLog Pascal was right, permission problem. When I delete /wa pattern from my properties file and apache.conf, my url : http://agecanonix-form.utt.fr/Etudiant/myDefault continue to work but I can't navigate in my app beacause I stuck on myDefault page. When I add /wa pattern I can use my app normaly.How can I use my app correctly through this link : http://agecanonix-form.utt.fr/Etudiant/ ?Here is Rewrite log when /wa deleted for the same link:[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite engine with requested uri /Etudiant/wo/3.0.13.3.9.3[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/Etudiant/wo/3.0.13.3.9.3'[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite '/Etudiant/wo/3.0.13.3.9.3' -> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3'===> Here whe are forcing to return myDefault page[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' to get passed through to next API URI-to-filename handler[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite engine with requested uri /Etudiant/wa/myDefault[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/Etudiant/wa/myDefault'[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite '/Etudiant/wa/myDefault' -> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault'[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' to get passed through to next API URI-to-filename handlerRewrite log with /wa pattern for the same link[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3'[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (1) pass through /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js'[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (1) pass through /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1'[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (1) pass through /cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1Thanks for your helpRayEnvoyé depuis iCloudLe 12 sep 2012 à 09:32, Raymond NANEON a écrit :I am not at my office now. Tomorrow I'll try Jhon solution and will look for RewriteLog permission and crash.Envoyé depuis iCloudLe 12 sept. 2012 à 16:40, Pascal Roberta écrit :Le 2012-09-12 à 05:14, Raymond NANEON a écrit :These arguments : RewriteLog "/var/log/apache2/rewrite.log" and RewriteLogLevel 9 in apache.conf , crashes Apache.Please define "crash". It started and closing right away? If yes, check in error_log for the reason… It's probably a permission problem… If it's running for a couple of minutes and it crash while it's running, you have a bigger problem.Envoyé depuis iCloudLe 12 sep 2012 à 01:39, Tim Worman a écrit :Check your rewrite logs to see what the requests are and why they aren't matching.TimUCLA GSE&ISOn Sep 12, 2012, at 1:33 AM, Raymond NANEON wrote:Hi List,I disabled WOAdaptorURL, direct connect, restarted httpd and apache with these new settings :apache.conf :RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]properties fileer.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etu
Rép : Re: Rewrite WO app URL
Hi List,for the RewriteLog Pascal was right, permission problem. When I delete /wa pattern from my properties file and apache.conf, my url : http://agecanonix-form.utt.fr/Etudiant/myDefault continue to work but I can't navigate in my app beacause I stuck on myDefault page. When I add /wa pattern I can use my app normaly.How can I use my app correctly through this link : http://agecanonix-form.utt.fr/Etudiant/ ?Here is Rewrite log when /wa deleted for the same link:[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite engine with requested uri /Etudiant/wo/3.0.13.3.9.3[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/Etudiant/wo/3.0.13.3.9.3'[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite '/Etudiant/wo/3.0.13.3.9.3' -> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3'===> Here whe are forcing to return myDefault page[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/3.0.13.3.9.3' to get passed through to next API URI-to-filename handler[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) init rewrite engine with requested uri /Etudiant/wa/myDefault[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/Etudiant/wa/myDefault'[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) rewrite '/Etudiant/wa/myDefault' -> '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault'[13/Sep/2012:08:40:31 +0200] [agecanonix-form.utt.fr/sid#8f4e3f0][rid#90636b8/initial] (2) forcing '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa/myDefault' to get passed through to next API URI-to-filename handlerRewrite log with /wa pattern for the same link[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3'[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82fb500/initial] (1) pass through /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/9.0.13.3.9.3[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js'[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (1) pass through /cgi-bin/WebObjects/Dossier-Etudiants.woa/wo/js/nicEdit.js[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (2) init rewrite engine with requested uri /cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (3) applying pattern '^/Etudiant(.*)$' to uri '/cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1'[13/Sep/2012:08:36:30 +0200] [agecanonix-form.utt.fr/sid#81e43f0][rid#82f74f0/initial] (1) pass through /cgi-bin/WebObjects/Dossier-Etudiants.woa/ajax/11.0.13.1Thanks for your helpRayEnvoyé depuis iCloudLe 12 sep 2012 à 09:32, Raymond NANEON a écrit :I am not at my office now. Tomorrow I'll try Jhon solution and will look for RewriteLog permission and crash.Envoyé depuis iCloudLe 12 sept. 2012 à 16:40, Pascal Roberta écrit :Le 2012-09-12 à 05:14, Raymond NANEON a écrit :These arguments : RewriteLog "/var/log/apache2/rewrite.log" and RewriteLogLevel 9 in apache.conf , crashes Apache.Please define "crash". It started and closing right away? If yes, check in error_log for the reason… It's probably a permission problem… If it's running for a couple of minutes and it crash while it's running, you have a bigger problem.Envoyé depuis iCloudLe 12 sep 2012 à 01:39, Tim Worman a écrit :Check your rewrite logs to see what the requests are and why they aren't matching.TimUCLA GSE&ISOn Sep 12, 2012, at 1:33 AM, Raymond NANEON wrote:Hi List,I disabled WOAdaptorURL, direct connect, restarted httpd and apache with these new settings :apache.conf :RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]properties fileer.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/waer.extensions.ERXApplication.replaceApplicationPath.replace=/EtudiantThe url :http://agecanonix-form.utt.fr/Etudiant/m
Re: Rewrite WO app URL
I am not at my office now. Tomorrow I'll try Jhon solution and will look for RewriteLog permission and crash. Envoyé depuis iCloud Le 12 sept. 2012 à 16:40, Pascal Robert a écrit : > > Le 2012-09-12 à 05:14, Raymond NANEON a écrit : > >> These arguments : RewriteLog "/var/log/apache2/rewrite.log" and >> RewriteLogLevel 9 in apache.conf , crashes Apache. > > Please define "crash". It started and closing right away? If yes, check in > error_log for the reason… It's probably a permission problem… If it's running > for a couple of minutes and it crash while it's running, you have a bigger > problem. > >> Envoyé depuis iCloud >> >> Le 12 sep 2012 à 01:39, Tim Worman a écrit : >> >>> Check your rewrite logs to see what the requests are and why they aren't >>> matching. >>> >>> Tim >>> UCLA GSE&IS >>> >>> On Sep 12, 2012, at 1:33 AM, Raymond NANEON wrote: >>> Hi List, I disabled WOAdaptorURL, direct connect, restarted httpd and apache with these new settings : apache.conf : RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] properties file er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/Etudiant The url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great but I have the old url which appears again when I navigate between my app links. How I fix it to maintain all links in this format : http://agecanonix-form.utt.fr/Etudiant/... Thanks Envoyé depuis iCloud Le 11 sep 2012 à 14:40, Raymond NANEON a écrit : > Hi list > > Thank you for your answers and I'll change my app setting step by step: > > - Try using WOAdaptorURL in JavaMonitor Properties > - If not working, disable direct connect WODirectConnectEnabled = false > - I retry if I run my application through apache, wotaskd … the url > change or not. > > I'm not actually in the office but tomorrow I will tell what I get. > > Ray > > > Le 11 sept. 2012 à 20:47, Tim Worman a écrit : > >> Raymond, >> >> The port number in the URL you posted implies that your app is not >> running through apache. >> >> Once that is solved, this is what I am doing through apache mod_rewrite. >> >> Properties: >> #rewrite the app urls >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa >> er.extensions.ERXApplication.replaceApplicationPath.replace=/appname >> >> RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] >> >> The bottom line here is that is that your mod_rewrite rule has to >> produce a url that matches the Wonder pattern property. If it isn't >> working, you're gonna have to turn on your rewrite logging and check the >> logs to figure out why. >> >> RewriteLog "/var/log/apache2/rewrite.log" >> RewriteLogLevel 9 >> >> And here is a great cheat sheet for mod_rewrite. >> >> http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ >> >> Tim >> UCLA GSEIS >> >> On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: >> >>> Hi Pascal, >>> >>> I tried all possibilities but nothing work :( >>> >>> apache.conf >>> >>> LoadModule rewrite_module modules/mod_rewrite.so >>> LoadModule WebObjects_module modules/mod_WebObjects.so >>> >>> ... >>> >>> RewriteEngine On >>> RewriteRule ^/Students(.*)$ >>> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >>> >>> httpd.conf >>> >>> >>> LoadModule rewrite_module modules/mod_rewrite.so >>> LoadModule WebObjects_module modules/mod_WebObjects.so >>> >>> webobjects.conf >>> >>> LoadModule rewrite_module modules/mod_rewrite.so >>> LoadModule WebObjects_module modules/mod_WebObjects.so >>> >>> ... >>> >>> RewriteEngine On >>> RewriteRule ^/Students(.*)$ >>> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >>> >>> >>> Result : >>> http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >>> >>> >>> And you are 100% sure that you are not using direct connect and that >>> the app is running with Apache, wotaskd and the adaptor? >>> ===> I don't know it the server is using direct connect. I know if we >>> turn off wotaskd, all apps continue to work. How can I configue my app >>> to run with apache? >>> >>> >>> Thank >>> Envoyé depuis iCloud >>> >>> Le 11 sep 2012 à 05:30, Pascal Robert a écrit : >>> Le 2012-09-11 à 08:27, Raymond NANEON a
Re: Rewrite WO app URL
Le 2012-09-12 à 05:14, Raymond NANEON a écrit : > These arguments : RewriteLog "/var/log/apache2/rewrite.log" and > RewriteLogLevel 9 in apache.conf , crashes Apache. Please define "crash". It started and closing right away? If yes, check in error_log for the reason… It's probably a permission problem… If it's running for a couple of minutes and it crash while it's running, you have a bigger problem. > Envoyé depuis iCloud > > Le 12 sep 2012 à 01:39, Tim Worman a écrit : > >> Check your rewrite logs to see what the requests are and why they aren't >> matching. >> >> Tim >> UCLA GSE&IS >> >> On Sep 12, 2012, at 1:33 AM, Raymond NANEON wrote: >> >> > Hi List, >> > >> > I disabled WOAdaptorURL, direct connect, restarted httpd and apache with >> > these new settings : >> > >> > apache.conf : >> > >> > RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> > [PT,L] >> > >> > properties file >> > >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Etudiant >> > >> > The url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great but >> > I have the old url which appears again when I navigate between my app >> > links. >> > >> > How I fix it to maintain all links in this format : >> > http://agecanonix-form.utt.fr/Etudiant/... >> > >> > Thanks >> > >> > Envoyé depuis iCloud >> > >> > Le 11 sep 2012 à 14:40, Raymond NANEON a écrit : >> > >> >> Hi list >> >> >> >> Thank you for your answers and I'll change my app setting step by step: >> >> >> >> - Try using WOAdaptorURL in JavaMonitor Properties >> >> - If not working, disable direct connect WODirectConnectEnabled = false >> >> - I retry if I run my application through apache, wotaskd … the url >> >> change or not. >> >> >> >> I'm not actually in the office but tomorrow I will tell what I get. >> >> >> >> Ray >> >> >> >> >> >> Le 11 sept. 2012 à 20:47, Tim Worman a écrit : >> >> >> >> > Raymond, >> >> > >> >> > The port number in the URL you posted implies that your app is not >> >> > running through apache. >> >> > >> >> > Once that is solved, this is what I am doing through apache mod_rewrite. >> >> > >> >> > Properties: >> >> > #rewrite the app urls >> >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa >> >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/appname >> >> > >> >> > RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] >> >> > >> >> > The bottom line here is that is that your mod_rewrite rule has to >> >> > produce a url that matches the Wonder pattern property. If it isn't >> >> > working, you're gonna have to turn on your rewrite logging and check >> >> > the logs to figure out why. >> >> > >> >> > RewriteLog "/var/log/apache2/rewrite.log" >> >> > RewriteLogLevel 9 >> >> > >> >> > And here is a great cheat sheet for mod_rewrite. >> >> > >> >> > http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ >> >> > >> >> > Tim >> >> > UCLA GSEIS >> >> > >> >> > On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: >> >> > >> >> >> Hi Pascal, >> >> >> >> >> >> I tried all possibilities but nothing work :( >> >> >> >> >> >> apache.conf >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> >> >> ... >> >> >> >> >> >> RewriteEngine On >> >> >> RewriteRule ^/Students(.*)$ >> >> >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> >> >> httpd.conf >> >> >> >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> >> >> webobjects.conf >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> >> >> ... >> >> >> >> >> >> RewriteEngine On >> >> >> RewriteRule ^/Students(.*)$ >> >> >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> >> >> >> >> >> Result : >> >> >> http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> >> >> >> >> >> >> >> And you are 100% sure that you are not using direct connect and that >> >> >> the app is running with Apache, wotaskd and the adaptor? >> >> >> ===> I don't know it the server is using direct connect. I know if we >> >> >> turn off wotaskd, all apps continue to work. How can I configue my app >> >> >> to run with apache? >> >> >> >> >> >> >> >> >> Thank >> >> >> Envoyé depuis iCloud >> >> >> >> >> >> Le 11 sep 2012 à 05:30, Pascal Robert a écrit : >> >> >> >> >> >>> >> >> >>> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >> >> >>> >> >> Hi Pascal, >> >> >> >> I do all changes but nothing works for me. Do you load >> >> mod_rew
Re: Rewrite WO app URL
Then there's something wrong with your apache install. Those are mod_rewrite directives. good luck, Tim UCLA GSE&IS On Sep 12, 2012, at 2:14 AM, Raymond NANEON wrote: > These arguments : RewriteLog "/var/log/apache2/rewrite.log" and > RewriteLogLevel 9 in apache.conf , crashes Apache. > > Envoyé depuis iCloud > > Le 12 sep 2012 à 01:39, Tim Worman a écrit : > >> Check your rewrite logs to see what the requests are and why they aren't >> matching. >> >> Tim >> UCLA GSE&IS >> >> On Sep 12, 2012, at 1:33 AM, Raymond NANEON wrote: >> >> > Hi List, >> > >> > I disabled WOAdaptorURL, direct connect, restarted httpd and apache with >> > these new settings : >> > >> > apache.conf : >> > >> > RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> > [PT,L] >> > >> > properties file >> > >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Etudiant >> > >> > The url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great but >> > I have the old url which appears again when I navigate between my app >> > links. >> > >> > How I fix it to maintain all links in this format : >> > http://agecanonix-form.utt.fr/Etudiant/... >> > >> > Thanks >> > >> > Envoyé depuis iCloud >> > >> > Le 11 sep 2012 à 14:40, Raymond NANEON a écrit : >> > >> >> Hi list >> >> >> >> Thank you for your answers and I'll change my app setting step by step: >> >> >> >> - Try using WOAdaptorURL in JavaMonitor Properties >> >> - If not working, disable direct connect WODirectConnectEnabled = false >> >> - I retry if I run my application through apache, wotaskd … the url >> >> change or not. >> >> >> >> I'm not actually in the office but tomorrow I will tell what I get. >> >> >> >> Ray >> >> >> >> >> >> Le 11 sept. 2012 à 20:47, Tim Worman a écrit : >> >> >> >> > Raymond, >> >> > >> >> > The port number in the URL you posted implies that your app is not >> >> > running through apache. >> >> > >> >> > Once that is solved, this is what I am doing through apache mod_rewrite. >> >> > >> >> > Properties: >> >> > #rewrite the app urls >> >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa >> >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/appname >> >> > >> >> > RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] >> >> > >> >> > The bottom line here is that is that your mod_rewrite rule has to >> >> > produce a url that matches the Wonder pattern property. If it isn't >> >> > working, you're gonna have to turn on your rewrite logging and check >> >> > the logs to figure out why. >> >> > >> >> > RewriteLog "/var/log/apache2/rewrite.log" >> >> > RewriteLogLevel 9 >> >> > >> >> > And here is a great cheat sheet for mod_rewrite. >> >> > >> >> > http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ >> >> > >> >> > Tim >> >> > UCLA GSEIS >> >> > >> >> > On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: >> >> > >> >> >> Hi Pascal, >> >> >> >> >> >> I tried all possibilities but nothing work :( >> >> >> >> >> >> apache.conf >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> >> >> ... >> >> >> >> >> >> RewriteEngine On >> >> >> RewriteRule ^/Students(.*)$ >> >> >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> >> >> httpd.conf >> >> >> >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> >> >> webobjects.conf >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> >> >> ... >> >> >> >> >> >> RewriteEngine On >> >> >> RewriteRule ^/Students(.*)$ >> >> >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> >> >> >> >> >> Result : >> >> >> http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> >> >> >> >> >> >> >> And you are 100% sure that you are not using direct connect and that >> >> >> the app is running with Apache, wotaskd and the adaptor? >> >> >> ===> I don't know it the server is using direct connect. I know if we >> >> >> turn off wotaskd, all apps continue to work. How can I configue my app >> >> >> to run with apache? >> >> >> >> >> >> >> >> >> Thank >> >> >> Envoyé depuis iCloud >> >> >> >> >> >> Le 11 sep 2012 à 05:30, Pascal Robert a écrit : >> >> >> >> >> >>> >> >> >>> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >> >> >>> >> >> Hi Pascal, >> >> >> >> I do all changes but nothing works for me. Do you load >> >> mod_rewrite.so in your apache conf? >> >> >>> >> >> >>> Well, yes or it will not work… And it have to be loaded before th
Re: Rép : Re: Rewrite WO app URL
> > > Hi List, > > > > I disabled WOAdaptorURL, direct connect, restarted httpd and apache with > these new settings : > > > > apache.conf : > > > > RewriteRule ^/Etudiant(.*)$ > /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] > > > > properties file > > > > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa > > er.extensions.ERXApplication.replaceApplicationPath.replace=/Etudiant > > > > The url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great > but I have the old url which appears again when I navigate between my app > links. > > > > How I fix it to maintain all links in this format : > http://agecanonix-form.utt.fr/Etudiant/... > > Just remove the "/wa" from your patterns ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Rép : Re: Rewrite WO app URL
These arguments : RewriteLog "/var/log/apache2/rewrite.log" and RewriteLogLevel 9 in apache.conf , crashes Apache. Envoyé depuis iCloudLe 12 sep 2012 à 01:39, Tim Worman a écrit :Check your rewrite logs to see what the requests are and why they aren't matching. Tim UCLA GSE&IS On Sep 12, 2012, at 1:33 AM, Raymond NANEONwrote: > Hi List, > > I disabled WOAdaptorURL, direct connect, restarted httpd and apache with these new settings : > > apache.conf : > > RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] > > properties file > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa > er.extensions.ERXApplication.replaceApplicationPath.replace=/Etudiant > > The url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great but I have the old url which appears again when I navigate between my app links. > > How I fix it to maintain all links in this format : http://agecanonix-form.utt.fr/Etudiant/... > > Thanks > > Envoyé depuis iCloud > > Le 11 sep 2012 à 14:40, Raymond NANEON a écrit : > >> Hi list >> >> Thank you for your answers and I'll change my app setting step by step: >> >> - Try using WOAdaptorURL in JavaMonitor Properties >> - If not working, disable direct connect WODirectConnectEnabled = false >> - I retry if I run my application through apache, wotaskd … the url change or not. >> >> I'm not actually in the office but tomorrow I will tell what I get. >> >> Ray >> >> >> Le 11 sept. 2012 à 20:47, Tim Worman a écrit : >> >> > Raymond, >> > >> > The port number in the URL you posted implies that your app is not running through apache. >> > >> > Once that is solved, this is what I am doing through apache mod_rewrite. >> > >> > Properties: >> > #rewrite the app urls >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/appname >> > >> > RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] >> > >> > The bottom line here is that is that your mod_rewrite rule has to produce a url that matches the Wonder pattern property. If it isn't working, you're gonna have to turn on your rewrite logging and check the logs to figure out why. >> > >> > RewriteLog "/var/log/apache2/rewrite.log" >> > RewriteLogLevel 9 >> > >> > And here is a great cheat sheet for mod_rewrite. >> > >> > http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ >> > >> > Tim >> > UCLA GSEIS >> > >> > On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: >> > >> >> Hi Pascal, >> >> >> >> I tried all possibilities but nothing work :( >> >> >> >> apache.conf >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> ... >> >> >> >> RewriteEngine On >> >> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> httpd.conf >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> webobjects.conf >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> ... >> >> >> >> RewriteEngine On >> >> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> >> >> Result : http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> >> >> >> >> And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor? >> >> ===> I don't know it the server is using direct connect. I know if we turn off wotaskd, all apps continue to work. How can I configue my app to run with apache? >> >> >> >> >> >> Thank >> >> Envoyé depuis iCloud >> >> >> >> Le 11 sep 2012 à 05:30, Pascal Robert a écrit : >> >> >> >>> >> >>> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >> >>> >> Hi Pascal, >> >> I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf? >> >>> >> >>> Well, yes or it will not work… And it have to be loaded before the WebObjects module. >> >>> >> apache.conf : >> >> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> Properties : >> >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa >> er.extensions.ERXApplication.replaceApplicationPath.replace=/Students >> >> DirectAction.java : >> >> public WOActionResults myDefaultAction() { >> if (useCasService()) >> return loginCASPage(); >> else >> return loginNoCasPage(null); >> } >> >>
Re: Rewrite WO app URL
Check your rewrite logs to see what the requests are and why they aren't matching. Tim UCLA GSE&IS On Sep 12, 2012, at 1:33 AM, Raymond NANEON wrote: > Hi List, > > I disabled WOAdaptorURL, direct connect, restarted httpd and apache with > these new settings : > > apache.conf : > > RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > properties file > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa > er.extensions.ERXApplication.replaceApplicationPath.replace=/Etudiant > > The url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great but I > have the old url which appears again when I navigate between my app links. > > How I fix it to maintain all links in this format : > http://agecanonix-form.utt.fr/Etudiant/... > > Thanks > > Envoyé depuis iCloud > > Le 11 sep 2012 à 14:40, Raymond NANEON a écrit : > >> Hi list >> >> Thank you for your answers and I'll change my app setting step by step: >> >> - Try using WOAdaptorURL in JavaMonitor Properties >> - If not working, disable direct connect WODirectConnectEnabled = false >> - I retry if I run my application through apache, wotaskd … the url change >> or not. >> >> I'm not actually in the office but tomorrow I will tell what I get. >> >> Ray >> >> >> Le 11 sept. 2012 à 20:47, Tim Worman a écrit : >> >> > Raymond, >> > >> > The port number in the URL you posted implies that your app is not running >> > through apache. >> > >> > Once that is solved, this is what I am doing through apache mod_rewrite. >> > >> > Properties: >> > #rewrite the app urls >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/appname >> > >> > RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] >> > >> > The bottom line here is that is that your mod_rewrite rule has to produce >> > a url that matches the Wonder pattern property. If it isn't working, >> > you're gonna have to turn on your rewrite logging and check the logs to >> > figure out why. >> > >> > RewriteLog "/var/log/apache2/rewrite.log" >> > RewriteLogLevel 9 >> > >> > And here is a great cheat sheet for mod_rewrite. >> > >> > http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ >> > >> > Tim >> > UCLA GSEIS >> > >> > On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: >> > >> >> Hi Pascal, >> >> >> >> I tried all possibilities but nothing work :( >> >> >> >> apache.conf >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> ... >> >> >> >> RewriteEngine On >> >> RewriteRule ^/Students(.*)$ >> >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> httpd.conf >> >> >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> webobjects.conf >> >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> >> >> ... >> >> >> >> RewriteEngine On >> >> RewriteRule ^/Students(.*)$ >> >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> >> >> >> Result : >> >> http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> >> >> >> >> And you are 100% sure that you are not using direct connect and that the >> >> app is running with Apache, wotaskd and the adaptor? >> >> ===> I don't know it the server is using direct connect. I know if we >> >> turn off wotaskd, all apps continue to work. How can I configue my app to >> >> run with apache? >> >> >> >> >> >> Thank >> >> Envoyé depuis iCloud >> >> >> >> Le 11 sep 2012 à 05:30, Pascal Robert a écrit : >> >> >> >>> >> >>> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >> >>> >> Hi Pascal, >> >> I do all changes but nothing works for me. Do you load mod_rewrite.so >> in your apache conf? >> >>> >> >>> Well, yes or it will not work… And it have to be loaded before the >> >>> WebObjects module. >> >>> >> apache.conf : >> >> RewriteRule ^/Students(.*)$ >> /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> Properties : >> >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa >> er.extensions.ERXApplication.replaceApplicationPath.replace=/Students >> >> DirectAction.java : >> >> public WOActionResults myDefaultAction() { >> if (useCasService()) >> return loginCASPage(); >> else >> return loginNoCasPage(null); >> } >> >> Result : >> http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >>> >> >>> And you are 100% sure t
Rép : Re: Rewrite WO app URL
Hi List,I disabled WOAdaptorURL, direct connect, restarted httpd and apache with these new settings :apache.conf :RewriteRule ^/Etudiant(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]properties fileer.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/EtudiantThe url :http://agecanonix-form.utt.fr/Etudiant/myDefault works great but I have the old url which appears again when I navigate between my app links.How I fix it to maintain all links in this format : http://agecanonix-form.utt.fr/Etudiant/... ThanksEnvoyé depuis iCloudLe 11 sep 2012 à 14:40, Raymond NANEON a écrit :Hi list Thank you for your answers and I'll change my app setting step by step: - Try using WOAdaptorURL in JavaMonitor Properties - If not working, disable direct connect WODirectConnectEnabled = false - I retry if I run my application through apache, wotaskd … the url change or not. I'm not actually in the office but tomorrow I will tell what I get. Ray Le 11 sept. 2012 à 20:47, Tim Wormana écrit : > Raymond, > > The port number in the URL you posted implies that your app is not running through apache. > > Once that is solved, this is what I am doing through apache mod_rewrite. > > Properties: > #rewrite the app urls > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa > er.extensions.ERXApplication.replaceApplicationPath.replace=/appname > > RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] > > The bottom line here is that is that your mod_rewrite rule has to produce a url that matches the Wonder pattern property. If it isn't working, you're gonna have to turn on your rewrite logging and check the logs to figure out why. > > RewriteLog "/var/log/apache2/rewrite.log" > RewriteLogLevel 9 > > And here is a great cheat sheet for mod_rewrite. > > http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ > > Tim > UCLA GSEIS > > On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: > >> Hi Pascal, >> >> I tried all possibilities but nothing work :( >> >> apache.conf >> >> LoadModule rewrite_module modules/mod_rewrite.so >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> ... >> >> RewriteEngine On >> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> httpd.conf >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> webobjects.conf >> >> LoadModule rewrite_module modules/mod_rewrite.so >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> ... >> >> RewriteEngine On >> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> >> Result : http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> >> And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor? >> ===> I don't know it the server is using direct connect. I know if we turn off wotaskd, all apps continue to work. How can I configue my app to run with apache? >> >> >> Thank >> Envoyé depuis iCloud >> >> Le 11 sep 2012 à 05:30, Pascal Robert a écrit : >> >>> >>> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >>> Hi Pascal, I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf? >>> >>> Well, yes or it will not work… And it have to be loaded before the WebObjects module. >>> apache.conf : RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] Properties : er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/Students DirectAction.java : public WOActionResults myDefaultAction() { if (useCasService()) return loginCASPage(); else return loginNoCasPage(null); } Result : http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >>> >>> And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor? >>> Envoyé depuis iCloud Le 11 sep 2012 à 05:04, Pascal Robert a écrit : > > Le 2012-09-11 à 07:52, Raymond NANEON a écrit : > >> Hi Pascal, >> >> I followed the wocommunity slide but It doesn't work : >> >> Application.java >> >> public String _rewriteURL(String url){ >> String processedURL = url; >> if(url != null && _replaceApplicationPathPattern != null && _replaceApplicationPathRepla
Re: Rewrite WO app URL
Hi list Thank you for your answers and I'll change my app setting step by step: - Try using WOAdaptorURL in JavaMonitor Properties - If not working, disable direct connect WODirectConnectEnabled = false - I retry if I run my application through apache, wotaskd … the url change or not. I'm not actually in the office but tomorrow I will tell what I get. Ray Le 11 sept. 2012 à 20:47, Tim Worman a écrit : > Raymond, > > The port number in the URL you posted implies that your app is not running > through apache. > > Once that is solved, this is what I am doing through apache mod_rewrite. > > Properties: > #rewrite the app urls > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa > er.extensions.ERXApplication.replaceApplicationPath.replace=/appname > > RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] > > The bottom line here is that is that your mod_rewrite rule has to produce a > url that matches the Wonder pattern property. If it isn't working, you're > gonna have to turn on your rewrite logging and check the logs to figure out > why. > > RewriteLog "/var/log/apache2/rewrite.log" > RewriteLogLevel 9 > > And here is a great cheat sheet for mod_rewrite. > > http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ > > Tim > UCLA GSEIS > > On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: > >> Hi Pascal, >> >> I tried all possibilities but nothing work :( >> >> apache.conf >> >> LoadModule rewrite_module modules/mod_rewrite.so >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> ... >> >> RewriteEngine On >> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> [PT,L] >> >> httpd.conf >> >> >> LoadModule rewrite_module modules/mod_rewrite.so >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> webobjects.conf >> >> LoadModule rewrite_module modules/mod_rewrite.so >> LoadModule WebObjects_module modules/mod_WebObjects.so >> >> ... >> >> RewriteEngine On >> RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> [PT,L] >> >> >> Result : >> http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> >> And you are 100% sure that you are not using direct connect and that the app >> is running with Apache, wotaskd and the adaptor? >> ===> I don't know it the server is using direct connect. I know if we turn >> off wotaskd, all apps continue to work. How can I configue my app to run >> with apache? >> >> >> Thank >> Envoyé depuis iCloud >> >> Le 11 sep 2012 à 05:30, Pascal Robert a écrit : >> >>> >>> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >>> Hi Pascal, I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf? >>> >>> Well, yes or it will not work… And it have to be loaded before the >>> WebObjects module. >>> apache.conf : RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] Properties : er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/Students DirectAction.java : public WOActionResults myDefaultAction() { if (useCasService()) return loginCASPage(); else return loginNoCasPage(null); } Result : http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >>> >>> And you are 100% sure that you are not using direct connect and that the >>> app is running with Apache, wotaskd and the adaptor? >>> Envoyé depuis iCloud Le 11 sep 2012 à 05:04, Pascal Robert a écrit : > > Le 2012-09-11 à 07:52, Raymond NANEON a écrit : > >> Hi Pascal, >> >> I followed the wocommunity slide but It doesn't work : >> >> Application.java >> >> public String _rewriteURL(String url){ >> String processedURL = url; >> if(url != null && _replaceApplicationPathPattern != null && >> _replaceApplicationPathReplace != null){ >> processedURL = processedURL.replaceFirst(_replaceApplicationPathPattern, >> _replaceApplicationPathReplace); >> } >> return processedURL; >> } >> >> Apache.conf >> >> RewriteEngine On >> RewriteRule ^/Profil(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> [PT,L] >> >> Properties file >> >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa >> er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil >> >> In result I have this url : >> http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> instead
Re: Rewrite WO app URL
Raymond, The port number in the URL you posted implies that your app is not running through apache. Once that is solved, this is what I am doing through apache mod_rewrite. Properties: #rewrite the app urls er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/appname.woa er.extensions.ERXApplication.replaceApplicationPath.replace=/appname RewriteRule ^/appname(.*)$ /cgi-bin/WebObjects/appname.woa$1 [PT,L] The bottom line here is that is that your mod_rewrite rule has to produce a url that matches the Wonder pattern property. If it isn't working, you're gonna have to turn on your rewrite logging and check the logs to figure out why. RewriteLog "/var/log/apache2/rewrite.log" RewriteLogLevel 9 And here is a great cheat sheet for mod_rewrite. http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ Tim UCLA GSEIS On Sep 11, 2012, at 7:56 AM, Raymond NANEON wrote: > Hi Pascal, > > I tried all possibilities but nothing work :( > > apache.conf > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > ... > > RewriteEngine On > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > httpd.conf > > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > webobjects.conf > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > ... > > RewriteEngine On > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > > Result : > http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault > > > And you are 100% sure that you are not using direct connect and that the app > is running with Apache, wotaskd and the adaptor? > ===> I don't know it the server is using direct connect. I know if we turn > off wotaskd, all apps continue to work. How can I configue my app to run with > apache? > > > Thank > Envoyé depuis iCloud > > Le 11 sep 2012 à 05:30, Pascal Robert a écrit : > >> >> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >> >> > Hi Pascal, >> > >> > I do all changes but nothing works for me. Do you load mod_rewrite.so in >> > your apache conf? >> >> Well, yes or it will not work… And it have to be loaded before the >> WebObjects module. >> >> > apache.conf : >> > >> > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> > [PT,L] >> > >> > Properties : >> > >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Students >> > >> > DirectAction.java : >> > >> > public WOActionResults myDefaultAction() { >> > if (useCasService()) >> > return loginCASPage(); >> > else >> > return loginNoCasPage(null); >> > } >> > >> > Result : >> > http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> And you are 100% sure that you are not using direct connect and that the app >> is running with Apache, wotaskd and the adaptor? >> >> > Envoyé depuis iCloud >> > >> > Le 11 sep 2012 à 05:04, Pascal Robert a écrit : >> > >> >> >> >> Le 2012-09-11 à 07:52, Raymond NANEON a écrit : >> >> >> >> > Hi Pascal, >> >> > >> >> > I followed the wocommunity slide but It doesn't work : >> >> > >> >> > Application.java >> >> > >> >> > public String _rewriteURL(String url){ >> >> > String processedURL = url; >> >> > if(url != null && _replaceApplicationPathPattern != null && >> >> > _replaceApplicationPathReplace != null){ >> >> > processedURL = >> >> > processedURL.replaceFirst(_replaceApplicationPathPattern, >> >> > _replaceApplicationPathReplace); >> >> > } >> >> > return processedURL; >> >> > } >> >> > >> >> > Apache.conf >> >> > >> >> > RewriteEngine On >> >> > RewriteRule ^/Profil(.*)$ >> >> > /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> > >> >> > Properties file >> >> > >> >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa >> >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil >> >> > >> >> > In result I have this url : >> >> > http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> > instead of it : http://imac-cedre.utt.fr:1242/Profil >> >> >> >> Your rules doesn't match. In Apache you say Dossier-Etudiants.woa/wa but >> >> in the properties you didn't put the /wa … >> >> >> >> For WOCommunity.org, I use: >> >> >> >> RewriteRule ^/page(.*)$ /apps/WebObjects/WOCommunityPublic.woa/wa$1 [PT,L] >> >> >> >> Properties: >> >> >> >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/WOCommunityPublic.woa/wa >> >> er.extensions.ERXApplication.replaceApplic
Re: Rép : Re: Rewrite WO app URL
On Tue, Sep 11, 2012 at 9:56 AM, Raymond NANEON wrote: > Hi Pascal, > > I tried all possibilities but nothing work :( > > apache.conf > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > ... > > RewriteEngine On > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > httpd.conf > > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > webobjects.conf > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > ... > > RewriteEngine On > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > > Result : * > http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault > * > > > And you are 100% sure that you are not using direct connect and that the > app is running with Apache, wotaskd and the adaptor? > ===> I don't know it the server is using direct connect. I know if we turn > off wotaskd, all apps continue to work. How can I configue my app to run > with apache? > You ARE using direct connect. You can tell because of the colon and port number after the host name in the url. You can disable it using the Properties file: WODirectConnectEnabled = false But if you are running through eclipse you will probably need to change your launch arguments on the WO tab. John ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Rewrite WO app URL
On the apps I use I like clean URLs, I've been using alot of ERRest to help as well. For rewrite rules I use a more complicated rewrite so that I can write ERRest routes like server.com/AppName/Route/Whatever instead of server.com/AppName/ra/Route/Whatever: RewriteRule ^AppName/([0-9]*/)?(?!(?:[0-9]*/)?ajax/|(?:[0-9]*/)?wis/|(?:[0-9]*/)?_wr_/|(?:[0-9]*/)?_sl_/|(?:[0-9]*/)?wa/|(?:[0-9]*/)?ra/|(?:[0-9]*/)?womp/|(?:[0-9]*/)?ja/|(?:[0-9]*/)?wo/|(?:[0-9]*/)?push/|(?:[0-9]*/)?wr/|(?:[0-9]*/)?ws/|(?:[0-9]*/)?erxadm/|(?:[0-9]*/?)?$)(.*)$ /cgi-bin/WebObjects/AppName.woa/$1ra/$2 [NC,PT,L] RewriteRule ^AppName/([0-9]*/)?(ajax/|wis/|_wr_/|_sl_/|wa/|ra/|womp/|ja/|wo/|push/|wr/|ws/|erxadm/|(?:[0-9]*/))(.*)$ /cgi-bin/WebObjects/AppName.woa/$1$2$3 [NC,PT,L] RewriteRule ^AppName(/[0-9]*)?$ /cgi-bin/WebObjects/AppName.woa [NC,PT,L] The rewrite properties are simple though: er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/AppName.woa -er.extensions.ERXApplication.replaceApplicationPath.replace=/AppName Then to get rid of the session ID in the url in my session class I have: @Override public void awake() { super.awake(); setStoresIDsInCookies(true); setStoresIDsInURLs(false); } @Override public String domainForIDCookies() { return ERXApplication.isDevelopmentModeSafe() ? super.domainForIDCookies() : "/" + "AppName" ; } ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Rewrite WO app URL
And if you use DirectConnect you can change you application url with the WOAdaptorURL Property. Example: .. public static void main(String argv[]) { ... if (System.getProperty("WOAdaptorURL") == null) System.setProperty("WOAdaptorURL", "http://localhost/newname";); ... would turn your url from http://myserver/cgi-bin/WebObjects/myapp to http://myserver/newname/myapp On 11.09.12 17:08, Pascal Robert wrote: Le 2012-09-11 à 10:56, Raymond NANEON a écrit : Hi Pascal, I tried all possibilities but nothing work :( apache.conf LoadModule rewrite_module modules/mod_rewrite.so LoadModule WebObjects_module modules/mod_WebObjects.so ... RewriteEngine On RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] httpd.conf LoadModule rewrite_module modules/mod_rewrite.so LoadModule WebObjects_module modules/mod_WebObjects.so webobjects.conf LoadModule rewrite_module modules/mod_rewrite.so LoadModule WebObjects_module modules/mod_WebObjects.so ... RewriteEngine On RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] Result : http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor? ===> I don't know it the server is using direct connect. I know if we turn off wotaskd, all apps continue to work. How can I configue my app to run with apache? If you can access the app without the app (http://agecanonix-form.utt.fr/cgi-bin/WebObjects/Dossier-Etudiants.woa), Apache and wotaskd are taking care of it. If you can only access it by a special port, it's running on direct connect... Thank Envoyé depuis iCloud Le 11 sep 2012 à 05:30, Pascal Robert a écrit : Le 2012-09-11 à 08:27, Raymond NANEON a écrit : Hi Pascal, I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf? Well, yes or it will not work… And it have to be loaded before the WebObjects module. apache.conf : RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] Properties : er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/Students DirectAction.java : public WOActionResults myDefaultAction() { if (useCasService()) return loginCASPage(); else return loginNoCasPage(null); } Result : http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor? Envoyé depuis iCloud Le 11 sep 2012 à 05:04, Pascal Robert a écrit : Le 2012-09-11 à 07:52, Raymond NANEON a écrit : Hi Pascal, I followed the wocommunity slide but It doesn't work : Application.java public String _rewriteURL(String url){ String processedURL = url; if(url != null && _replaceApplicationPathPattern != null && _replaceApplicationPathReplace != null){ processedURL = processedURL.replaceFirst(_replaceApplicationPathPattern, _replaceApplicationPathReplace); } return processedURL; } Apache.conf RewriteEngine On RewriteRule ^/Profil(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] Properties file er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil In result I have this url : http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault instead of it : http://imac-cedre.utt.fr:1242/Profil Your rules doesn't match. In Apache you say Dossier-Etudiants.woa/wa but in the properties you didn't put the /wa … For WOCommunity.org, I use: RewriteRule ^/page(.*)$ /apps/WebObjects/WOCommunityPublic.woa/wa$1 [PT,L] Properties: er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/WOCommunityPublic.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/page So everything matches. And the rewriting won't work with direct connect... What am I doing wrong? thanks Envoyé depuis iCloud Le 11 sep 2012 à 02:33, Raymond NANEON a écrit : Thanks to Pascal and Adalbert for them reactivity. I go to see wocommunity slide to fix my problem. Ray Envoyé depuis iCloud Le 11 sep 2012 à 02:20, Pascal Robert a écrit : http://fr.slideshare.net/wocommunity/errest (page 32) http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder (page 13) http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects Hi List, I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp to http::/myserver/myapp. Which parameter can I use in properties file to change it? Thanks fo
Re: Rewrite WO app URL
Le 2012-09-11 à 10:56, Raymond NANEON a écrit : > Hi Pascal, > > I tried all possibilities but nothing work :( > > apache.conf > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > ... > > RewriteEngine On > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > httpd.conf > > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > webobjects.conf > > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule WebObjects_module modules/mod_WebObjects.so > > ... > > RewriteEngine On > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > > Result : > http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault > > > And you are 100% sure that you are not using direct connect and that the app > is running with Apache, wotaskd and the adaptor? > ===> I don't know it the server is using direct connect. I know if we turn > off wotaskd, all apps continue to work. How can I configue my app to run with > apache? If you can access the app without the app (http://agecanonix-form.utt.fr/cgi-bin/WebObjects/Dossier-Etudiants.woa), Apache and wotaskd are taking care of it. If you can only access it by a special port, it's running on direct connect... > > Thank > Envoyé depuis iCloud > > Le 11 sep 2012 à 05:30, Pascal Robert a écrit : > >> >> Le 2012-09-11 à 08:27, Raymond NANEON a écrit : >> >> > Hi Pascal, >> > >> > I do all changes but nothing works for me. Do you load mod_rewrite.so in >> > your apache conf? >> >> Well, yes or it will not work… And it have to be loaded before the >> WebObjects module. >> >> > apache.conf : >> > >> > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> > [PT,L] >> > >> > Properties : >> > >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Students >> > >> > DirectAction.java : >> > >> > public WOActionResults myDefaultAction() { >> > if (useCasService()) >> > return loginCASPage(); >> > else >> > return loginNoCasPage(null); >> > } >> > >> > Result : >> > http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> And you are 100% sure that you are not using direct connect and that the app >> is running with Apache, wotaskd and the adaptor? >> >> > Envoyé depuis iCloud >> > >> > Le 11 sep 2012 à 05:04, Pascal Robert a écrit : >> > >> >> >> >> Le 2012-09-11 à 07:52, Raymond NANEON a écrit : >> >> >> >> > Hi Pascal, >> >> > >> >> > I followed the wocommunity slide but It doesn't work : >> >> > >> >> > Application.java >> >> > >> >> > public String _rewriteURL(String url){ >> >> > String processedURL = url; >> >> > if(url != null && _replaceApplicationPathPattern != null && >> >> > _replaceApplicationPathReplace != null){ >> >> > processedURL = >> >> > processedURL.replaceFirst(_replaceApplicationPathPattern, >> >> > _replaceApplicationPathReplace); >> >> > } >> >> > return processedURL; >> >> > } >> >> > >> >> > Apache.conf >> >> > >> >> > RewriteEngine On >> >> > RewriteRule ^/Profil(.*)$ >> >> > /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> >> > >> >> > Properties file >> >> > >> >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa >> >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil >> >> > >> >> > In result I have this url : >> >> > http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> >> > instead of it : http://imac-cedre.utt.fr:1242/Profil >> >> >> >> Your rules doesn't match. In Apache you say Dossier-Etudiants.woa/wa but >> >> in the properties you didn't put the /wa … >> >> >> >> For WOCommunity.org, I use: >> >> >> >> RewriteRule ^/page(.*)$ /apps/WebObjects/WOCommunityPublic.woa/wa$1 [PT,L] >> >> >> >> Properties: >> >> >> >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/WOCommunityPublic.woa/wa >> >> er.extensions.ERXApplication.replaceApplicationPath.replace=/page >> >> >> >> So everything matches. And the rewriting won't work with direct connect... >> >> >> >> > What am I doing wrong? >> >> > >> >> > thanks >> >> > Envoyé depuis iCloud >> >> > >> >> > Le 11 sep 2012 à 02:33, Raymond NANEON a écrit : >> >> > >> >> >> Thanks to Pascal and Adalbert for them reactivity. I go to see >> >> >> wocommunity slide to fix my problem. >> >> >> >> >> >> Ray >> >> >> Envoyé depuis iCloud >> >> >> >> >> >> Le 11 sep 2012 à 02:20, Pascal Robert a écrit : >> >> >> >> >> >>> http://fr.slideshare.net/wocommunity/errest (page 32) >> >> >>> >> >> >>> http://fr.slidesh
Rép : Re: Rewrite WO app URL
Hi Pascal,I tried all possibilities but nothing work :(apache.confLoadModule rewrite_module modules/mod_rewrite.soLoadModule WebObjects_module modules/mod_WebObjects.so...RewriteEngine OnRewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]httpd.confLoadModule rewrite_module modules/mod_rewrite.soLoadModule WebObjects_module modules/mod_WebObjects.sowebobjects.confLoadModule rewrite_module modules/mod_rewrite.soLoadModule WebObjects_module modules/mod_WebObjects.so...RewriteEngine OnRewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]Result : http://agecanonix-form.utt.fr:43836/Students/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor?===> I don't know it the server is using direct connect. I know if we turn off wotaskd, all apps continue to work. How can I configue my app to run with apache?ThankEnvoyé depuis iCloudLe 11 sep 2012 à 05:30, Pascal Robert a écrit : Le 2012-09-11 à 08:27, Raymond NANEONa écrit : > Hi Pascal, > > I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf? Well, yes or it will not work… And it have to be loaded before the WebObjects module. > apache.conf : > > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] > > Properties : > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa > er.extensions.ERXApplication.replaceApplicationPath.replace=/Students > > DirectAction.java : > > public WOActionResults myDefaultAction() { > if (useCasService()) > return loginCASPage(); > else > return loginNoCasPage(null); > } > > Result : http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor? > Envoyé depuis iCloud > > Le 11 sep 2012 à 05:04, Pascal Robert a écrit : > >> >> Le 2012-09-11 à 07:52, Raymond NANEON a écrit : >> >> > Hi Pascal, >> > >> > I followed the wocommunity slide but It doesn't work : >> > >> > Application.java >> > >> > public String _rewriteURL(String url){ >> > String processedURL = url; >> > if(url != null && _replaceApplicationPathPattern != null && _replaceApplicationPathReplace != null){ >> > processedURL = processedURL.replaceFirst(_replaceApplicationPathPattern, _replaceApplicationPathReplace); >> > } >> > return processedURL; >> > } >> > >> > Apache.conf >> > >> > RewriteEngine On >> > RewriteRule ^/Profil(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] >> > >> > Properties file >> > >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil >> > >> > In result I have this url : http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault instead of it : http://imac-cedre.utt.fr:1242/Profil >> >> Your rules doesn't match. In Apache you say Dossier-Etudiants.woa/wa but in the properties you didn't put the /wa … >> >> For WOCommunity.org, I use: >> >> RewriteRule ^/page(.*)$ /apps/WebObjects/WOCommunityPublic.woa/wa$1 [PT,L] >> >> Properties: >> >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/WOCommunityPublic.woa/wa >> er.extensions.ERXApplication.replaceApplicationPath.replace=/page >> >> So everything matches. And the rewriting won't work with direct connect... >> >> > What am I doing wrong? >> > >> > thanks >> > Envoyé depuis iCloud >> > >> > Le 11 sep 2012 à 02:33, Raymond NANEON a écrit : >> > >> >> Thanks to Pascal and Adalbert for them reactivity. I go to see wocommunity slide to fix my problem. >> >> >> >> Ray >> >> Envoyé depuis iCloud >> >> >> >> Le 11 sep 2012 à 02:20, Pascal Robert a écrit : >> >> >> >>> http://fr.slideshare.net/wocommunity/errest (page 32) >> >>> >> >>> http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder (page 13) >> >>> >> >>> http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects >> >>> >> >>> > Hi List, >> >>> > >> >>> > I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp to http::/myserver/myapp. Which parameter can I use in properties file to change it? >> >>> > >> >>> > Thanks for your help. >> >>> > Envoyé depuis iCloud >> >>> > ___ >> >>> > Do not post admin requests to the list. They will be ignored. >> >>> > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> >>> > Help/Unsubscribe/Update your Subscription: >> >>> > https://lists.apple.com/mailman/o
Re: Rewrite WO app URL
Le 2012-09-11 à 08:27, Raymond NANEON a écrit : > Hi Pascal, > > I do all changes but nothing works for me. Do you load mod_rewrite.so in your > apache conf? Well, yes or it will not work… And it have to be loaded before the WebObjects module. > apache.conf : > > RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > Properties : > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/wa > er.extensions.ERXApplication.replaceApplicationPath.replace=/Students > > DirectAction.java : > > public WOActionResults myDefaultAction() { > if (useCasService()) > return loginCASPage(); > else > return loginNoCasPage(null); > } > > Result : > http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault And you are 100% sure that you are not using direct connect and that the app is running with Apache, wotaskd and the adaptor? > Envoyé depuis iCloud > > Le 11 sep 2012 à 05:04, Pascal Robert a écrit : > >> >> Le 2012-09-11 à 07:52, Raymond NANEON a écrit : >> >> > Hi Pascal, >> > >> > I followed the wocommunity slide but It doesn't work : >> > >> > Application.java >> > >> > public String _rewriteURL(String url){ >> > String processedURL = url; >> > if(url != null && _replaceApplicationPathPattern != null && >> > _replaceApplicationPathReplace != null){ >> > processedURL = processedURL.replaceFirst(_replaceApplicationPathPattern, >> > _replaceApplicationPathReplace); >> > } >> > return processedURL; >> > } >> > >> > Apache.conf >> > >> > RewriteEngine On >> > RewriteRule ^/Profil(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 >> > [PT,L] >> > >> > Properties file >> > >> > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa >> > er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil >> > >> > In result I have this url : >> > http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault >> > instead of it : http://imac-cedre.utt.fr:1242/Profil >> >> Your rules doesn't match. In Apache you say Dossier-Etudiants.woa/wa but in >> the properties you didn't put the /wa … >> >> For WOCommunity.org, I use: >> >> RewriteRule ^/page(.*)$ /apps/WebObjects/WOCommunityPublic.woa/wa$1 [PT,L] >> >> Properties: >> >> er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/WOCommunityPublic.woa/wa >> er.extensions.ERXApplication.replaceApplicationPath.replace=/page >> >> So everything matches. And the rewriting won't work with direct connect... >> >> > What am I doing wrong? >> > >> > thanks >> > Envoyé depuis iCloud >> > >> > Le 11 sep 2012 à 02:33, Raymond NANEON a écrit : >> > >> >> Thanks to Pascal and Adalbert for them reactivity. I go to see >> >> wocommunity slide to fix my problem. >> >> >> >> Ray >> >> Envoyé depuis iCloud >> >> >> >> Le 11 sep 2012 à 02:20, Pascal Robert a écrit : >> >> >> >>> http://fr.slideshare.net/wocommunity/errest (page 32) >> >>> >> >>> http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder >> >>> (page 13) >> >>> >> >>> http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects >> >>> >> >>> > Hi List, >> >>> > >> >>> > I want to rewrite my new app url >> >>> > http://myserver/cgi-bin/WebObjects/myapp to http::/myserver/myapp. >> >>> > Which parameter can I use in properties file to change it? >> >>> > >> >>> > Thanks for your help. >> >>> > Envoyé depuis iCloud >> >>> > ___ >> >>> > Do not post admin requests to the list. They will be ignored. >> >>> > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> >>> > Help/Unsubscribe/Update your Subscription: >> >>> > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >> >>> > >> >>> > This email sent to prob...@macti.ca >> >>> >> >> ___ >> >> Do not post admin requests to the list. They will be ignored. >> >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> >> Help/Unsubscribe/Update your Subscription: >> >> https://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com >> >> >> >> This email sent to rnan...@me.com >> ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Rép : Re: Rewrite WO app URL
Hi Pascal,I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf?apache.conf : RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]Properties :er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa/waer.extensions.ERXApplication.replaceApplicationPath.replace=/StudentsDirectAction.java :public WOActionResults myDefaultAction() { if (useCasService()) return loginCASPage(); else return loginNoCasPage(null); }Result : http://agecanonix-form.utt.fr:40840/Students/myDefault/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefaultEnvoyé depuis iCloudLe 11 sep 2012 à 05:04, Pascal Robert a écrit : Le 2012-09-11 à 07:52, Raymond NANEONa écrit : > Hi Pascal, > > I followed the wocommunity slide but It doesn't work : > > Application.java > > public String _rewriteURL(String url){ > String processedURL = url; > if(url != null && _replaceApplicationPathPattern != null && _replaceApplicationPathReplace != null){ > processedURL = processedURL.replaceFirst(_replaceApplicationPathPattern, _replaceApplicationPathReplace); > } > return processedURL; > } > > Apache.conf > > RewriteEngine On > RewriteRule ^/Profil(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L] > > Properties file > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa > er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil > > In result I have this url : http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault instead of it : http://imac-cedre.utt.fr:1242/Profil Your rules doesn't match. In Apache you say Dossier-Etudiants.woa/wa but in the properties you didn't put the /wa … For WOCommunity.org, I use: RewriteRule ^/page(.*)$ /apps/WebObjects/WOCommunityPublic.woa/wa$1 [PT,L] Properties: er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/WOCommunityPublic.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/page So everything matches. And the rewriting won't work with direct connect... > What am I doing wrong? > > thanks > Envoyé depuis iCloud > > Le 11 sep 2012 à 02:33, Raymond NANEON a écrit : > >> Thanks to Pascal and Adalbert for them reactivity. I go to see wocommunity slide to fix my problem. >> >> Ray >> Envoyé depuis iCloud >> >> Le 11 sep 2012 à 02:20, Pascal Robert a écrit : >> >>> http://fr.slideshare.net/wocommunity/errest (page 32) >>> >>> http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder (page 13) >>> >>> http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects >>> >>> > Hi List, >>> > >>> > I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp to http::/myserver/myapp. Which parameter can I use in properties file to change it? >>> > >>> > Thanks for your help. >>> > Envoyé depuis iCloud >>> > ___ >>> > Do not post admin requests to the list. They will be ignored. >>> > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> > Help/Unsubscribe/Update your Subscription: >>> > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >>> > >>> > This email sent to prob...@macti.ca >>> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com >> >> This email sent to rnan...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Rewrite WO app URL
Le 2012-09-11 à 07:52, Raymond NANEON a écrit : > Hi Pascal, > > I followed the wocommunity slide but It doesn't work : > > Application.java > > public String _rewriteURL(String url){ > String processedURL = url; > if(url != null && _replaceApplicationPathPattern != null && > _replaceApplicationPathReplace != null){ > processedURL = > processedURL.replaceFirst(_replaceApplicationPathPattern, > _replaceApplicationPathReplace); > } > return processedURL; > } > > Apache.conf > > RewriteEngine On > RewriteRule ^/Profil(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 > [PT,L] > > Properties file > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woa > er.extensions.ERXApplication.replaceApplicationPath.replace=/Profil > > In result I have this url : > http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault > instead of it : http://imac-cedre.utt.fr:1242/Profil Your rules doesn't match. In Apache you say Dossier-Etudiants.woa/wa but in the properties you didn't put the /wa … For WOCommunity.org, I use: RewriteRule ^/page(.*)$ /apps/WebObjects/WOCommunityPublic.woa/wa$1 [PT,L] Properties: er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/WOCommunityPublic.woa/wa er.extensions.ERXApplication.replaceApplicationPath.replace=/page So everything matches. And the rewriting won't work with direct connect... > What am I doing wrong? > > thanks > Envoyé depuis iCloud > > Le 11 sep 2012 à 02:33, Raymond NANEON a écrit : > >> Thanks to Pascal and Adalbert for them reactivity. I go to see wocommunity >> slide to fix my problem. >> >> Ray >> Envoyé depuis iCloud >> >> Le 11 sep 2012 à 02:20, Pascal Robert a écrit : >> >>> http://fr.slideshare.net/wocommunity/errest (page 32) >>> >>> http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder >>> (page 13) >>> >>> http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects >>> >>> > Hi List, >>> > >>> > I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp >>> > to http::/myserver/myapp. Which parameter can I use in properties file to >>> > change it? >>> > >>> > Thanks for your help. >>> > Envoyé depuis iCloud >>> > ___ >>> > Do not post admin requests to the list. They will be ignored. >>> > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> > Help/Unsubscribe/Update your Subscription: >>> > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >>> > >>> > This email sent to prob...@macti.ca >>> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com >> >> This email sent to rnan...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Rép : Re: Rewrite WO app URL
Hi Pascal,I followed the wocommunity slide but It doesn't work :Application.java public String _rewriteURL(String url){ String processedURL = url; if(url != null && _replaceApplicationPathPattern != null && _replaceApplicationPathReplace != null){ processedURL = processedURL.replaceFirst(_replaceApplicationPathPattern, _replaceApplicationPathReplace); } return processedURL; }Apache.confRewriteEngine OnRewriteRule ^/Profil(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]Properties file er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/Dossier-Etudiants.woaer.extensions.ERXApplication.replaceApplicationPath.replace=/ProfilIn result I have this url : http://imac-cedre.utt.fr:1242/Profil/wa/myDefault/Dossier/Dossier/Dossier/Dossier/Dossier-Etudiants.woa/wa/myDefault instead of it : http://imac-cedre.utt.fr:1242/ProfilWhat am I doing wrong?thanksEnvoyé depuis iCloudLe 11 sep 2012 à 02:33, Raymond NANEON a écrit :Thanks to Pascal and Adalbert for them reactivity. I go to see wocommunity slide to fix my problem.RayEnvoyé depuis iCloudLe 11 sep 2012 à 02:20, Pascal Robert a écrit :http://fr.slideshare.net/wocommunity/errest (page 32) http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder (page 13) http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects > Hi List, > > I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp to http::/myserver/myapp. Which parameter can I use in properties file to change it? > > Thanks for your help. > Envoyé depuis iCloud > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca > > This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com This email sent to rnan...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Rép : Re: Rewrite WO app URL
Thanks to Pascal and Adalbert for them reactivity. I go to see wocommunity slide to fix my problem.RayEnvoyé depuis iCloudLe 11 sep 2012 à 02:20, Pascal Robert a écrit :http://fr.slideshare.net/wocommunity/errest (page 32) http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder (page 13) http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects > Hi List, > > I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp to http::/myserver/myapp. Which parameter can I use in properties file to change it? > > Thanks for your help. > Envoyé depuis iCloud > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca > > This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Rewrite WO app URL
http://fr.slideshare.net/wocommunity/errest (page 32) http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder (page 13) http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects > Hi List, > > I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp to > http::/myserver/myapp. Which parameter can I use in properties file to change > it? > > Thanks for your help. > Envoyé depuis iCloud > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca > > This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Rewrite WO app URL
Try it with "WOAdaptorURL" On 11.09.12 11:09, Raymond NANEON wrote: Hi List, I want to rewrite my new app url *http://myserver/cgi-bin/WebObjects/myapp* to *http::/myserver/myapp*. Which parameter can I use in properties file to change it? Thanks for your help. Envoyé depuis iCloud ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/adalbert%40helios.de This email sent to adalb...@helios.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com