Forum Moderators: phranque

Message Too Old, No Replies

Virtual Servers and such

multiple domains

         

Mike_Conte

6:46 am on Jun 25, 2008 (gmt 0)

10+ Year Member



okay, i am not one of those people that do not search before posting. i have searched.

right now what you get when you go to localhost and my mydomain.com (which i have set up on dns to go to my ip on port 80) is exactly the same.

BUT.......

when i go to site1.localhost (a site that contains the content that i want) it is NOT the same as site1.mydomain.com(which my browser says dosen't exist.)

ALSO......

i would like to know how i can setup a domain to make site1.localhost the same as mydomain2.com

any ideas?

coopster

1:20 pm on Jun 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Mike_Conte.

The Apache Virtual Hosts [httpd.apache.org] documentation explains how to set up multiple sites on a single server. Basically you Listen on a port (80) for incoming connections and your server locates the correct <VirtualHost> container for the incoming request.

Mike_Conte

3:35 pm on Jun 25, 2008 (gmt 0)

10+ Year Member



yes, i know.

i have the microsoft HOSTS file and the http-vhosts.conf adjusted.

i cannot find this from a remote connection.

coopster

8:38 pm on Jun 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you are behind a firewall you need to set up that HTTP server in the DMZ so outside traffic can access the server. Make sure you know what you are doing though, because you are opening that server to public exploit at that point.

Mike_Conte

8:42 pm on Jun 25, 2008 (gmt 0)

10+ Year Member



there is no firewall, and i forwarded the port.

coopster

8:49 pm on Jun 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Can you describe "remote connection" because I believe I am thinking something other than you.

Mike_Conte

10:40 pm on Jun 25, 2008 (gmt 0)

10+ Year Member



as in anyone can access the website from siteone.com and sitetwo.com, and siteone and sitetwo are hosted on the same server.

coopster

2:21 pm on Jun 26, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Anyone. You mean anyone from your same LAN?

Mike_Conte

1:15 am on Jun 27, 2008 (gmt 0)

10+ Year Member



no, anyone from the internet can access. i want to set up shared hosting website on my machine.

[edited by: Mike_Conte at 1:28 am (utc) on June 27, 2008]