我需要帮助解决一个问题。在别人抱怨之前。我在另一个论坛上发表了同样的问题,但是我没有得到任何有用的帮助。https://community.oracle.com/tech/developers/discussion/4497783
我已经看到了很多事情,如果我搜索谷歌,但我是一个完全的新手,所以我希望有人能帮助我。
我有一个专用的服务器,运行着顶级服务器。到目前为止,我已经将域指向了我的顶级应用程序,非常好。
现在我有了类似于下面名称/r/申请的url
我想要做的是,用户在使用应用程序时,不会看到这个部件“/ to /工作区_name/r”。
有什么相对简单的方法吗?有点像.htaccess?
非常感谢和问候,
安德烈亚斯
发布于 2022-04-29 10:31:48
使用Apache服务器反向代理您的APEX连接,您可以使用ProxyPass
和ProxyPassReverse
mod_proxy
模块的指令来更改用户看到的mod_proxy
路径:
ProxyPass /r /apex/workspace_name/r
ProxyPassReverse /r /apex/workspace_name/r
有关详细信息,请参阅Apache文档:proxy.html#proxypass
在我的示例中,我使用mod_proxy_ajp模块与运行ORDS的Tomcat应用程序服务器集群进行通信,如下所示:
#######################################################
#
# APEX Virtual Host
#
#######################################################
<VirtualHost 192.168.1.101:443>
# General setup for the virtual host
DocumentRoot "/var/www/html"
ServerName apps.mydomain.com
ServerAdmin root@localhost
ErrorLog "/etc/httpd/logs/apex.ssl_error.log"
# Redirect root URL to a default application
RedirectMatch ^/$ /ords/f?p=200
... other directives here ...
<IfModule mod_proxy_ajp.c>
ProxyRequests Off
ProxyPreserveHost On
<Proxy balancer://ords_balancer>
BalancerMember ajp://appserver1:8009 route=server1
BalancerMember ajp://appserver2:8009 route=server2
</Proxy>
# Redirect /ords to the load balancer
ProxyPass /ords balancer://ords_balancer/ords stickysession=JSESSIONID|jsessionid
ProxyPassReverse /ords balancer://ords_balancer/ords
ProxyPassReverseCookiePath /ords /
# Redirect /i to the load balancer
ProxyPass /i balancer://ords_balancer/i stickysession=JSESSIONID|jsessionid
ProxyPassReverse /i balancer://ords_balancer/i
<Proxy *>
Order deny,allow
Deny from none
Allow from localhost
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
</Location>
</IfModule>
</VirtualHost>
https://stackoverflow.com/questions/72044436
复制相似问题