Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] use of MovedContextHandler to remove "www."

I'm trying to make all connections use at my site using:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "">

<Configure class="org.eclipse.jetty.server.handler.MovedContextHandler">
  <Set name="contextPath">/</Set>
  <Set name="newContextURL"></Set>
  <Set name="permanent">true</Set>
  <Set name="discardPathInfo">false</Set>
  <Set name="discardQuery">false</Set>

But even though this class is in jetty-server-9.2.10.v20150310.jar I don't know where to put this xml file in jetty.base so it gets used?  If I just add it to my command line my site fails it loads up then doesn't work

My goal is to make the url start with regardless of the way the user got to the host (e.g., and so on).


Back to the top