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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -