HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Point domains to dedicated server (http://www.howtoforge.com/forums/showthread.php?t=13181)

Russ649 4th June 2007 22:29

Point domains to dedicated server
 
Hi,

I have a dedicated server that I'd like to host a number of websites on. I've copied a few of my sites over to it and have a problem pointing my domain names to the site.

Say, for example my server IP address is 123.234.345.456. I can set my sites up so I can access them similar to http://123.234.345.456/SiteOne/, http://123.234.345.456/SiteTwo/, http://123.234.345.456/SiteThree/ etc

I have domain names to go with these e.g. SiteOne.com, SiteTwo.com etc. I can use web forwarding to point SiteOne.com to http://123.234.345.456/SiteOne and it works ok except all the links say http://123.234.345.456/SiteOne/page.html when I would rather it said www.SiteOne.com/page.html

How might I fix this ?

Thanks,

Russ

falko 5th June 2007 19:56

You must create virtual hosts for each of your web sites (see http://httpd.apache.org/docs/2.0/vhosts/name-based.html ), and then you must create A records for your domains, not forwards.


All times are GMT +2. The time now is 12:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.