What i Always do is create a siteconf in /etc/httpd/conf.d You can copy a site from /etc/httpd/conf/vhosts/sitexx to /etc/httpd/conf.d/a_first_site.conf I then change the names in the servername point the web directory to somewhere on the server say /home/sites/servername Create the directory and /web directory, put a standard index.html page say server xx im alive
Reload httpd and the ip will go to this First site Steffan -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens Ken - Precision Web Hosting, Inc Verzonden: vrijdag 11 maart 2011 8:00 Aan: BlueOnyx General Mailing List Onderwerp: [BlueOnyx:06648] Re: Multiple Sites to IP Address ----- Original Message ----- From: "Abdul Rashid Abdullah" <[email protected]> To: "BlueOnyx" <[email protected]> Sent: Thursday, March 10, 2011 6:36 PM Subject: [BlueOnyx:06645] Multiple Sites to IP Address > As everyone knows, you can have multiple sites for an IP address when SSL > is > not needed. However, there is a side effect. I had a customer who put in > mail.siteb.com and since there wasn't a web alias in the configuration, > but > another site, it resolved to www.sitea.com, because when it resolved the > IP, > that site was the IP address that was I guess the first site. > > Of course, now he is upset because he has no affiliation with > www.sitea.com. > > In IIS, I can force host header resolution to the point where IP > resolution > won't work. In other words, http://www.sitea.com will work but not > http://10.10.10.10. > > How could we accomplish the same thing with BlueOnyx? > > What I had to do in the mean time, was add all of the A records to the web > aliases, but my thought is if he types in the IP address, he will get > upset. > Of course, I could just simply give him his own IP address and I might > have > to do that for this customer, but what about other customers? > > Regards, > > Rashid > > Rashid You could add mail.siteb.com as a "web server alias" for the www.siteb.com site. I do that with my site and my customer's sites. E.g. http://mail.precisionweb.net ---- Ken M Precision Web Hosting, Inc. http://www.precisionweb.net _______________________________________________ Blueonyx mailing list [email protected] http://www.blueonyx.it/mailman/listinfo/blueonyx _______________________________________________ Blueonyx mailing list [email protected] http://www.blueonyx.it/mailman/listinfo/blueonyx
