Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

separating two websites at one IP address 3

Status
Not open for further replies.

woodrat

Technical User
Apr 13, 2006
3
GB
Can anyone tell me how I can operate two un-related websites from one IP address? - My ISP has allocated me 50mb of space on their apache server (running Linux), and I now have two domain names 'pointing' to the same IP address, so that either calls the index.htm page. How can I 'separate' them so that when the correct index page is called up for each separate - Is there a simple script available that will do this?
 
Typically, your ISP must set it up in their apache configuration.

If your ISP allows a cgi or PHP index page, you could write a script that would pick a different directory dependant on the request URI.

-
 
OK, -I think they have their apache configured to allow cgi; - at least there is a 'cgi-bin' folder in the parent folder, so what sort of coding could I be looking at on a cgi index page? - you would guess I am a newbie, - so it'd best be dead simple.. (BG) what else do I need to do?
 
Honestly, I think you'll have to talk to your ISP about it. There aren't any slick undercover ways to have two domain names. Your ISP will likely be very cooperative with you, as it isn't really any big deal to them.

-
 
I've been trying to get sense out of them for months... their latest offerings were: - 'you would need to use a javascript', - and 'have a look on the web for something, - or ask in the relevant forums'... Not a great deal of help, -perhaps I am their first customer to ask... and they dont yet know how either. Snag is, I was 'lured' by them to get the second domain name registered/hosted via them, - and up to now I am unable to use it, - and it is going to be an up-hill struggle to get it 'moved' to another hosting service at their rate of cooperation... Ah well...
 
The apache configuration files has entries for virtual host information. They have to set this for you.
 
Look into .htaccess files and url redirection. As long as you put the websites into different folders it can work. You will also have to ask your isp if they support .htaccess files.
 
Park your domains with a registrar that offers redirection, then point each domain to a different page at your isp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top