Auth0 Home Blog Docs

Problem With HTTPD Proxy and Auth0

apache
java
http

#1

I have the following config in my ssh.conf

<VirtualHost _default_:443>
    ServerAdmin root@localhost
    ServerName secondave.net:443
    DefaultType text/html 
    ProxyRequests off
    ProxyPreserveHost On
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
    ErrorLog logs/ssl_error_log
    TransferLog logs/ssl_access_log
...
</VirtualHost _default_:443>

I am using the following library…

compile 'com.auth0:mvc-auth-commons:latest.release'
compile 'com.auth0:auth0-spring-security-api:latest.release'

But when I try to login the callback gets set to localhost. Am I missing something in the Controller or do I need something special in the ssl.conf?