SSL and Normal login panel at the same time. - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Contributions Area (/forum-40.html) +--- Forum: Howtos (/forum-41.html) +--- Thread: SSL and Normal login panel at the same time. (/thread-8471.html) |
SSL and Normal login panel at the same time. - Gleno0h - 11-17-2009 05:25 PM This tutorial is bases on the "SSL made easy" tutorial. First, install the dependencies: Quote:apt-get install openssl Generate the certificates: $SERVER_NAME = your hostname ex. openssl genrsa -des3 -out $SERVER_NAME-pass.key 2048 becomes openssl genrsa -des3 -out server1.example.com-pass.key 2048 Quote:cd /etc/ssl/certschmod 400 *.key didnt work on my linux debian but chmod 400 fullnameofthefile.key did work. Enable SSL for apache and reload Apache2: Quote:a2enmod ssl Nano (or your other favorite text-editor) the apache2 config file: Quote:nano /etc/apache2/sites-available/00_master.conf Copy everything between the Master begin comment and Master end comment and paste it below so you would have 2 virtual hosts in that file. ex. Quote:#Please note, xxx.xxx.xxx.xxx is for illustration only. Note2, The port and the SSL begin has to be 443 for SSL Add this to "SSL begin" entry: Quote:SSLEngine On So it looks like: Quote:# Be sure to open port 443 and forward it. Edit the default index.tpl file to enable the option for SSL with your favorite text-editor tool: Quote:nano /var/www/ispcp/gui/themes/omega_original/index.tpl Scroll down to the SSL section and uncomment it, then save the file as the same name; index.tpl If you followed this correctly, you can now use the login panel with SSL and normal. This is my first post and i hope this isnt a double post, i couldnt find anything on this. Gleno0h. *Credits to whoever made the SSL made easy tutorial; SSL MADE EASY RE: SSL and Normal login panel at the same time. - sakal - 04-06-2010 09:28 PM Very good , thanks for this RE: SSL and Normal login panel at the same time. - rAdKy - 05-03-2010 11:32 PM Quote:Internal Server Error In error logs is this: [Mon May 03 16:30:40 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Mon May 03 16:30:40 2010] [error] [client 77.85.168.6] Premature end of script headers: index.php RE: SSL and Normal login panel at the same time. - TheCry - 05-03-2010 11:58 PM (05-03-2010 11:32 PM)rAdKy Wrote:Which Version of ispCP you are using?Quote:Internal Server Error Check the owner and ownergroup of the script! RE: SSL and Normal login panel at the same time. - rAdKy - 05-04-2010 12:04 AM version is ispcp-omega-1.0.4 owner and ownergroup of the script are OK this is my error when I try to open control panel ispcp ->> https://admin.domain.ltd RE: SSL and Normal login panel at the same time. - TheCry - 05-04-2010 12:14 AM Quote:https://admin.domain.ltdHow should i open this site? Mhhh... Did you have a backup of the index.php and the index.tpl? And use the Howto from the Wiki: http://www.isp-control.net/documentation/howto:security:ssl_made_easy or http://www.isp-control.net/documentation/howto:security:create_your_own_ssl_ca_and_secure_multiple_services My favorite is the second one... How are the owner and the ownergroup? RE: SSL and Normal login panel at the same time. - rAdKy - 05-04-2010 12:26 AM -r--r----- 1 vu2000 www-data 3823 2010-03-07 16:21 index.php I use the second howto wiki step by step.. my 01_ssl_master.conf is: Quote:<VirtualHost x.x.x.x:443> RE: SSL and Normal login panel at the same time. - TheCry - 05-04-2010 12:35 AM My friend... That's a poor config... Make a copy of the 00_master.conf to 01_ssl_master.conf... Then make the changes inside the 01_ssl_master.conf... Code: <VirtualHost x.x.x.x:443> In my opinion you should use other logfile names in the 01_ssl_master.conf Edit: I forgot... You need to enable this new configfile! RE: SSL and Normal login panel at the same time. - rAdKy - 05-04-2010 01:05 AM TheCry@ Thank you It's ready RE: SSL and Normal login panel at the same time. - aseques - 05-04-2010 01:05 AM Hello everyone, I am the author or the ssl_made_easy, also the current mantainer of another tutorial: http://www.isp-control.net/documentation/doku.php?id=howto:defaultport (05-04-2010 12:35 AM)TheCry Wrote: My friend...Since this is based on what I did, I'll tell why it's done that way (in a single file). Basically the problem with separate files is that you cannot use wildcards. The most interesting part of this configuration is the: Code: RewriteCond %{HTTP_HOST} ^webmail\..* [NC] Finally, I'd recommend to use this setup: http://www.isp-control.net/documentation/doku.php?id=howto:defaultport It' allows you to have a ssl secured panel (the one at 8443) while having a ssl server in port 443 for the people that want https, but don't need a proper certificate+ip |