multiple sites
Posted by: rharrelson (---.sip.asm.bellsouth.net)
Date: October 19, 2007 07:59PM

I am sure this is easy enough, but how do I setup the server to look at the header to determine which site is which so that I can load multiple websites on one server?

Options: ReplyQuote
Re: multiple sites
Posted by: yfastud (---.mia.bellsouth.net)
Date: October 20, 2007 05:49AM

Quote

I am sure this is easy enough
It's only easy if you've already setup using different wamp package and would like to know how to set it up w/ this wamp package, but it's not really that easy if never done it.

BTW, I'm still in progress to post an easy step-by-step for it on my site

Have fun,

[test.jlbn.net] (Sample Testing Codes for PHP, MySQL, ASP.net, SQL, JSP)
[www.jlbn.net] (Basic Guide for WAMP & Add-ons)

Options: ReplyQuote
Re: multiple sites
Posted by: toivo (203.19.130.---)
Date: October 20, 2007 10:57PM

Hi,

Edit the Apache configuration file c:\wamp\Apache2\conf\httpd.conf. Find the following two lines :

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

Uncomment the second line. This line adds the file c:\wamp\Apache2\conf\extra\httpd-vhosts.conf to
the server configuration.

The default configuration file httpd-vhosts.conf has a sample setup for two name-based virtual hosts. The line starting with ServerName specifies the domain which the virtual host serves. The domains can be full domain names, not just subdomains, as long as the domain names get resolved into your public IP address.

If you want to see how the virtual host setup works before going live, you can create dummy domains in the hosts file c:\windows\system32\drivers\etc\hosts in your development environment:

127.0.0.1 www.example.com
127.0.0.1 www.example2.com
127.0.0.1 www.example3.com

Each virtual host can have its own <directory> definition inside the <virtualhost>
tags. As the sample setup shows, it is best to keep the log files for each domain separate.

You can check the syntax of your configuration files by going to the command prompt and running the following command:
c:\wamp\apache2\bin\httpd -t

More information about name-based virtual hosts is available from [httpd.apache.org]



toivo
Sydney, Australia

Options: ReplyQuote
Re: multiple sites
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: October 26, 2007 05:15PM

read the virtual host section of my manual. link to manual is in my sig


CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my WAMP User Manual/Guide here!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote


Sorry, only registered users may post in this forum.