Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-25, 09:37:02

Author Topic: Hiawatha webserver and Domain SSL cert  (Read 9591 times)

0 Members and 1 Guest are viewing this topic.

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Hiawatha webserver and Domain SSL cert
« on: 2014-09-09, 15:42:11 »
Hello


how to install a working "Domain SSL cert" on Hiawatha Webserver/kloxo?

thanks
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hiawatha webserver and Domain SSL cert
« Reply #1 on: 2014-09-09, 15:43:47 »
Like other webservers.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: Hiawatha webserver and Domain SSL cert
« Reply #2 on: 2014-09-09, 15:59:54 »
i insert a cert but ony

"(Fehlercode: ssl_error_protocol_version_alert)"

SSL negotiation failed



KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hiawatha webserver and Domain SSL cert
« Reply #3 on: 2014-09-09, 16:03:59 »
Inform here your domain configs. Find out in /opt/configs/hiawatha/conf/domains (for hiawatha) or /opt/configs/hiawatha/conf/proxy (for hiawatha-proxy).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: Hiawatha webserver and Domain SSL cert
« Reply #4 on: 2014-09-09, 16:25:29 »
Code: [Select]
### begin - web of 'domain.com' - do not remove/modify this line


UrlToolkit {
ToolkitID = redirect_domain_com
RequestURI exists Return
Match ^/kloxo(/|$) Redirect https://domain.com:7777/$1
Match ^/kloxononssl(/|$) Redirect http://domain.com:7778/$1
Match ^/webmail(/|$) Redirect http://webmail.domain.com/$1
Match ^/cp(/|$) Redirect http://cp.domain.com/$1
Match ^/stats(/|$) Redirect http://domain.com/awstats/awstats.pl
}


## cp for 'domain.com'
VirtualHost {
set var_user = apache

UseGZfile = yes
FollowSymlinks = no

Hostname = cp.domain.com

WebsiteRoot = /home/kloxo/httpd/cp

EnablePathInfo = yes

TimeForCGI = 3600

Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html

ExecuteCGI = yes

UseFastCGI = php_for_var_user

#StartFile = index.php
UseToolkit = findindexfile, permalink
## still not work for 'microcache'
## add 'header("X-Hiawatha-Cache: 10");' to index.php
#CustomHeader = X-Hiawatha-Cache:10
}


## webmail for 'domain.com'
VirtualHost {
set var_user = apache

UseGZfile = yes
FollowSymlinks = no

Hostname = webmail.domain.com

WebsiteRoot = /home/kloxo/httpd/webmail

EnablePathInfo = yes

TimeForCGI = 3600

Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html

ExecuteCGI = yes

UseFastCGI = php_for_var_user

#StartFile = index.php
UseToolkit = findindexfile, permalink
## still not work for 'microcache'
## add 'header("X-Hiawatha-Cache: 10");' to index.php
#CustomHeader = X-Hiawatha-Cache:10
}


## web for 'domain.com'
VirtualHost {
set var_user = web4

UseGZfile = yes
FollowSymlinks = no

WrapCGI = web4_wrapper

Hostname = domain.com, www.domain.com

WebsiteRoot = /home/web4/domain.com

EnablePathInfo = yes

Alias = /__kloxo:/home/web4/kloxoscript

### MR -- disable perl until fix hardlinks issue
Alias = /cgi-bin:/home/web4/domain.com/cgi-bin

AccessLogfile = /home/httpd/domain.com/stats/domain.com-custom_log
ErrorLogfile = /home/httpd/domain.com/stats/domain.com-error_log

Alias = /awstats:/home/kloxo/httpd/awstats/wwwroot/cgi-bin

Alias = /awstatscss:/home/kloxo/httpd/awstats/wwwroot/css
Alias = /awstatsicons:/home/kloxo/httpd/awstats/wwwroot/icon

UserWebsites = yes

TimeForCGI = 3600

Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html

ExecuteCGI = yes

UseFastCGI = php_for_var_user

#StartFile = index.php
UseToolkit = redirect_domain_com, findindexfile, permalink
## still not work for 'microcache'
## add 'header("X-Hiawatha-Cache: 10");' to index.php
#CustomHeader = X-Hiawatha-Cache:10
}


## cp for 'domain.com'
VirtualHost {
set var_user = apache

UseGZfile = yes
FollowSymlinks = no

Hostname = cp.domain.com

WebsiteRoot = /home/kloxo/httpd/cp

EnablePathInfo = yes

SSLcertFile = /home/web4/ssl/domain.com.pem

TimeForCGI = 3600

Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html

ExecuteCGI = yes

UseFastCGI = php_for_var_user

#StartFile = index.php
UseToolkit = findindexfile, permalink
## still not work for 'microcache'
## add 'header("X-Hiawatha-Cache: 10");' to index.php
#CustomHeader = X-Hiawatha-Cache:10
}


## webmail for 'domain.com'
VirtualHost {
set var_user = apache

UseGZfile = yes
FollowSymlinks = no

Hostname = webmail.domain.com

WebsiteRoot = /home/kloxo/httpd/webmail

EnablePathInfo = yes

SSLcertFile = /home/web4/ssl/domain.com.pem

TimeForCGI = 3600

Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html

ExecuteCGI = yes

UseFastCGI = php_for_var_user

#StartFile = index.php
UseToolkit = findindexfile, permalink
## still not work for 'microcache'
## add 'header("X-Hiawatha-Cache: 10");' to index.php
#CustomHeader = X-Hiawatha-Cache:10
}


## web for 'domain.com'
VirtualHost {
set var_user = web4

UseGZfile = yes
FollowSymlinks = no

WrapCGI = web4_wrapper

Hostname = domain.com, www.domain.com

SSLcertFile = /home/web4/ssl/domain.com.pem

WebsiteRoot = /home/web4/domain.com

EnablePathInfo = yes

Alias = /__kloxo:/home/web4/kloxoscript

### MR -- disable perl until fix hardlinks issue
Alias = /cgi-bin:/home/web4/domain.com/cgi-bin

AccessLogfile = /home/httpd/domain.com/stats/domain.com-custom_log
ErrorLogfile = /home/httpd/domain.com/stats/domain.com-error_log

Alias = /awstats:/home/kloxo/httpd/awstats/wwwroot/cgi-bin

Alias = /awstatscss:/home/kloxo/httpd/awstats/wwwroot/css
Alias = /awstatsicons:/home/kloxo/httpd/awstats/wwwroot/icon

UserWebsites = yes

TimeForCGI = 3600

Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html

ExecuteCGI = yes

UseFastCGI = php_for_var_user

#StartFile = index.php
UseToolkit = redirect_domain_com, findindexfile, permalink
## still not work for 'microcache'
## add 'header("X-Hiawatha-Cache: 10");' to index.php
#CustomHeader = X-Hiawatha-Cache:10
}


### end - web of 'domain.com' - do not remove/modify this line

« Last Edit: 2014-09-09, 16:30:57 by ibuxxi »
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hiawatha webserver and Domain SSL cert
« Reply #5 on: 2014-09-09, 16:31:50 »
No exists for /home/web4/ssl/domain.com.ca?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: Hiawatha webserver and Domain SSL cert
« Reply #6 on: 2014-09-09, 16:39:24 »
Code: [Select]
domain.com.cnf  domain.com.crt  domain.com.csr  domain.com.key  domain.com.pem


Self-signed cert
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: Hiawatha webserver and Domain SSL cert
« Reply #7 on: 2014-09-11, 10:38:09 »
allways ssl on domain not work

any update

but why ssl on domains not work on hiawatha
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Hiawatha webserver and Domain SSL cert
« Reply #8 on: 2014-09-11, 11:13:46 »
allways ssl on domain not work

any update

but why ssl on domains not work on hiawatha
Look like something wrong hiawatha latest version (related to polarssl).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: Hiawatha webserver and Domain SSL cert
« Reply #9 on: 2014-09-11, 12:24:02 »
SSL on domain not works last 3 months
I've tried it every now and again

Look like something wrong hiawatha latest version (related to polarssl).
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: Hiawatha webserver and Domain SSL cert
« Reply #10 on: 2014-09-13, 23:30:34 »
Server cert is for *.lxlabs.com

i set in "Set SSL For Kloxo" new cert
but allways only for *.lxlabs.com

i set in Domains new https://domain.com


???
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Hiawatha webserver and Domain SSL cert
« Reply #11 on: 2014-09-14, 02:32:54 »
Nothing wrong with polarssl or hiawatha.  Problem is config.

I have tried many times to explain, but i think we are not understanding each other well, as I have custom configs for hiawatha and all is running well, including ssl.

https://www.ssllabs.com/ssltest/analyze.html?d=convictionshosting.com&hideResults=on

A+ Almost Perfect score ;)
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: Hiawatha webserver and Domain SSL cert
« Reply #12 on: 2014-09-14, 08:30:08 »
Mustafa, you can the configs for PolarSSL and hiawatha customize
so ssl works  ?
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.08 seconds with 21 queries.

web stats analysis