apache - Using VirtualHosts to host multiple domains -


i have searched far , wide answer, , can't find working solution. here goes,

i have 2 virtualhosts set on server, each serving separate domain name. however, when visit first domain on list, serves documentroot of second domain. have them both listening on different ports. in dns under each domain i've got them leading ip of server.

here apache .conf file:

servername 137.117.33.226  <virtualhost *:443>         servername joshstroup.me         serveralias www.joshstroup.me         documentroot /var/www/html          sslengine on         sslcertificatefile /etc/apache2/ssl/joshstroup.me.cert         sslcertificatekeyfile /etc/apache2/ssl/joshstroup.me.key </virtualhost> <virtualhost *:80>         servername respice.xyz         serveralias www.respice.xyz         documentroot /var/www/respice </virtualhost> 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -