English 中文(简体)
• 绘制阿帕奇和托马托卡之间的URL地图,使用 mo-jk
原标题:Mapping a URL between Apache and Tomcat, using mod_jk

我使用<代码>Apache/2.2.14和Apache Tomcat/6.0.29,载于Ubuntu服务器 10.04.3 LTS

这是我的<代码>jk.conf:

JkWorkersFile /etc/libapache2-mod-jk/workers.properties
JkMount       /portal/* worker1
JkLogLevel    debug
JkMountCopy   All

这是我的<编码>工作人。

ps=/

# Define 1 real worker named worker1
worker.list=worker1

# Set properties for worker named worker1 to use ajp13 protocol,
# and run on port 8009
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

问题是,当我试图通过一个Pache进入散射线时:,即:

13:39:30,683 INFO  [PortalImpl:3829] Current URL /portal/ generates exception: null

如果我对工人使用不同的最高点,问题就会消失:

JkMount       /portal/* worker1

但是,这迫使我可以在这里访问我的门别类:,我不想这样做。

是否有任何办法用<代码>mod-jk重写URL?

最佳回答

如果你只是使用 mo子,而不是 mo子......,你就可以ski。

ProxyPass /foo http://localhost:8080/bar
ProxyPassReverse /foo http://localhost:8080/bar

This will proxy /foo to local server URL /bar running on port 8080.

问题回答

暂无回答




相关问题
URL rewrite in IIS6 - Third party tools

I have collected the following api/sdk/whatever which provide modules for doing url rewriting in IIS 5/6/7. Some are free-open source and some require $. I haven t tried any of them. I would like to ...

Rewrite spring-security redirect URLs

I m trying to get Tuckey UrlRewriteFilter to tidy up URLs for my webapp. One problem I ve got is that when spring-security notices that an anonymous user is trying to access a protected resource it ...

ASP.NET Friendly URLs

In my research, I found 2 ways to do them. Both required modifications to the Application_BeginRequest procedure in the Global.Asax, where you would run your code to do the actual URL mapping (mine ...

Could I get by HttpModule the URL that contains * before?

My web-site is working under ASP.NET 3.5, IIS7, Integrated pipiline mode. My HttpModule is getting request to all resources, including URLs like this: http://my-site.com/address And I would support *...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

URL Mod-Rewrite

I currently have a working URL: http://example.com/security-services.php?service=fixed-camera-surveillance and then I have PHP say, $_REQUEST[ service ] to do some stuff... But I d like to ...

热门标签