|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi
I have apache configured with caucho resin - essentially this means I can access my applications on resin (e.g. port 8081) via the apache web server. For example - i can get to http://MyHost/MyApplication? parm1=xxx&parm2=yyy However, I want to be able to have URLs on my site that are http://MyHost/MyRoot/MyApplication/xxx/yyy Now, I have my rewriteRules firing OK in so far as it splits up the url nicely into the parameters - the above generates the following in the logs: (3) applying pattern '^/MyRoot/([^/\.]+)/([^/\.]+)/([^/\.]+)$' to uri '/MyRoot/MyApplication?/xxx/yyy' (2) rewrite /MyRoot/xxx/yyy -> /MyRoot/MyApplication? parm1=xxx&parm2=yyy (3) split uri=/MyRoot/MyApplication?parm1=xxx&parm2=yyy -> uri=/MyRoot/ MyApplication, args=parm1=xxx&parm2=yyy (2) local path result: /MyRoot/MyApplication (2) prefixed with document_root to /var/apache2/htdocs/MyRoot/ MyApplication BUT this doesn't work for me because this isn't a "local" path but a web-app on effectively the same server. There is no file at the document_root location - but there is a uri available at /MyRoot/ MyApplication if only the rewrite wouldn't put the document_root on. It seems like there must be a resolution to this... Thanks |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"bunster" <mark.debunnier@gmail.com> schreef in bericht
news:1170638922.835989.143260@p10g2000cwp.googlegr oups.com... > I have apache configured with caucho resin - essentially this means I > can access my applications on resin (e.g. port 8081) via the apache > web server. For example - i can get to http://MyHost/MyApplication? > parm1=xxx&parm2=yyy > > However, I want to be able to have URLs on my site that are > http://MyHost/MyRoot/MyApplication/xxx/yyy > > (2) prefixed with document_root to /var/apache2/htdocs/MyRoot/ > MyApplication > BUT this doesn't work for me because this isn't a "local" path but a > web-app on effectively the same server. > Looks like should be a proxiing rewrite. Drop your rewriterule((s) and condition(s)) too. HansH |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On 5 Feb, 02:11, "HansH" <h...@invalid.invalid> wrote:
> "bunster" <mark.debunn...@gmail.com> schreef in berichtnews:1170638922.835989.143260@p10g2000cwp.g ooglegroups.com...> I have apache configured with caucho resin - essentially this means I > > can access my applications on resin (e.g. port 8081) via the apache > > web server. For example - i can get tohttp://MyHost/MyApplication? > > parm1=xxx&parm2=yyy > > > However, I want to be able to have URLs on my site that are > >http://MyHost/MyRoot/MyApplication/xxx/yyy > > > (2) prefixed with document_root to /var/apache2/htdocs/MyRoot/ > > MyApplication > > BUT this doesn't work for me because this isn't a "local" path but a > > web-app on effectively the same server. > > Looks like should be a proxiing rewrite. > Drop your rewriterule((s) and condition(s)) too. > > HansH Proxiing rewrite sounds good - how do I do that? (other then by removing my rewrite rules) |
|
![]() |
| Outils de la discussion | |
|
|