Hello, does anyone know if I can setup Tomcat directly. Since there is no other content on that server, I actually do not need the Apache-Server.
I guess all I have to do is: make tomcat listen on port 443. Make it accept ssl-connections and make the wiki the default application. But I have never done that, so if someone has experience in that field it would be nice if he7she could share them with me. Thanks a lot, Stephanie Quoting Sergiu Dumitriu <ser...@xwiki.com>: > On 04/18/2011 01:28 PM, li...@yhmail.de wrote: >> Hello again, >> >> we are running a tomcat-server "behind" an apache-server. In order to >> redirect the request we use the following configuration: >> >> <VirtualHost *:80> >> ServerName www.my-domain.de >> ServerAlias my-domain.de >> Redirect permanent / https://www.my-domain.de/ >> </VirtualHost> >> >> <VirtualHost *:443> >> ServerName www.my-domain.de >> >> SSLEngine On >> SSLProxyEngine On >> >> SSLCertificateFile /etc/apache2/ssl/my-domain.crt >> SSLCertificateKeyFile /etc/apache2/ssl/my-domain.key >> >> <Proxy *> >> Order allow,deny >> Allow from all >> </Proxy> >> >> >> Redirect / /xwikiv2/ >> >> ProxyPass /xwikiv2 http://localhost:8080/xwikiv2 >> ProxyPassReverse /xwikiv2 http://localhost:8080/xwikiv2 >> ProxyPreserveHost On >> </VirtualHost> >> >> So all communication should be encrypted and the user should >> immediately be redirected to the wiki. >> >> With these settings we encounter a strange behaviour. For example the >> Blog refuses to create a new category (see: [xwiki-users] Server not >> responding when creating a new Blog-Category). If I point my browser >> directly to my-domain.de:8080 I can create categories. >> >> Is the config file correct? Is there a better way? > > I think this is caused by the fact that the container (Tomcat) doesn't > know the connection is secure (HTTPS) and tries to generate absolute > URLs pointing to http instead of https. I don't know how to forward the > information that the connection is secure from httpd to tomcat, but this > could be a good starting point into fixing the problem. > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > _______________________________________________ > users mailing list > firstname.lastname@example.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list email@example.com http://lists.xwiki.org/mailman/listinfo/users