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:


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -