Dual ports

hostpc.com

Verified User
Joined
Aug 2, 2003
Messages
1,055
Location
Schenectady, NY
In today's update, dual ports were included (yippee!)

Running directadmin manually with the "d" flag will disable this feature. (d is in the boot script by default)

How is this configured, or better yet, where? I've followed the steps, added it to directadmin.conf - yet I dont see anything in the CP that allows me to create as SSL- am I missing something?
 
No, I know the cert is the server cert, but I dont see a way to specify SSL for the user login (enhanced skin)... am I missing something?
 
I have added ssl_port=2223 to directadmin.conf and restarted directadmin and apache but still can't get logins to work on that port. Is there something else I need to do? How would you edit the boot script to remove the -d flag?

Anyone else having problems or got dual ports to work?


netstat shows port 2222 open but not 2223.
Thanks
 
I just gave it a try and it seems to be working for me. (Debian)
I just edited directadmin.conf, nothing else.

Does another port than 2223 work? You don't have a firewall setup that could be blocking it?
 
No other ports work have tried several and no firewall. redhat 9
can someone post directadmin.conf to make sure I did not screw anything up?
 
Last edited:
Thanks for the attachment.
Everything looks right. I tried moving ssl_port from the second line to under port=2222 but no luck.
Still just says page can not be displayed.

It worked the first time I added the ssl_port but it was using my old shared server cert. I played with the cacert.pem and cakey.pem.

What should these files be the shared server cert or something else.

Anyone have thoughts on what cert files would mess this up?
I have this error in da error log 2005:05:19-10:21:38: error loading certificate

here is ls -al from dir
-rw-r--r-- 1 diradmin diradmin 1561 May 19 00:57 cacert.pem
-rw-r--r-- 1 diradmin diradmin 888 May 17 23:46 cakey.pem
-rw-r--r-- 1 diradmin diradmin 1538 May 17 23:49 carootcert.pem
-rw------- 1 diradmin diradmin 1663 May 19 10:21 directadmin.conf

I have done this to rebuild the .pem files
Setup SSL Certificates:

This step is only required if you wish to use DirectAdmin through SSL. You will also have to change set SSL=1 in the directadmin.conf file.

# openssl req -new -x509 -keyout /usr/local/directadmin/conf/cakey.pem.tmp \
-out /usr/local/directadmin/conf/cacert.pem
# openssl rsa -in /usr/local/directadmin/conf/cakey.pem.tmp \
-out /usr/local/directadmin/conf/cakey.pem
# rm /usr/local/directadmin/conf/cakey.pem.tmp
# chown diradmin:diradmin /usr/local/directadmin/conf/cakey.pem
# chmod 400 /usr/local/directadmin/conf/cakey.pem

Still no luck.



Thanks again..










Thanks again
 
Last edited:
Back
Top