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
results.
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/
</VirtualHost>
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/
</VirtualHost>
Regards
Vishal
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]