HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Total Noob stuck. Multiple site on single machine. (http://www.howtoforge.com/forums/showthread.php?t=43840)

darkspirit386 4th March 2010 18:20

Total Noob stuck. Multiple site on single machine.
 
Heya!!
I will probably look like a total noob, and I'm ready to accept that hehe. I've been looking around for a clear answer

Ok, I just installed ISPConfig 3.0.1.6 on a Fedora distro. Brand new machine and everything. I can access the ISP main panel.

What I'm looking to do is to have multiple website hosted on my local machine, which has only one IP adress. I want to know how to redirect to like "site1" with that www adress, "site2" to another website on the same PC, etc..

Basically, right now, I don't know at all what I'm doing, and I would need a few pointers on how to set everything. ISPConfig 2 documentation didn't help.

Any help someone?:D

Thank you in advance for the help!

mnzava 5th March 2010 10:38

Hi,
Do you want the site to be accessed in your LAN only? or public?
If on LAN only, first thing to do is to create website. On the ispconfig 3 just click on a tab at the top named SITES. Then on the left click WEBSITE then click CREATE WEBSITE. On the Domain name enter e.g example.com then enable other features like php,cgi e.t.c
Then click create website.
after u r done with website creation if u dont have nameserver to resolve name to ip, you have to add that website in ur host file. e.g in windowz XP windows\system32\drivers\etc\host file.
just add:
yourserveripaddress example.com

this means ur machine will resolve name to ipaddress.
Keep in mind you will have to do this to every pc for it to access the site.

Then open ur browser and point to website name u've created in ispconfig. BRAVO u r done.
Remember you cannot access ur site using ipaddress of the server.

If you want ur site to be accessed worldwide then ur server must be assigned static public ip address and ur registered domain name must point to ur server ip address.
DNS settings can be configured in ISPConfig if you want. but if ur DNS is hosted elserwhere just make sure it points to ur server ip address.

hope this gives you a good starting point.
i've not covered everything coz ispconfig has soo many features and i wrote this using my phone.

wish you best of luck.

Regards

darkspirit386 5th March 2010 12:35

Thanks a lot mnzava!
But I already have that part covered. FYI, I want 3 websites hosted on that machine, available for world wide public, and that'S where I'm getting stuck. The IP and the DNS is working great....at least for the first website I created. How do I access the other websites on the same machine with the same IP, any technique for that?

Again, thank you for your answer and patience!

mnzava 5th March 2010 15:27

OK, if you manage to create your website and access from anywhere that means you can easily do for other websites.

You have to understand that ip address of your server is a shared ip for any website hosted on your server. This is the concept with virtual hosting.

Now to create another website, just do the same like what you did with first website, but when you register new domain name for the second website you have to make sure it points to the same public ip of your server.

That's why i said you cant access your website using server ip address(because it's a shared ip). It has to be resolved somewhere.

e.g:
Code:

firstwebsite.com points to 192.168.0.100
secondwebsite.com points to 192.168.0.100

Hope this helps,

darkspirit386 8th March 2010 15:36

Quote:

Originally Posted by mnzava (Post 221154)
Now to create another website, just do the same like what you did with first website, but when you register new domain name for the second website you have to make sure it points to the same public ip of your server.

That's why i said you cant access your website using server ip address(because it's a shared ip). It has to be resolved somewhere.

e.g:
Code:

firstwebsite.com points to 192.168.0.100
secondwebsite.com points to 192.168.0.100

Hope this helps,

Ok, so far, I understand the concept. But really I'm stuck with "How to concretely configure that in ISPConfig 3/Demain Registrer" I do catch how it works, but I'm still not quite sure about how to set that up.

Could you tell me how to do that, pretty please? :p

Thanks!


All times are GMT +2. The time now is 10:22.

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