HTTPS Access to /webmail & /sac

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

etchesou
Posts: 12
Joined: Thu Jun 11, 2009 9:51 am

HTTPS Access to /webmail & /sac

Postby etchesou » Thu Jun 11, 2009 9:57 am

Hello everyone,

I'm trying to get Scalix working over https, but it seems i've hit a wall now. It works just fine over normal http, but when i change the files in /etc/opt/scalix-tomcat/connector/ajp/instance-server.conf and /etc/opt/scalix-tomcat/connector/jk/instance-server.conf as described in the Wiki, i just get a 404 Error when i try to access the pages.

The rewriting itself seems to work just fine, i have to accept the certificate and everything, but then BAM, 404.

I'm running the latest Scalix on CentOS 5.

Anyone have some pointers what might be wrong?

Thanks!
Jan

kcsc
Posts: 62
Joined: Thu Oct 04, 2007 11:35 am
Location: US

Re: HTTPS Access to /webmail & /sac

Postby kcsc » Thu Jun 11, 2009 4:58 pm

404 is content not found. make sure that you are correctly rewriting. If you post your two .conf files we can help you check it.

etchesou
Posts: 12
Joined: Thu Jun 11, 2009 9:51 am

Re: HTTPS Access to /webmail & /sac

Postby etchesou » Fri Jun 12, 2009 11:20 am

the ajp one:

Code: Select all

#<VirtualHost pozzuoli.srv.comosoft.de:80>
#    Include /etc/opt/scalix-tomcat/connector/ajp/app-pozzuoli.*.conf
#</VirtualHost>

<VirtualHost *:80>
  Include /etc/opt/scalix-tomcat/connector/ajp/app-pozzuoli.*.conf
  <LocationMatch "^/sac/*">
    RewriteEngine on
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  </LocationMatch>
  <LocationMatch "^/webmail/*">
    RewriteEngine on
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  </LocationMatch>
</VirtualHost>


the jk one:

Code: Select all

#<VirtualHost pozzuoli.srv.comosoft.de:80>
#    Include /etc/opt/scalix-tomcat/connector/jk/app-pozzuoli.*.conf
#</VirtualHost>

<VirtualHost *:80>
  Include /etc/opt/scalix-tomcat/connector/jk/app-pozzuoli.*.conf
  <LocationMatch "^/sac/*">
    RewriteEngine on
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  </LocationMatch>
  <LocationMatch "^/webmail/*">
    RewriteEngine on
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  </LocationMatch>
</VirtualHost>

JkWorkerProperty worker.pozzuoli.type=ajp13
JkWorkerProperty worker.pozzuoli.host=pozzuoli.srv.comosoft.de
JkWorkerProperty worker.pozzuoli.port=8009
JkWorkerProperty worker.pozzuoli.lbfactor=50
JkWorkerProperty worker.pozzuoli.cachesize=10
JkWorkerProperty worker.pozzuoli.cache_timeout=600
JkWorkerProperty worker.pozzuoli.socket_keepalive=1
JkWorkerProperty worker.pozzuoli.recycle_timeout=300


ideas, anyone? :)

delumax

Re: HTTPS Access to /webmail & /sac

Postby delumax » Sat Jun 13, 2009 7:30 am

Have you enabled mod_ssl? Have you enabled the port 443 in the listen.conf?

etchesou
Posts: 12
Joined: Thu Jun 11, 2009 9:51 am

Re: HTTPS Access to /webmail & /sac

Postby etchesou » Mon Jun 15, 2009 5:19 am

delumax wrote:Have you enabled mod_ssl? Have you enabled the port 443 in the listen.conf?


yes. also i can reach the server via https and i get the certificate warning and so on.

jangi
Posts: 193
Joined: Fri May 16, 2008 2:12 am

Re: HTTPS Access to /webmail & /sac

Postby jangi » Mon Jun 15, 2009 10:31 am

The config you posted only enables automatic redirection from http to https... it doesn't actually configure https, which you should get working before trying redirection.

Something like:

Code: Select all

<VirtualHost mail.domain:443>
    SSLEngine on
    SSLProtocol all -SSLv2
    SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
    SSLCertificateFile /etc/pki/tls/certs/mail.domain.com.crt
    SSLCertificateKeyFile /etc/pki/tls/private/mail.domain.com.key
    Include /etc/opt/scalix-tomcat/connector/ajp/app-mail.*.conf
</VirtualHost>

etchesou
Posts: 12
Joined: Thu Jun 11, 2009 9:51 am

Re: HTTPS Access to /webmail & /sac

Postby etchesou » Wed Jun 17, 2009 4:37 am

Thanks jangi, i actually forgot to include the app-server.webmail.conf file... :oops:

now it's working just fine. thanks!

fossibaer

Re: HTTPS Access to /webmail & /sac

Postby fossibaer » Wed Sep 16, 2009 6:57 pm

I'm trying to reach also. Can someone explain step by step on a new installation how to reach accessing the server by https.

I'm a webserver newbie, and by additing the /etc/opt/scalix-tomcat/connctor/ ... files i didn't reach.

Thanks a lot.

acodring

Re: HTTPS Access to /webmail & /sac

Postby acodring » Thu Sep 17, 2009 11:45 am

@fossibear - Have you already seen the info on this page? http://www.scalix.com/wiki/index.php?title=SSL#Use_secure_protocols

fossibaer

Re: HTTPS Access to /webmail & /sac

Postby fossibaer » Fri Sep 18, 2009 4:30 am

Yes, i found it yesterday. Tomorrow i will try it out.

fossibaer

Re: HTTPS Access to /webmail & /sac

Postby fossibaer » Sat Sep 19, 2009 1:07 pm

I didn't reach. Thats what I tried on thursday evening.

I found another discription: http://www.scalix.com/wiki/index.php?title=Scalix_with_https

But this did't works with the CentOS 5.3 which I installed. Must I generate the certs or not?

Please excuse my English. I'm German.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 1 guest

cron