I am trying to configure my web app to use http and https. I am using the 
following code in my Application class:
protected IRequestCycleProcessor newRequestCycleProcessor() {
        HttpsConfig config = new HttpsConfig(80, 443);
        return new MyHttpsRequestCycleProcessor(config);        
WebPages such as Login, MyAccount etc have the @RequireHttps annotation.

I receive a 404 error when clicking on any page which have the @RequireHttps
A bit of debugging shows that the link its trying to access is 
https://myserver.com/myapp/login. I am trying to have my web application not 
have a context root i.e. the myapp should not be there.

I have looked at various threads which have slightly different scenarios 
without success. I have tried various other setup configs with different 
Any help would be appreciated.

My setup is below:
Ubuntu 11.04
Apache/2.2.17 (Unix)
JbossAS 6
Wicket 1.4.15

I am using Apache as the front web server which I want to handle http and https
I have the following within my httpd.conf:

NameVirtualHost *:80
<VirtualHost *:80>
        ServerName myserver.com:80

        ProxyPass / http://myserver.com:8080/myapp/
        ProxyPassReverse / http://myserver.com:8080/myapp/

NameVirtualHost *:443
<VirtualHost *:443>
        ServerName myserver.com:443

        SSLEngine On
        SSLCertificateKeyFile /etc/ssl/private/server.key
        SSLCertificateFile /etc/ssl/certs/server.crt

        ProxyPass / http://myserver.com:8080/myapp/
        ProxyPassReverse / http://myserver.com:8080/myapp/

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

Reply via email to