0 Replies - 2754 Views - Last Post: 23 August 2012 - 12:36 PM

#1 Arenlor  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 34
  • View blog
  • Posts: 389
  • Joined: 26-April 06

VirtualHost redirect sends to wrong domain

Posted 23 August 2012 - 12:36 PM

I can't seem to figure out what I'm doing wrong here. As far as I can tell it shouldn't be defaulting as Apache should recognize at least the www.byop.ws I have the following:
<VirtualHost 208.79.95.142:80>
    ServerName  www.byop.ws
    ServerName  *.byop.ws
    Redirect permanent / http://byop.ws/
</VirtualHost>
<VirtualHost 208.79.95.142:80>
    ServerName  byop.ws
    DocumentRoot /var/www/byop
</VirtualHost>
<VirtualHost [2607:f2f8:3180::11]:80>
    ServerName  www.byop.ws
    ServerName  *.byop.ws
    Redirect permanent / http://byop.ws/
</VirtualHost>
<VirtualHost [2607:f2f8:3180::11]:80>
    ServerName byop.ws
    DocumentRoot /var/www/byop
</VirtualHost>


In my httpd.conf which should redirect www.byop.ws to byop.ws (along with all other subdomains). For whatever reason though, it redirects to the first domain on 142.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1