new user - everything almost set, except SSL

vadimc

Verified User
Joined
Nov 9, 2008
Messages
10
Hi guys,
brand new user here, sorry if this post is not in the right place.
I never used DA until yesterday and so far I am very pleased - quite a lot of function which saved me from googling and typing a lot of commands instead.
I found your forums very useful too - my provider (coreix UK) installed the server (Centos5) on Friday and i was configuring it with all my necessary packages. I did have a problem with pdo_mysql, so i emailed them and they showed me a thread on this forum which helped me to get it running. (btw, the server is unmanaged and the provider still replied to me within 10 minutes with this solution, not many do that (its a breath a fresh air after webfusion which i plan to sue for being so incompetent - i was with no service for over 24 hours because of their mistakes)

Anyway, now i have a small dilemma and sorry if this doesnt make any sense - i am a beginner when it comes to linux and all the sysadmin stuff.

the server comes with 5 IP (ip1, ip2, ip3, ip4, ip5)
the DA (server) runs on ip1
ns1 runs on ip2 with all other domains
ns2 runs on ip3
ip4 and ip5 is free

Now the way i set up my domains is like that:
4 domains run on my admin account (d1, d2, d3, d4)
the other 5 domains have their own accounts. (for friends)

d3 is marked as primary domain when i navigate to this page: CMD_ADDITIONAL_DOMAINS

d2 is the domain i am intending to use with its own purchased SSL, which i already installed via the CMD_SSL?domain=d2
just to avoid any confusion its a SSL123 certificate
Now, its all installed, but unfortunately when i go to the https for this domain, i get the localhost self issued certificate.
My guess is that i didnt give the domain its own dedicated IP, but i have no idea how to do that.
Any ideas? :)
 
To give it it's own dedicated IP# you need to set it up under it's own user.

You can either create a reseller, and then the user, or you can create the user under the admin reseller panel.

If you need to delete the domain to move it, then be sure to use the backup first or you'll lose you're private key and you won't be able to restore the Certificate.

Jeff
 
thanks Jeff, is this the only way? its very convenient to have all my domains under one user - easier to navigate through the server :)
 
i think i am getting somewhere :)
I went into /usr/local/directadmin/ and messed up with the settings a bit and now i am able to see my https domain via the ip4.
I changed my hosts windows file to show ip4 d2 and i could see both domains.
Now I need to change manually the DNS records and job done! i think.

Can anyone tell me please where can i find the DNS configuration file as this page doesnt allow changes:
CMD_DNS_CONTROL?domain=d2

sorry if this is confusing :)

Edit: Sorry, i found it - /var/named/

Now i changed all my IPs to point to ip4 and need to wait until DNS will propagate - can anyone confirm please that this will work?

do i need to do anything else?

No rush as the website is not live yet, so no worries if it will be down.
 
Last edited:
Perhaps. Your server has a user-specific httpd.conf file which overrides the main IP# for your server. You can certainly change it manually. But DirectAdmin can and will overwrite it when you make changes to the site's configuration which will affect the file. So to keep that from happening you'd have to chattr the file as immutable.

If you do that you may get errors from time to time.

I'd recommend doing it the way DirectAdmin supports natively, but it's your server and you can modify it any way you want.

Jeff
 
Perhaps. Your server has a user-specific httpd.conf file which overrides the main IP# for your server. You can certainly change it manually. But DirectAdmin can and will overwrite it when you make changes to the site's configuration which will affect the file. So to keep that from happening you'd have to chattr the file as immutable.

If you do that you may get errors from time to time.

I'd recommend doing it the way DirectAdmin supports natively, but it's your server and you can modify it any way you want.

Jeff

you are absolutely right Jeff! the IP setting I entered into the name records got overwritten by direct admin, but then i went to directadmin and deleted the A DNS entries and created new ones to point to the IP needed and touch wood, so far so good :)
In a week's time I am launching the new site, so will make sure to show it off :D

Thank you very much again - i am sure it would have taken be longer to figure it out without your help :)
 
Back
Top