You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Murat Yücel <ko...@gmail.com> on 2007/11/09 11:56:46 UTC

Wicket behind a front-end proxy

Hi All

I have looked at this article:
http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html

and it seems like the problem should be gone in wicket 1.3 but it
isnt. I still get 404
errors. There is a warning on the wiki page: "Don't use setContextPath
with Wicket 1.3".

I am not setting the context path. Instead i am using filter-mapping.
Is this the same thing?

    <filter-mapping>
        <filter-name>wicket</filter-name>
        <!-- The app is needed for ajax (this is a known
limitation/bug in wicket) -->
        <url-pattern>/app/*</url-pattern>
    </filter-mapping>

Do you have a workaround for this issue or am i doing something wrong?
I am currently running 1.3-beta4.

Kind regards

/Murat Yücel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Murat Yücel <ko...@gmail.com>.
Hi,

My configuration will just confuse everybody because it is too big.
The best solution is just to follow the instruction on the wiki page.

If it is not enough then you have a some basic configuration here:

NameVirtualHost *:80

<VirtualHost *:80>
  ServerAlias   wicket

  DocumentRoot  /var/www/wicket

  <IfModule mod_proxy.c>
    ProxyPass / http://127.0.0.1:9090/wicket/
    ProxyPassReverse / http://127.0.0.1:9090/wicket/
    ProxyPassReverseCookiePath /wicket /
  </IfModule>
</VirtualHost>


<VirtualHost *:80>
  ServerAlias   mydomain

  DocumentRoot  /var/www/mydomain

  <IfModule mod_proxy.c>
    ProxyPass / http://127.0.0.1:8080/mydomain/
    ProxyPassReverse / http://127.0.0.1:8080/mydomain/
    ProxyPassReverseCookiePath /mydomain /
  </IfModule>
</VirtualHost>

Hope that it helps others

/Murat

2007/12/7, Jeremy Levy <je...@gmail.com>:
> Murat,
>
> Can you post the error in your configuration?
>
> J
>
> On Dec 7, 2007 4:55 AM, Murat Yücel <ko...@gmail.com> wrote:
>
> > Hi All
> >
> > Sorry for given such a late response, but Al Maw was right. This is
> > supported by wicket.
> > My apache configuration was wrong. Niels it has nothing to do with web
> > seal.
> >
> > /Murat
> >
> > It has nothing to do
> >
> > 2007/11/18, Niels Bo <ni...@gmail.com>:
> > >
> > > Hi Murat!
> > >
> > > If you are running behind a WebSeal proxy, just configure the junction
> > as
> > > "transparent" and
> > > deploy your application with the same context-root as the junction name.
> > > Then you can run like:
> > >
> > > myserver1.xxx.com:80/myapp1 -> localhost:8080/myapp1
> > >
> > > The "transparent" setting means that the proxy will not try to parse the
> > > html and try
> > > to "fix" any server-relative url contained in you pages.
> > >
> > > Best Regards
> > > Niels Bo
> > >
> > >
> > > Murat Yücel-2 wrote:
> > > >
> > > > It seems like wicket doesnt support it, because there is no workaround
> > > > on the link that
> > > > Frank Bille send. There is only information about that this is a
> > problem.
> > > >
> > > > /Murat
> > > >
> > > > 2007/11/9, Johan Compagner <jc...@gmail.com>:
> > > >> so we dont support this currently?
> > > >>
> > > >> myserver1.xxx.com:80 -> localhost:8080/myapp1
> > > >> myserver2.xxx.com:80 -> localhost:8080/myapp2
> > > >>
> > > >> johan
> > > >>
> > > >>
> > > >> On Nov 9, 2007 1:35 PM, Frank Bille <fr...@apache.org> wrote:
> > > >>
> > > >> > Read this again:
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > > >> >
> > > >> > Frank
> > > >> >
> > > >> >  On Nov 9, 2007 1:26 PM, Murat Yücel <ko...@gmail.com>
> > wrote:
> > > >> >
> > > >> > > Hi Frank
> > > >> > >
> > > >> > > I have substituted my projectname with wicket. Below is the conf
> > for
> > > >> > > the proxy part.
> > > >> > >
> > > >> > > <VirtualHost *>
> > > >> > >       ServerAdmin admin@wicket.com
> > > >> > >       ServerName  www.wicket.com
> > > >> > >       ServerAlias wicket.com
> > > >> > >
> > > >> > >       ProxyRequests off
> > > >> > >       ProxyPreserveHost On
> > > >> > >       RewriteEngine On
> > > >> > >
> > > >> > >       # Indexes + Directory Root.
> > > >> > >       DirectoryIndex index.html
> > > >> > >       DocumentRoot /var/wicket.com
> > > >> > >
> > > >> > >       # Logfiles
> > > >> > >       ErrorLog  /var/log/apache2/wicket-error.log
> > > >> > >       CustomLog /var/log/apache2/wicket-access.log combined
> > > >> > >
> > > >> > >       ProxyPass / http://127.0.0.1:8080/wicket/
> > > >> > >       ProxyPassReverse / http://127.0.0.1:8080/wicket/
> > > >> > >
> > > >> > >       ProxyPreserveHost On
> > > >> > > </VirtualHost>
> > > >> > >
> > > >> > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > >> > > > Sounds weird.
> > > >> > > >
> > > >> > > > Can you show me your apache conf for the proxy?
> > > >> > > >
> > > >> > > > Frank
> > > >> > > >
> > > >> > > > On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com>
> > > >> wrote:
> > > >> > > >
> > > >> > > > > Hi Frank
> > > >> > > > >
> > > >> > > > > I have changed the /app/* to /* but it doesnt change the
> > urls.
> > > >> They
> > > >> > > > > are still wrong.
> > > >> > > > > For example i enter the following url:
> > > >> > > > > www.wicket.com
> > > >> > > > >
> > > >> > > > > The url is transformed to
> > > >> > > > >
> > > >> >
> > www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
> > > >> > > > >
> > > >> > > > > If i remove the the wicket part from the url then i can see
> > the
> > > >> > login
> > > >> > > > > page. But if i click
> > > >> > > > > on a link then the wicket part is appended again.
> > > >> > > > >
> > > >> > > > > /Murat
> > > >> > > > >
> > > >> > > > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > >> > > > > > First of all, you don't need /app/* anylonger. just /*.
> > > >> > > > > >
> > > >> > > > > > I'm running behind proxy as well and it works well. Are you
> > > >> sure
> > > >> > you
> > > >> > > > > haven't
> > > >> > > > > > run into this problem:
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > >
> > > >> >
> > > >>
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > > >> > > > > >
> > > >> > > > > > Frank
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > On Nov 9, 2007 11:56 AM, Murat Yücel <
> > kodeperkeren@gmail.com>
> > > >> > wrote:
> > > >> > > > > >
> > > >> > > > > > > Hi All
> > > >> > > > > > >
> > > >> > > > > > > I have looked at this article:
> > > >> > > > > > >
> > > >> > >
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> > > >> > > > > > >
> > > >> > > > > > > and it seems like the problem should be gone in wicket
> > 1.3
> > > >> but
> > > >> > it
> > > >> > > > > > > isnt. I still get 404
> > > >> > > > > > > errors. There is a warning on the wiki page: "Don't use
> > > >> > > setContextPath
> > > >> > > > > > > with Wicket 1.3".
> > > >> > > > > > >
> > > >> > > > > > > I am not setting the context path. Instead i am using
> > > >> > > filter-mapping.
> > > >> > > > > > > Is this the same thing?
> > > >> > > > > > >
> > > >> > > > > > >    <filter-mapping>
> > > >> > > > > > >        <filter-name>wicket</filter-name>
> > > >> > > > > > >        <!-- The app is needed for ajax (this is a known
> > > >> > > > > > > limitation/bug in wicket) -->
> > > >> > > > > > >        <url-pattern>/app/*</url-pattern>
> > > >> > > > > > >    </filter-mapping>
> > > >> > > > > > >
> > > >> > > > > > > Do you have a workaround for this issue or am i doing
> > > >> something
> > > >> > > wrong?
> > > >> > > > > > > I am currently running 1.3-beta4.
> > > >> > > > > > >
> > > >> > > > > > > Kind regards
> > > >> > > > > > >
> > > >> > > > > > > /Murat Yücel
> > > >> > > > > > >
> > > >> > > > > > >
> > > >> > >
> > ---------------------------------------------------------------------
> > > >> > > > > > > To unsubscribe, e-mail:
> > users-unsubscribe@wicket.apache.org
> > > >> > > > > > > For additional commands, e-mail:
> > users-help@wicket.apache.org
> > > >> > > > > > >
> > > >> > > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> >
> > ---------------------------------------------------------------------
> > > >> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> > >
> > ---------------------------------------------------------------------
> > > >> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >> > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >> > >
> > > >> > >
> > > >> >
> > > >>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > http://www.nabble.com/Wicket-behind-a-front-end-proxy-tf4776982.html#a13821932
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Jeremy Levy <je...@gmail.com>.
Murat,

Can you post the error in your configuration?

J

On Dec 7, 2007 4:55 AM, Murat Yücel <ko...@gmail.com> wrote:

> Hi All
>
> Sorry for given such a late response, but Al Maw was right. This is
> supported by wicket.
> My apache configuration was wrong. Niels it has nothing to do with web
> seal.
>
> /Murat
>
> It has nothing to do
>
> 2007/11/18, Niels Bo <ni...@gmail.com>:
> >
> > Hi Murat!
> >
> > If you are running behind a WebSeal proxy, just configure the junction
> as
> > "transparent" and
> > deploy your application with the same context-root as the junction name.
> > Then you can run like:
> >
> > myserver1.xxx.com:80/myapp1 -> localhost:8080/myapp1
> >
> > The "transparent" setting means that the proxy will not try to parse the
> > html and try
> > to "fix" any server-relative url contained in you pages.
> >
> > Best Regards
> > Niels Bo
> >
> >
> > Murat Yücel-2 wrote:
> > >
> > > It seems like wicket doesnt support it, because there is no workaround
> > > on the link that
> > > Frank Bille send. There is only information about that this is a
> problem.
> > >
> > > /Murat
> > >
> > > 2007/11/9, Johan Compagner <jc...@gmail.com>:
> > >> so we dont support this currently?
> > >>
> > >> myserver1.xxx.com:80 -> localhost:8080/myapp1
> > >> myserver2.xxx.com:80 -> localhost:8080/myapp2
> > >>
> > >> johan
> > >>
> > >>
> > >> On Nov 9, 2007 1:35 PM, Frank Bille <fr...@apache.org> wrote:
> > >>
> > >> > Read this again:
> > >> >
> > >> >
> > >> >
> > >>
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > >> >
> > >> > Frank
> > >> >
> > >> >  On Nov 9, 2007 1:26 PM, Murat Yücel <ko...@gmail.com>
> wrote:
> > >> >
> > >> > > Hi Frank
> > >> > >
> > >> > > I have substituted my projectname with wicket. Below is the conf
> for
> > >> > > the proxy part.
> > >> > >
> > >> > > <VirtualHost *>
> > >> > >       ServerAdmin admin@wicket.com
> > >> > >       ServerName  www.wicket.com
> > >> > >       ServerAlias wicket.com
> > >> > >
> > >> > >       ProxyRequests off
> > >> > >       ProxyPreserveHost On
> > >> > >       RewriteEngine On
> > >> > >
> > >> > >       # Indexes + Directory Root.
> > >> > >       DirectoryIndex index.html
> > >> > >       DocumentRoot /var/wicket.com
> > >> > >
> > >> > >       # Logfiles
> > >> > >       ErrorLog  /var/log/apache2/wicket-error.log
> > >> > >       CustomLog /var/log/apache2/wicket-access.log combined
> > >> > >
> > >> > >       ProxyPass / http://127.0.0.1:8080/wicket/
> > >> > >       ProxyPassReverse / http://127.0.0.1:8080/wicket/
> > >> > >
> > >> > >       ProxyPreserveHost On
> > >> > > </VirtualHost>
> > >> > >
> > >> > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > >> > > > Sounds weird.
> > >> > > >
> > >> > > > Can you show me your apache conf for the proxy?
> > >> > > >
> > >> > > > Frank
> > >> > > >
> > >> > > > On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com>
> > >> wrote:
> > >> > > >
> > >> > > > > Hi Frank
> > >> > > > >
> > >> > > > > I have changed the /app/* to /* but it doesnt change the
> urls.
> > >> They
> > >> > > > > are still wrong.
> > >> > > > > For example i enter the following url:
> > >> > > > > www.wicket.com
> > >> > > > >
> > >> > > > > The url is transformed to
> > >> > > > >
> > >> >
> www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
> > >> > > > >
> > >> > > > > If i remove the the wicket part from the url then i can see
> the
> > >> > login
> > >> > > > > page. But if i click
> > >> > > > > on a link then the wicket part is appended again.
> > >> > > > >
> > >> > > > > /Murat
> > >> > > > >
> > >> > > > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > >> > > > > > First of all, you don't need /app/* anylonger. just /*.
> > >> > > > > >
> > >> > > > > > I'm running behind proxy as well and it works well. Are you
> > >> sure
> > >> > you
> > >> > > > > haven't
> > >> > > > > > run into this problem:
> > >> > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > >
> > >> >
> > >>
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > >> > > > > >
> > >> > > > > > Frank
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > On Nov 9, 2007 11:56 AM, Murat Yücel <
> kodeperkeren@gmail.com>
> > >> > wrote:
> > >> > > > > >
> > >> > > > > > > Hi All
> > >> > > > > > >
> > >> > > > > > > I have looked at this article:
> > >> > > > > > >
> > >> > >
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> > >> > > > > > >
> > >> > > > > > > and it seems like the problem should be gone in wicket
> 1.3
> > >> but
> > >> > it
> > >> > > > > > > isnt. I still get 404
> > >> > > > > > > errors. There is a warning on the wiki page: "Don't use
> > >> > > setContextPath
> > >> > > > > > > with Wicket 1.3".
> > >> > > > > > >
> > >> > > > > > > I am not setting the context path. Instead i am using
> > >> > > filter-mapping.
> > >> > > > > > > Is this the same thing?
> > >> > > > > > >
> > >> > > > > > >    <filter-mapping>
> > >> > > > > > >        <filter-name>wicket</filter-name>
> > >> > > > > > >        <!-- The app is needed for ajax (this is a known
> > >> > > > > > > limitation/bug in wicket) -->
> > >> > > > > > >        <url-pattern>/app/*</url-pattern>
> > >> > > > > > >    </filter-mapping>
> > >> > > > > > >
> > >> > > > > > > Do you have a workaround for this issue or am i doing
> > >> something
> > >> > > wrong?
> > >> > > > > > > I am currently running 1.3-beta4.
> > >> > > > > > >
> > >> > > > > > > Kind regards
> > >> > > > > > >
> > >> > > > > > > /Murat Yücel
> > >> > > > > > >
> > >> > > > > > >
> > >> > >
> ---------------------------------------------------------------------
> > >> > > > > > > To unsubscribe, e-mail:
> users-unsubscribe@wicket.apache.org
> > >> > > > > > > For additional commands, e-mail:
> users-help@wicket.apache.org
> > >> > > > > > >
> > >> > > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > > >
> > >> >
> ---------------------------------------------------------------------
> > >> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> > >
> ---------------------------------------------------------------------
> > >> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >> > >
> > >> > >
> > >> >
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/Wicket-behind-a-front-end-proxy-tf4776982.html#a13821932
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket behind a front-end proxy

Posted by Murat Yücel <ko...@gmail.com>.
Hi All

Sorry for given such a late response, but Al Maw was right. This is
supported by wicket.
My apache configuration was wrong. Niels it has nothing to do with web seal.

/Murat

It has nothing to do

2007/11/18, Niels Bo <ni...@gmail.com>:
>
> Hi Murat!
>
> If you are running behind a WebSeal proxy, just configure the junction as
> "transparent" and
> deploy your application with the same context-root as the junction name.
> Then you can run like:
>
> myserver1.xxx.com:80/myapp1 -> localhost:8080/myapp1
>
> The "transparent" setting means that the proxy will not try to parse the
> html and try
> to "fix" any server-relative url contained in you pages.
>
> Best Regards
> Niels Bo
>
>
> Murat Yücel-2 wrote:
> >
> > It seems like wicket doesnt support it, because there is no workaround
> > on the link that
> > Frank Bille send. There is only information about that this is a problem.
> >
> > /Murat
> >
> > 2007/11/9, Johan Compagner <jc...@gmail.com>:
> >> so we dont support this currently?
> >>
> >> myserver1.xxx.com:80 -> localhost:8080/myapp1
> >> myserver2.xxx.com:80 -> localhost:8080/myapp2
> >>
> >> johan
> >>
> >>
> >> On Nov 9, 2007 1:35 PM, Frank Bille <fr...@apache.org> wrote:
> >>
> >> > Read this again:
> >> >
> >> >
> >> >
> >> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> >> >
> >> > Frank
> >> >
> >> >  On Nov 9, 2007 1:26 PM, Murat Yücel <ko...@gmail.com> wrote:
> >> >
> >> > > Hi Frank
> >> > >
> >> > > I have substituted my projectname with wicket. Below is the conf for
> >> > > the proxy part.
> >> > >
> >> > > <VirtualHost *>
> >> > >       ServerAdmin admin@wicket.com
> >> > >       ServerName  www.wicket.com
> >> > >       ServerAlias wicket.com
> >> > >
> >> > >       ProxyRequests off
> >> > >       ProxyPreserveHost On
> >> > >       RewriteEngine On
> >> > >
> >> > >       # Indexes + Directory Root.
> >> > >       DirectoryIndex index.html
> >> > >       DocumentRoot /var/wicket.com
> >> > >
> >> > >       # Logfiles
> >> > >       ErrorLog  /var/log/apache2/wicket-error.log
> >> > >       CustomLog /var/log/apache2/wicket-access.log combined
> >> > >
> >> > >       ProxyPass / http://127.0.0.1:8080/wicket/
> >> > >       ProxyPassReverse / http://127.0.0.1:8080/wicket/
> >> > >
> >> > >       ProxyPreserveHost On
> >> > > </VirtualHost>
> >> > >
> >> > > 2007/11/9, Frank Bille <fr...@apache.org>:
> >> > > > Sounds weird.
> >> > > >
> >> > > > Can you show me your apache conf for the proxy?
> >> > > >
> >> > > > Frank
> >> > > >
> >> > > > On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com>
> >> wrote:
> >> > > >
> >> > > > > Hi Frank
> >> > > > >
> >> > > > > I have changed the /app/* to /* but it doesnt change the urls.
> >> They
> >> > > > > are still wrong.
> >> > > > > For example i enter the following url:
> >> > > > > www.wicket.com
> >> > > > >
> >> > > > > The url is transformed to
> >> > > > >
> >> > www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
> >> > > > >
> >> > > > > If i remove the the wicket part from the url then i can see the
> >> > login
> >> > > > > page. But if i click
> >> > > > > on a link then the wicket part is appended again.
> >> > > > >
> >> > > > > /Murat
> >> > > > >
> >> > > > > 2007/11/9, Frank Bille <fr...@apache.org>:
> >> > > > > > First of all, you don't need /app/* anylonger. just /*.
> >> > > > > >
> >> > > > > > I'm running behind proxy as well and it works well. Are you
> >> sure
> >> > you
> >> > > > > haven't
> >> > > > > > run into this problem:
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > >
> >> >
> >> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> >> > > > > >
> >> > > > > > Frank
> >> > > > > >
> >> > > > > >
> >> > > > > > On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com>
> >> > wrote:
> >> > > > > >
> >> > > > > > > Hi All
> >> > > > > > >
> >> > > > > > > I have looked at this article:
> >> > > > > > >
> >> > > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> >> > > > > > >
> >> > > > > > > and it seems like the problem should be gone in wicket 1.3
> >> but
> >> > it
> >> > > > > > > isnt. I still get 404
> >> > > > > > > errors. There is a warning on the wiki page: "Don't use
> >> > > setContextPath
> >> > > > > > > with Wicket 1.3".
> >> > > > > > >
> >> > > > > > > I am not setting the context path. Instead i am using
> >> > > filter-mapping.
> >> > > > > > > Is this the same thing?
> >> > > > > > >
> >> > > > > > >    <filter-mapping>
> >> > > > > > >        <filter-name>wicket</filter-name>
> >> > > > > > >        <!-- The app is needed for ajax (this is a known
> >> > > > > > > limitation/bug in wicket) -->
> >> > > > > > >        <url-pattern>/app/*</url-pattern>
> >> > > > > > >    </filter-mapping>
> >> > > > > > >
> >> > > > > > > Do you have a workaround for this issue or am i doing
> >> something
> >> > > wrong?
> >> > > > > > > I am currently running 1.3-beta4.
> >> > > > > > >
> >> > > > > > > Kind regards
> >> > > > > > >
> >> > > > > > > /Murat Yücel
> >> > > > > > >
> >> > > > > > >
> >> > > ---------------------------------------------------------------------
> >> > > > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > > > > > > For additional commands, e-mail: users-help@wicket.apache.org
> >> > > > > > >
> >> > > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > ---------------------------------------------------------------------
> >> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> > > ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > > For additional commands, e-mail: users-help@wicket.apache.org
> >> > >
> >> > >
> >> >
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Wicket-behind-a-front-end-proxy-tf4776982.html#a13821932
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Niels Bo <ni...@gmail.com>.
Hi Murat!

If you are running behind a WebSeal proxy, just configure the junction as
"transparent" and 
deploy your application with the same context-root as the junction name.
Then you can run like:

myserver1.xxx.com:80/myapp1 -> localhost:8080/myapp1

The "transparent" setting means that the proxy will not try to parse the
html and try
to "fix" any server-relative url contained in you pages. 

Best Regards
Niels Bo 
 

Murat Yücel-2 wrote:
> 
> It seems like wicket doesnt support it, because there is no workaround
> on the link that
> Frank Bille send. There is only information about that this is a problem.
> 
> /Murat
> 
> 2007/11/9, Johan Compagner <jc...@gmail.com>:
>> so we dont support this currently?
>>
>> myserver1.xxx.com:80 -> localhost:8080/myapp1
>> myserver2.xxx.com:80 -> localhost:8080/myapp2
>>
>> johan
>>
>>
>> On Nov 9, 2007 1:35 PM, Frank Bille <fr...@apache.org> wrote:
>>
>> > Read this again:
>> >
>> >
>> >
>> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
>> >
>> > Frank
>> >
>> >  On Nov 9, 2007 1:26 PM, Murat Yücel <ko...@gmail.com> wrote:
>> >
>> > > Hi Frank
>> > >
>> > > I have substituted my projectname with wicket. Below is the conf for
>> > > the proxy part.
>> > >
>> > > <VirtualHost *>
>> > >       ServerAdmin admin@wicket.com
>> > >       ServerName  www.wicket.com
>> > >       ServerAlias wicket.com
>> > >
>> > >       ProxyRequests off
>> > >       ProxyPreserveHost On
>> > >       RewriteEngine On
>> > >
>> > >       # Indexes + Directory Root.
>> > >       DirectoryIndex index.html
>> > >       DocumentRoot /var/wicket.com
>> > >
>> > >       # Logfiles
>> > >       ErrorLog  /var/log/apache2/wicket-error.log
>> > >       CustomLog /var/log/apache2/wicket-access.log combined
>> > >
>> > >       ProxyPass / http://127.0.0.1:8080/wicket/
>> > >       ProxyPassReverse / http://127.0.0.1:8080/wicket/
>> > >
>> > >       ProxyPreserveHost On
>> > > </VirtualHost>
>> > >
>> > > 2007/11/9, Frank Bille <fr...@apache.org>:
>> > > > Sounds weird.
>> > > >
>> > > > Can you show me your apache conf for the proxy?
>> > > >
>> > > > Frank
>> > > >
>> > > > On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com>
>> wrote:
>> > > >
>> > > > > Hi Frank
>> > > > >
>> > > > > I have changed the /app/* to /* but it doesnt change the urls.
>> They
>> > > > > are still wrong.
>> > > > > For example i enter the following url:
>> > > > > www.wicket.com
>> > > > >
>> > > > > The url is transformed to
>> > > > >
>> > www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
>> > > > >
>> > > > > If i remove the the wicket part from the url then i can see the
>> > login
>> > > > > page. But if i click
>> > > > > on a link then the wicket part is appended again.
>> > > > >
>> > > > > /Murat
>> > > > >
>> > > > > 2007/11/9, Frank Bille <fr...@apache.org>:
>> > > > > > First of all, you don't need /app/* anylonger. just /*.
>> > > > > >
>> > > > > > I'm running behind proxy as well and it works well. Are you
>> sure
>> > you
>> > > > > haven't
>> > > > > > run into this problem:
>> > > > > >
>> > > > > >
>> > > > >
>> > >
>> >
>> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
>> > > > > >
>> > > > > > Frank
>> > > > > >
>> > > > > >
>> > > > > > On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com>
>> > wrote:
>> > > > > >
>> > > > > > > Hi All
>> > > > > > >
>> > > > > > > I have looked at this article:
>> > > > > > >
>> > > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
>> > > > > > >
>> > > > > > > and it seems like the problem should be gone in wicket 1.3
>> but
>> > it
>> > > > > > > isnt. I still get 404
>> > > > > > > errors. There is a warning on the wiki page: "Don't use
>> > > setContextPath
>> > > > > > > with Wicket 1.3".
>> > > > > > >
>> > > > > > > I am not setting the context path. Instead i am using
>> > > filter-mapping.
>> > > > > > > Is this the same thing?
>> > > > > > >
>> > > > > > >    <filter-mapping>
>> > > > > > >        <filter-name>wicket</filter-name>
>> > > > > > >        <!-- The app is needed for ajax (this is a known
>> > > > > > > limitation/bug in wicket) -->
>> > > > > > >        <url-pattern>/app/*</url-pattern>
>> > > > > > >    </filter-mapping>
>> > > > > > >
>> > > > > > > Do you have a workaround for this issue or am i doing
>> something
>> > > wrong?
>> > > > > > > I am currently running 1.3-beta4.
>> > > > > > >
>> > > > > > > Kind regards
>> > > > > > >
>> > > > > > > /Murat Yücel
>> > > > > > >
>> > > > > > >
>> > > ---------------------------------------------------------------------
>> > > > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > > > > > > For additional commands, e-mail: users-help@wicket.apache.org
>> > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > ---------------------------------------------------------------------
>> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > > > > For additional commands, e-mail: users-help@wicket.apache.org
>> > > > >
>> > > > >
>> > > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > > For additional commands, e-mail: users-help@wicket.apache.org
>> > >
>> > >
>> >
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wicket-behind-a-front-end-proxy-tf4776982.html#a13821932
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Murat Yücel <ko...@gmail.com>.
It seems like wicket doesnt support it, because there is no workaround
on the link that
Frank Bille send. There is only information about that this is a problem.

/Murat

2007/11/9, Johan Compagner <jc...@gmail.com>:
> so we dont support this currently?
>
> myserver1.xxx.com:80 -> localhost:8080/myapp1
> myserver2.xxx.com:80 -> localhost:8080/myapp2
>
> johan
>
>
> On Nov 9, 2007 1:35 PM, Frank Bille <fr...@apache.org> wrote:
>
> > Read this again:
> >
> >
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> >
> > Frank
> >
> >  On Nov 9, 2007 1:26 PM, Murat Yücel <ko...@gmail.com> wrote:
> >
> > > Hi Frank
> > >
> > > I have substituted my projectname with wicket. Below is the conf for
> > > the proxy part.
> > >
> > > <VirtualHost *>
> > >       ServerAdmin admin@wicket.com
> > >       ServerName  www.wicket.com
> > >       ServerAlias wicket.com
> > >
> > >       ProxyRequests off
> > >       ProxyPreserveHost On
> > >       RewriteEngine On
> > >
> > >       # Indexes + Directory Root.
> > >       DirectoryIndex index.html
> > >       DocumentRoot /var/wicket.com
> > >
> > >       # Logfiles
> > >       ErrorLog  /var/log/apache2/wicket-error.log
> > >       CustomLog /var/log/apache2/wicket-access.log combined
> > >
> > >       ProxyPass / http://127.0.0.1:8080/wicket/
> > >       ProxyPassReverse / http://127.0.0.1:8080/wicket/
> > >
> > >       ProxyPreserveHost On
> > > </VirtualHost>
> > >
> > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > > Sounds weird.
> > > >
> > > > Can you show me your apache conf for the proxy?
> > > >
> > > > Frank
> > > >
> > > > On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com> wrote:
> > > >
> > > > > Hi Frank
> > > > >
> > > > > I have changed the /app/* to /* but it doesnt change the urls. They
> > > > > are still wrong.
> > > > > For example i enter the following url:
> > > > > www.wicket.com
> > > > >
> > > > > The url is transformed to
> > > > >
> > www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
> > > > >
> > > > > If i remove the the wicket part from the url then i can see the
> > login
> > > > > page. But if i click
> > > > > on a link then the wicket part is appended again.
> > > > >
> > > > > /Murat
> > > > >
> > > > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > > > > First of all, you don't need /app/* anylonger. just /*.
> > > > > >
> > > > > > I'm running behind proxy as well and it works well. Are you sure
> > you
> > > > > haven't
> > > > > > run into this problem:
> > > > > >
> > > > > >
> > > > >
> > >
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > > > > >
> > > > > > Frank
> > > > > >
> > > > > >
> > > > > > On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com>
> > wrote:
> > > > > >
> > > > > > > Hi All
> > > > > > >
> > > > > > > I have looked at this article:
> > > > > > >
> > > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> > > > > > >
> > > > > > > and it seems like the problem should be gone in wicket 1.3 but
> > it
> > > > > > > isnt. I still get 404
> > > > > > > errors. There is a warning on the wiki page: "Don't use
> > > setContextPath
> > > > > > > with Wicket 1.3".
> > > > > > >
> > > > > > > I am not setting the context path. Instead i am using
> > > filter-mapping.
> > > > > > > Is this the same thing?
> > > > > > >
> > > > > > >    <filter-mapping>
> > > > > > >        <filter-name>wicket</filter-name>
> > > > > > >        <!-- The app is needed for ajax (this is a known
> > > > > > > limitation/bug in wicket) -->
> > > > > > >        <url-pattern>/app/*</url-pattern>
> > > > > > >    </filter-mapping>
> > > > > > >
> > > > > > > Do you have a workaround for this issue or am i doing something
> > > wrong?
> > > > > > > I am currently running 1.3-beta4.
> > > > > > >
> > > > > > > Kind regards
> > > > > > >
> > > > > > > /Murat Yücel
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > >
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Al Maw <wi...@almaw.com>.
Johan Compagner wrote:
> so we dont support this currently?
> 
> myserver1.xxx.com:80 -> localhost:8080/myapp1
> myserver2.xxx.com:80 -> localhost:8080/myapp2

We support that just fine. That, in fact, is most of the reason why 
we're using relative URLs in 1.3.

Murat: I have this working perfectly fine on lots of hosts.

What version of Apache do you have? Don't forget to add the 
ProxyPassReverseCookiePath directive in, or you may have issues with 
sessions.

It sounds to me like your Apache isn't honouring the ProxyPassReverse 
directive.

Explanation
===========

When a request comes in to your Apache, it forwards it on using the 
ProxyPass configuration to your tomcat/jetty/whatever.

If you're using a context path other than the root one, then that 
request looks like this:
http://appserver:8080/contextPath/filterMapping/pageName
or
http://appserver:8080/contextPath/filterMapping/?wicket:interface=[...]
etc.

The appserver doesn't know anything about your proxy, so when it does a 
302 redirect, it will do it to somewhere like this:
/contextPath/filterMapping/?wicket:interface=[...]

Apache is then responsible for converting the URL in the 302 redirect 
into the proxied-version. It does this using the ProxyPassReverse 
config. In the above example, it'll need to rewrite /contextPath/ to /

ProxyPassReverseCookiePath is used to do the same thing with any cookies 
in the response. Cookies have a URL/domain, and your Tomcat will set 
them at "/contextPath/", so that also needs rewriting to "/" otherwise 
the browser won't send them on the next request, which means your 
session won't work.

Murat: My suggestion to you is to strip out all the other config from 
your VirtualHost (all the RewriteEngine stuff, etc.) and first get it 
working using the basic set-up on the wiki-page. This does work.

Regards,

Al

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Johan Compagner <jc...@gmail.com>.
so we dont support this currently?

myserver1.xxx.com:80 -> localhost:8080/myapp1
myserver2.xxx.com:80 -> localhost:8080/myapp2

johan


On Nov 9, 2007 1:35 PM, Frank Bille <fr...@apache.org> wrote:

> Read this again:
>
>
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
>
> Frank
>
>  On Nov 9, 2007 1:26 PM, Murat Yücel <ko...@gmail.com> wrote:
>
> > Hi Frank
> >
> > I have substituted my projectname with wicket. Below is the conf for
> > the proxy part.
> >
> > <VirtualHost *>
> >       ServerAdmin admin@wicket.com
> >       ServerName  www.wicket.com
> >       ServerAlias wicket.com
> >
> >       ProxyRequests off
> >       ProxyPreserveHost On
> >       RewriteEngine On
> >
> >       # Indexes + Directory Root.
> >       DirectoryIndex index.html
> >       DocumentRoot /var/wicket.com
> >
> >       # Logfiles
> >       ErrorLog  /var/log/apache2/wicket-error.log
> >       CustomLog /var/log/apache2/wicket-access.log combined
> >
> >       ProxyPass / http://127.0.0.1:8080/wicket/
> >       ProxyPassReverse / http://127.0.0.1:8080/wicket/
> >
> >       ProxyPreserveHost On
> > </VirtualHost>
> >
> > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > Sounds weird.
> > >
> > > Can you show me your apache conf for the proxy?
> > >
> > > Frank
> > >
> > > On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com> wrote:
> > >
> > > > Hi Frank
> > > >
> > > > I have changed the /app/* to /* but it doesnt change the urls. They
> > > > are still wrong.
> > > > For example i enter the following url:
> > > > www.wicket.com
> > > >
> > > > The url is transformed to
> > > >
> www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
> > > >
> > > > If i remove the the wicket part from the url then i can see the
> login
> > > > page. But if i click
> > > > on a link then the wicket part is appended again.
> > > >
> > > > /Murat
> > > >
> > > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > > > First of all, you don't need /app/* anylonger. just /*.
> > > > >
> > > > > I'm running behind proxy as well and it works well. Are you sure
> you
> > > > haven't
> > > > > run into this problem:
> > > > >
> > > > >
> > > >
> >
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > > > >
> > > > > Frank
> > > > >
> > > > >
> > > > > On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com>
> wrote:
> > > > >
> > > > > > Hi All
> > > > > >
> > > > > > I have looked at this article:
> > > > > >
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> > > > > >
> > > > > > and it seems like the problem should be gone in wicket 1.3 but
> it
> > > > > > isnt. I still get 404
> > > > > > errors. There is a warning on the wiki page: "Don't use
> > setContextPath
> > > > > > with Wicket 1.3".
> > > > > >
> > > > > > I am not setting the context path. Instead i am using
> > filter-mapping.
> > > > > > Is this the same thing?
> > > > > >
> > > > > >    <filter-mapping>
> > > > > >        <filter-name>wicket</filter-name>
> > > > > >        <!-- The app is needed for ajax (this is a known
> > > > > > limitation/bug in wicket) -->
> > > > > >        <url-pattern>/app/*</url-pattern>
> > > > > >    </filter-mapping>
> > > > > >
> > > > > > Do you have a workaround for this issue or am i doing something
> > wrong?
> > > > > > I am currently running 1.3-beta4.
> > > > > >
> > > > > > Kind regards
> > > > > >
> > > > > > /Murat Yücel
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

Re: Wicket behind a front-end proxy

Posted by Frank Bille <fr...@apache.org>.
Read this again:

http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork

Frank

On Nov 9, 2007 1:26 PM, Murat Yücel <ko...@gmail.com> wrote:

> Hi Frank
>
> I have substituted my projectname with wicket. Below is the conf for
> the proxy part.
>
> <VirtualHost *>
>       ServerAdmin admin@wicket.com
>       ServerName  www.wicket.com
>       ServerAlias wicket.com
>
>       ProxyRequests off
>       ProxyPreserveHost On
>       RewriteEngine On
>
>       # Indexes + Directory Root.
>       DirectoryIndex index.html
>       DocumentRoot /var/wicket.com
>
>       # Logfiles
>       ErrorLog  /var/log/apache2/wicket-error.log
>       CustomLog /var/log/apache2/wicket-access.log combined
>
>       ProxyPass / http://127.0.0.1:8080/wicket/
>       ProxyPassReverse / http://127.0.0.1:8080/wicket/
>
>       ProxyPreserveHost On
> </VirtualHost>
>
> 2007/11/9, Frank Bille <fr...@apache.org>:
> > Sounds weird.
> >
> > Can you show me your apache conf for the proxy?
> >
> > Frank
> >
> > On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com> wrote:
> >
> > > Hi Frank
> > >
> > > I have changed the /app/* to /* but it doesnt change the urls. They
> > > are still wrong.
> > > For example i enter the following url:
> > > www.wicket.com
> > >
> > > The url is transformed to
> > > www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
> > >
> > > If i remove the the wicket part from the url then i can see the login
> > > page. But if i click
> > > on a link then the wicket part is appended again.
> > >
> > > /Murat
> > >
> > > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > > First of all, you don't need /app/* anylonger. just /*.
> > > >
> > > > I'm running behind proxy as well and it works well. Are you sure you
> > > haven't
> > > > run into this problem:
> > > >
> > > >
> > >
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > > >
> > > > Frank
> > > >
> > > >
> > > > On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com> wrote:
> > > >
> > > > > Hi All
> > > > >
> > > > > I have looked at this article:
> > > > >
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> > > > >
> > > > > and it seems like the problem should be gone in wicket 1.3 but it
> > > > > isnt. I still get 404
> > > > > errors. There is a warning on the wiki page: "Don't use
> setContextPath
> > > > > with Wicket 1.3".
> > > > >
> > > > > I am not setting the context path. Instead i am using
> filter-mapping.
> > > > > Is this the same thing?
> > > > >
> > > > >    <filter-mapping>
> > > > >        <filter-name>wicket</filter-name>
> > > > >        <!-- The app is needed for ajax (this is a known
> > > > > limitation/bug in wicket) -->
> > > > >        <url-pattern>/app/*</url-pattern>
> > > > >    </filter-mapping>
> > > > >
> > > > > Do you have a workaround for this issue or am i doing something
> wrong?
> > > > > I am currently running 1.3-beta4.
> > > > >
> > > > > Kind regards
> > > > >
> > > > > /Murat Yücel
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > >
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket behind a front-end proxy

Posted by Murat Yücel <ko...@gmail.com>.
Hi Frank

I have substituted my projectname with wicket. Below is the conf for
the proxy part.

<VirtualHost *>
       ServerAdmin admin@wicket.com
       ServerName  www.wicket.com
       ServerAlias wicket.com

       ProxyRequests off
       ProxyPreserveHost On
       RewriteEngine On

       # Indexes + Directory Root.
       DirectoryIndex index.html
       DocumentRoot /var/wicket.com

       # Logfiles
       ErrorLog  /var/log/apache2/wicket-error.log
       CustomLog /var/log/apache2/wicket-access.log combined

       ProxyPass / http://127.0.0.1:8080/wicket/
       ProxyPassReverse / http://127.0.0.1:8080/wicket/

       ProxyPreserveHost On
</VirtualHost>

2007/11/9, Frank Bille <fr...@apache.org>:
> Sounds weird.
>
> Can you show me your apache conf for the proxy?
>
> Frank
>
> On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com> wrote:
>
> > Hi Frank
> >
> > I have changed the /app/* to /* but it doesnt change the urls. They
> > are still wrong.
> > For example i enter the following url:
> > www.wicket.com
> >
> > The url is transformed to
> > www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
> >
> > If i remove the the wicket part from the url then i can see the login
> > page. But if i click
> > on a link then the wicket part is appended again.
> >
> > /Murat
> >
> > 2007/11/9, Frank Bille <fr...@apache.org>:
> > > First of all, you don't need /app/* anylonger. just /*.
> > >
> > > I'm running behind proxy as well and it works well. Are you sure you
> > haven't
> > > run into this problem:
> > >
> > >
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> > >
> > > Frank
> > >
> > >
> > > On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com> wrote:
> > >
> > > > Hi All
> > > >
> > > > I have looked at this article:
> > > > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> > > >
> > > > and it seems like the problem should be gone in wicket 1.3 but it
> > > > isnt. I still get 404
> > > > errors. There is a warning on the wiki page: "Don't use setContextPath
> > > > with Wicket 1.3".
> > > >
> > > > I am not setting the context path. Instead i am using filter-mapping.
> > > > Is this the same thing?
> > > >
> > > >    <filter-mapping>
> > > >        <filter-name>wicket</filter-name>
> > > >        <!-- The app is needed for ajax (this is a known
> > > > limitation/bug in wicket) -->
> > > >        <url-pattern>/app/*</url-pattern>
> > > >    </filter-mapping>
> > > >
> > > > Do you have a workaround for this issue or am i doing something wrong?
> > > > I am currently running 1.3-beta4.
> > > >
> > > > Kind regards
> > > >
> > > > /Murat Yücel
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Frank Bille <fr...@apache.org>.
Sounds weird.

Can you show me your apache conf for the proxy?

Frank

On Nov 9, 2007 12:44 PM, Murat Yücel <ko...@gmail.com> wrote:

> Hi Frank
>
> I have changed the /app/* to /* but it doesnt change the urls. They
> are still wrong.
> For example i enter the following url:
> www.wicket.com
>
> The url is transformed to
> www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
>
> If i remove the the wicket part from the url then i can see the login
> page. But if i click
> on a link then the wicket part is appended again.
>
> /Murat
>
> 2007/11/9, Frank Bille <fr...@apache.org>:
> > First of all, you don't need /app/* anylonger. just /*.
> >
> > I'm running behind proxy as well and it works well. Are you sure you
> haven't
> > run into this problem:
> >
> >
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
> >
> > Frank
> >
> >
> > On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com> wrote:
> >
> > > Hi All
> > >
> > > I have looked at this article:
> > > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> > >
> > > and it seems like the problem should be gone in wicket 1.3 but it
> > > isnt. I still get 404
> > > errors. There is a warning on the wiki page: "Don't use setContextPath
> > > with Wicket 1.3".
> > >
> > > I am not setting the context path. Instead i am using filter-mapping.
> > > Is this the same thing?
> > >
> > >    <filter-mapping>
> > >        <filter-name>wicket</filter-name>
> > >        <!-- The app is needed for ajax (this is a known
> > > limitation/bug in wicket) -->
> > >        <url-pattern>/app/*</url-pattern>
> > >    </filter-mapping>
> > >
> > > Do you have a workaround for this issue or am i doing something wrong?
> > > I am currently running 1.3-beta4.
> > >
> > > Kind regards
> > >
> > > /Murat Yücel
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket behind a front-end proxy

Posted by Murat Yücel <ko...@gmail.com>.
Hi Frank

I have changed the /app/* to /* but it doesnt change the urls. They
are still wrong.
For example i enter the following url:
www.wicket.com

The url is transformed to
www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage

If i remove the the wicket part from the url then i can see the login
page. But if i click
on a link then the wicket part is appended again.

/Murat

2007/11/9, Frank Bille <fr...@apache.org>:
> First of all, you don't need /app/* anylonger. just /*.
>
> I'm running behind proxy as well and it works well. Are you sure you haven't
> run into this problem:
>
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
>
> Frank
>
>
> On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com> wrote:
>
> > Hi All
> >
> > I have looked at this article:
> > http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> >
> > and it seems like the problem should be gone in wicket 1.3 but it
> > isnt. I still get 404
> > errors. There is a warning on the wiki page: "Don't use setContextPath
> > with Wicket 1.3".
> >
> > I am not setting the context path. Instead i am using filter-mapping.
> > Is this the same thing?
> >
> >    <filter-mapping>
> >        <filter-name>wicket</filter-name>
> >        <!-- The app is needed for ajax (this is a known
> > limitation/bug in wicket) -->
> >        <url-pattern>/app/*</url-pattern>
> >    </filter-mapping>
> >
> > Do you have a workaround for this issue or am i doing something wrong?
> > I am currently running 1.3-beta4.
> >
> > Kind regards
> >
> > /Murat Yücel
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket behind a front-end proxy

Posted by Frank Bille <fr...@apache.org>.
First of all, you don't need /app/* anylonger. just /*.

I'm running behind proxy as well and it works well. Are you sure you haven't
run into this problem:

http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork

Frank


On Nov 9, 2007 11:56 AM, Murat Yücel <ko...@gmail.com> wrote:

> Hi All
>
> I have looked at this article:
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
>
> and it seems like the problem should be gone in wicket 1.3 but it
> isnt. I still get 404
> errors. There is a warning on the wiki page: "Don't use setContextPath
> with Wicket 1.3".
>
> I am not setting the context path. Instead i am using filter-mapping.
> Is this the same thing?
>
>    <filter-mapping>
>        <filter-name>wicket</filter-name>
>        <!-- The app is needed for ajax (this is a known
> limitation/bug in wicket) -->
>        <url-pattern>/app/*</url-pattern>
>    </filter-mapping>
>
> Do you have a workaround for this issue or am i doing something wrong?
> I am currently running 1.3-beta4.
>
> Kind regards
>
> /Murat Yücel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>