linux - How do I mix ip and name based virtualhosts on the same server? -
i have production site on server , i'm looking add development site. production site using ip address have single domain ssl certificate. there way can add development site without purchasing ip. don't need ssl development site. perhaps mix of ip , name based virtualhosts? current setup follows:
# production namevirtualhost 123.45.678.910:80 <virtualhost 123.45.678.910:80> documentroot /var/www/html/production servername www.example.com </virtualhost> namevirtualhost 123.45.678.910:443 <virtualhost 123.45.678.910:443> documentroot /var/www/html/production servername www.example.com </virtualhost>
thanks paul
edit
would work?
# production namevirtualhost 123.45.678.910:80 <virtualhost 123.45.678.910:80> documentroot /var/www/html/production servername www.example.com </virtualhost> namevirtualhost 123.45.678.910:443 <virtualhost 123.45.678.910:443> documentroot /var/www/html/production servername www.example.com </virtualhost> # development <virtualhost 123.45.678.910:80> documentroot /var/www/html/development servername dev.example.com </virtualhost>
or need use different port, maybe 8080?
you either:
- use different port altogether.
- use name-based virtual hosts single certificate. in case, need certificate multiple subject alternative names (
www.example.com
,dev.example.com
), or perhaps wildcards (although that's bit discouraged). - use name-based virtual hosts multiple certificates, provided clients support sni (which excludes version of ie on xp, mobile browsers , java 6 , below).
Comments
Post a Comment