Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Virtual hosts and rewrite rule

734859Nov 16 2009 — edited Nov 16 2009
I've got Oracle portal with several virtual hosts setup.

<VirtualHost *:7778>
ServerName hosta
Port 80
ServerAdmin you@your.address
RewriteEngine On
RewriteOptions inherit
OssoIpCheck off
ErrorLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/hosta_error_log 43200"
CustomLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/hosta_access_log 43200" common
RewriteRule ^/$ /portal/page/portal/bmi/hosta/$1 [PT,L]
</VirtualHost>

<VirtualHost *:7778>
ServerName hostb
Port 80
ServerAdmin you@your.address
RewriteEngine On
RewriteOptions inherit
OssoIpCheck off
ErrorLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/www.jafabu.co.uk_error_log 43200"
CustomLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/www.jafabu.co.uk_access_log 43200" common
RewriteRule ^/?$ /portal/page/portal/pdg/hostb/$1 [PT,L]
</VirtualHost>


This doesn't match any of the pages I have in the two pagegrooups - "HostA" and "HostB".

If I try RewriteRule ^/(..*)$ /portal/page/portal/pdg/hostb/$1 [PT,L], then Portal reports back about there being a problem and promptly dies.

How do I allow http://hosta/ being a different hpome page to http://hostb/ and allow any pages to be referenced without Portal crashing ??? I dont want to add a new rewrite page for avery page my developers add in....

Thanks

Kev
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2009
Added on Nov 16 2009
1 comment
993 views