smilb

Member
Aug 10, 2001
11
0
301
Can anyone tell me how to set a Name Virtual host directive? I am trying to put two certs on one account.......

Regards
 
B

bdraco

Guest
[quote:006c9425e1]Can anyone tell me how to set a Name Virtual host directive? I am trying to put two certs on one account.......

Regards [/quote:006c9425e1]

NameVirtualHost <ip>:443 (if ssl)
NameVirtualHost <ip>:80 (if not)
 

Karl

Well-Known Member
PartnerNOC
Aug 10, 2001
87
1
308
[quote:0e31cbd047]Can anyone tell me how to set a Name Virtual host directive? I am trying to put two certs on one account.......

Regards [/quote:0e31cbd047]

Correct me if I am wrong but isn\'t it one cert to one IP address? You can\'t use name based hosting for SSL.
 
B

bdraco

Guest
[quote:376ecb6cb8][quote:376ecb6cb8]Can anyone tell me how to set a Name Virtual host directive? I am trying to put two certs on one account.......

Regards [/quote:376ecb6cb8]

Correct me if I am wrong but isn\'t it one cert to one IP address? You can\'t use name based hosting for SSL. [/quote:376ecb6cb8]

Yup .. you are right..

http://www.modssl.org/docs/2.8/ssl_faq.html#ToC47
 

smilb

Member
Aug 10, 2001
11
0
301
You can\'t for example have www.myname.com and myname.com on a dedicated? My server has been down for several hours or I would have tried the directives by now...............
 
B

bdraco

Guest
[quote:c8ec9a1507]You can\'t for example have www.myname.com and myname.com on a dedicated? My server has been down for several hours or I would have tried the directives by now............... [/quote:c8ec9a1507]

You are probably looking for the ServerAlias directive.
 

smilb

Member
Aug 10, 2001
11
0
301
What I am tring to do is set two certs, secure.myname.com and myname.com. I have two different certs, both work just not together. I have tried this directive


<IfDefine SSL>
NameVirtualHost 65.166.xx.xxx:443
</IfDefine>
NameVirtualHost 65.166.xx.xxx:80

I have even tried a free IP#! I give up for the moment.......hate to waste a good cert.
 

smilb

Member
Aug 10, 2001
11
0
301
quote:
--------------------------------------------------------------------------------

quote:
--------------------------------------------------------------------------------
Can anyone tell me how to set a Name Virtual host directive? I am trying to put two certs on one account.......

Regards
--------------------------------------------------------------------------------



Correct me if I am wrong but isn\'t it one cert to one IP address? You can\'t use name based hosting for SSL.
--------------------------------------------------------------------------------

You were right. I had to it set-up a seperate account with a different username. Works now..........