Posts

Showing posts with the label tomcat

Apache, Tomcat & SSL: ProxyPass and ProxyPassReverse

Image
Apache, Tomcat & SSL: ProxyPass and ProxyPassReverse I'am having troubles configuring Apache, Tomcat and SSL, this is the scenario: I have an Apache Web Server, running and working normally (but , I can access to this one just typing: https://example.com Also, in this host, I have a Tomcat running and working fine in port 8080 (HTTP); I've created a mini web-app which files are inside "test" directory, I can access typing: http://example.com:8080/test (I know that Apache is running in 80 port and Tomcat in 8080) What I want to do is that througt Apache an user can access to 'test' (running on Tomcat) using HTTPS, I mean: https://example.com/test But when I access this link appers this: When I access using HTTP http://example/test works, but I need that be HTTPS. http://example/test I also create a file config in /etc/httpd/conf.d/vhost.conf , this is the content: /etc/httpd/conf.d/vhost.conf <VirtualHost *:80> ServerName www.example.com Docu...

Setting path of krb5.conf in Tomcat Application

Setting path of krb5.conf in Tomcat Application We have a Java Web Application, which used Hadoop cluster for storage. The cluster is kerberos enabled. By default, our application reads the krb5.conf file from /etc folder. We want that the krb5.conf file to be read from user specific location. KRB5_CONFIG=/path_of_krb5_conf_file is already set in bashrc file. Can anyone please help in this regards? Do I need to add something in server.xml or web.xml? 1 Answer 1 Copy your custom krb5.conf to $CATALINA_BASE/conf/ which might work. If that doesn't work, the location of the krb5.conf your Java web application uses can be changed by setting the java.security.krb5.conf JVM property: java -Djava.security.krb5.conf=/path/to/custom/krb5.conf Reference: Configuring Tomcat 7 Single Sign-on with SPNEGO (Kerberos & LDAP) By clicking "Post Your Answer...