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!

URGENT - How to deny access to an application location in OHS?

999207Mar 26 2013 — edited Mar 26 2013
Dear Gurus,

We want to restrict the access using the External Hostname to the location "/opa46", but allow the access using the Local hostname. How can we achieve this in OHS httpd.conf?

Like:
Deny => http://www.rdconc.com/opa46/test.htm
Allow => http://ocasp/opa46/test.htm



We tried below configuration, but it didn't work.

<Location /opa46>
Order allow,deny
Allow from All
AllowOverride None
# Redirect if not on desired VirtualHost, including upper/lower case attempts:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.rdconc\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^.rdconc\.com [NC]
RewriteRule ^/(.*) http://www.rdconc.com/error.htm [R]
</Location>

Please kindly help.

Many thanks in advance.

Regards,

Tony

Edited by: 996204 on 2013-3-26 上午4:25
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2013
Added on Mar 26 2013
4 comments
640 views