Ok, the problem is presented like this:
- I have a single IP (184.108.40.206)
- I have multiple domains
- I work with subdomains for testing
So basically I need to host www.example.com, wwww.example2.com as well as subdomains for a couple of development users user1.example.com and user2.example2.com. On top of that www.example.com will also need to use port 443.
I've seen a lot of things suggested and none of them seem to work. Maybe I just need the blanks filled in here that will actually work?
Listen ??? NameVirtualHost ??? <VirtualHost ???> DocumentRoot /home/user1/example.com ServerName user1.example.com ErrorLog logs/user1.example.com-error_log CustomLog logs/user1.example.com-access_log common from all <Directory "/home/user1/example.com/public"> AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost ???> DocumentRoot /home/user2/example.com ServerName user2.example.com ErrorLog logs/user2.example.com-error_log CustomLog logs/user2.example.com-access_log common from all <Directory "/home/user2/example.com/public"> AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost ???> DocumentRoot /home/www/example.com ServerName www.example.com ErrorLog logs/www.example.com-error_log CustomLog logs/www.example.com-access_log common from all <Directory "/home/www/example.com/public"> AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> # Entry for 443 <VirtualHost 220.127.116.11:443> SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile /etc/httpd/conf/ssl/example/www.example.com.crt SSLCertificateKeyFile /etc/httpd/conf/ssl/example/example.key SSLCertificateChainFile /etc/httpd/conf/ssl/example/gd_bundle.crt SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown DocumentRoot /home/www/example.com ServerName www.example.com </VirtualHost>
Then the same sort of thing for example2.com. Example2.com may use a different ssl cert than example.com, which I know will probably require a second IP address, but maybe someone here can advise.