I'm running 3 resin servers in a hardware load balanced configuration
that are configured to also run some quercus php apps and a number of
virtual hosts
In our halls of residence I've set up a restricted network our students
connect to by default. In order to gain access to "the internet" they
have to do a few things, ( apply windows updates, configure their
machine for 802.1x authentication etc..). If a user is on this
restricted network our dhcp server hands out the IP address associated
with a dns redirector program. This prog will either pass dns requests
to our real dns servers or hand back a fixed ip address. I've got it
configured so that it resolves any requests for windows update related
sites and hands back the load balanced ip address of my resin cluster.
When used in conjunction with a few firewall rules it means that
whatever http/s host the client machine tries to access gets redirected
to the default-server I've got configured in resin. What the user sees
is a web page saying "you are connected to a restricted network
etc.."
This all works just fine, except for the fact that I'm now seeing lots
of log entries of the form shown below. The file not found iis correct,
its not on our server because of the dns redirector.
Any way of sending back a valid "Not Found" code instead of this?
Suppose talking the quercus config out of resin-web.xml and putting it
into the webapp would cut things down a bit. Any other way?
Alex
javax.servlet.ServletException: java.io.FileNotFoundException:
/usr/web/default-server/VeohTV/campaignServer.php
[00:22:42.144] at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:29
6)
[00:22:42.144] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
[00:22:42.144] at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai
n.java:106)
[00:22:42.144] at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:
207)
[00:22:42.144] at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja
va:173)
[00:22:42.144] at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j
ava:229)
[00:22:42.144] at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[00:22:42.144] at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
[00:22:42.144] at
com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
[00:22:42.144] at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[00:22:42.144] at java.lang.Thread.run()V(Unknown Source)
[00:22:42.144] Caused by: java.io.FileNotFoundException:
/usr/web/default-server/VeohTV/campaignServer.php
[00:22:42.144] at
com.caucho.vfs.JniFilePathImpl.openReadImpl(JniFilePathImpl.java:338)
[00:22:42.144] at com.caucho.vfs.Path.openRead(Path.java:934)
[00:22:42.144] at
com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:284)
[00:22:42.144] at
com.caucho.quercus.page.PageManager.parse(PageManager.java:201)
[00:22:42.144] at
com.caucho.quercus.page.PageManager.parse(PageManager.java:180)
[00:22:42.144] at com.caucho.quercus.Quercus.parse(Quercus.java:546)
[00:22:42.144] at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:21
7)*
To view the terms under which this email is distributed, please go to
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest