I currently have a production site on my server and i'm looking to add a development site. The production site is using the only ip address I have for a single domain SSL certificate. Is there a way I can add the development site without purchasing another ip. I don't necessarily need SSL for the development site. Perhaps a mix of ip and name based virtualhosts? The current setup is as 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 something like this 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 would I need to use a different port, maybe 8080?