Hosting multipule domains behind a router
Posted by: tomfmason (---.ks.ks.cox.net)
Date: June 08, 2006 02:23AM

I am pretty sure that this is a vitrual host issue. Below is a copy of what I have for vhost

NameVirtualHost 192.168.15.105
NameVirtualHost 70.178.204.93

<VirtualHost 192.168.15.105 70.178.204.93>
DocumentRoot C:/wamp/www/owpt
ServerName owpt.biz
ServerAlias owpt
</VirtualHost>

<VirtualHost 192.168.15.105 70.178.204.93>
DocumentRoot C:/wamp/www/thomashostings
ServerName thomashostings.com
ServerAlias thomashostings
</VirtualHost>


The problem is that both [www.owpt.biz] and [www.thomashostings.com] are loading the same index page. If you follow the link you will see that they are both the same exact page. I have two different index pages one for thomashostings and one for owpt but only owpt is loading for both sites.
Any help would be greatly apericated.

Options: ReplyQuote
Re: Hosting multipule domains behind a router
Posted by: CyberSpatium (67.170.181.---)
Date: June 08, 2006 04:10AM

change to:

NameVirtualHost *.80

<VirtualHost *.80>
DocumentRoot C:/wamp/www/owpt
ServerName owpt.biz
ServerAlias owpt
</VirtualHost>

<VirtualHost *.80>
DocumentRoot C:/wamp/www/thomashostings
ServerName thomashostings.com
ServerAlias thomashostings
</VirtualHost>

restart apache for the new settngs to take effect.

Options: ReplyQuote
Re: Hosting multipule domains behind a router
Posted by: tomfmason (---.ks.ks.cox.net)
Date: June 08, 2006 07:12AM

I use port 8080 so I changed *.80 to *.8080 and it loads the wamp index.php file on both domains. Besicaly it is the same problem but now it loads the wamp page instead of the owpt page.

Options: ReplyQuote
Re: Hosting multipule domains behind a router
Posted by: CyberSpatium (67.170.181.---)
Date: June 08, 2006 09:22AM

NameVirtualHost *.8080

<VirtualHost *.8080>
DocumentRoot C:/wamp/www
ServerName localhost
ServerAlias locallhost

<VirtualHost *.8080>
DocumentRoot C:/wamp/www/owpt
ServerName owpt.biz
ServerAlias owpt
<Directory C:/wamp/www/owpt>
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>
<VirtualHost *.8080>
DocumentRoot C:/wamp/www/thomashostings
ServerName thomashostings.com
ServerAlias thomashostings
<Directory C:/wamp/www/thomashostings>
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Options: ReplyQuote
Re: Hosting multipule domains behind a router
Posted by: tomfmason (---.ks.ks.cox.net)
Date: June 08, 2006 01:43PM

I fixed it. After searching and and reading everthing I could find on vhost. Here is the end result

NameVirtualHost *:8080

<VirtualHost *:8080>
ServerName owpt.biz
ServerAlias *.owpt.biz
DocumentRoot "C:/wamp/www/owpt"
</VirtualHost>

<VirtualHost *:8080>
ServerName thomashostings.com
ServerAlias *.thomashostings.com
DocumentRoot "C:/wamp/www/thomashostings"
</VirtualHost>

Thank you for all of your help. I realy appericate it. If anyone has this same issue in the future you can refer them to this post. If you want you can check the links. They are just simple text sites, for now. [www.owpt.biz] and [www.thomashostings.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.