
|
View Full Version : How to setup a virtual hosting manually?
jeffrylee 11-23-2002, 11:17 PM Please enlighten me,
How do i setup a virtual host manually step by step without using any control panel, what i mean is directly editing the apache host file.
Please provide me a link or maybe you can explain it to me like im a 10 year old boy.
Thanks
kongen 11-23-2002, 11:27 PM why do it manually when you have isp4you, and it is free?
http://nodomainname.de/html/modules.php?name=News&file=article&sid=29
netmask001 11-24-2002, 04:56 PM Hi,
Though I'm not giving you *exact* detailed steps, still here is the brief instruction set, which should help you to explore details and setup the things manually,
Basically for complete setup of a virt. domain there are three steps,
A. Setup the DNS such that web address (www.<yourvirtualdomain>.com - for example) points to the correct IP address (the IP may be shred or dedicated), also dont forget to setup proper MX records to the server's IP, which will recv. inbound mail for this domain
B. Then comes config of sendmail (or mail server, whatever) . Use the mail servers documentaion to include this domain in the list where you have other domains listed (so that mail server also knows to accept mail for this domain)
C. Finally, the apache (or the web server), simply speaking, there are two common types (shared IPS, aka name based and ded IP entries for virtual hosts) Yoou can refer to sample entries in apache's help files . In short, there is entry for IP address or name, entry for directory for web server's home location, server alias, and admin's email address
*** After you have done this, you should do a stop/start (or restart) of DNS, sendmail (or mailserver) and Apache (or web server) so that these entries take effect. As a safe measure, ypu shpuld back up any file, you are going to modify.
This is not complete and elaborate, but as mentioned above this should get you a fair idea of what needs to be done. There may be other steps as well, for example creating users, directories setting up user/group permissions, but the above are the minimum necessary steps, IMHO.
Good Luck.
Neo3Net 11-24-2002, 06:03 PM Or check out WebMin. Its free and its more of a SSH Replacement then a CP. http://webmin.com
It controls each part of a server (Apache, Bind...)
Check it Out
jeffrylee 11-25-2002, 12:01 AM Thanks mates,
So the basic step to create a host account are
1. Setup the domain DNS in linux
2. Configure the mailserver
3. Setup the Apache for Virtual or Share domain
4. Restart the DNS, apache and mailserver
Do I missed something?
I guess this is what i need, i'll just research the detail where and how to do it.
What i know is all this modification is just a text file configuration, right?
BTW, what about FTP?
StevenG 11-25-2002, 12:51 AM How do i setup a virtual host manually step by step without using any control panel, what i mean is directly editing the apache host file.
Why post "Use Webmin" or "isp4you" its obvious he didn't ask that question :rolleyes:
There are some really good apache web server manuals around..
try this link too, may be helpfull.. http://httpd.apache.org/docs/vhosts/index.html
netmask001 11-25-2002, 08:19 AM Originally posted by jeffrylee
Thanks mates,
So the basic step to create a host account are
1. Setup the domain DNS in linux
2. Configure the mailserver
3. Setup the Apache for Virtual or Share domain
4. Restart the DNS, apache and mailserver
Do I missed something?
I guess this is what i need, i'll just research the detail where and how to do it.
What i know is all this modification is just a text file configuration, right?
BTW, what about FTP?
Yes, you got it right. These are text files.
Ok, sorry for ftp...
depending on your needs, you *may* need to change ftp config files - proftpd.conf (for example) as well. Alternatively, there are mechanisms so that you can have the users governed by default config. The ftp server will work with their own domain name because you would have already added the entry for mapping the <domain>,com or ftp.<domain>.com to respective IPS via DNS modifications
jolly 11-25-2002, 02:59 PM Originally posted by jeffrylee
Please enlighten me,
How do i setup a virtual host manually step by step without using any control panel, what i mean is directly editing the apache host file.
Please provide me a link or maybe you can explain it to me like im a 10 year old boy.
Thanks
Hey don't tell anyone about it....
Note: By pressing the Agree button you declare that you are over the age of 13. We do not allow members under the age of 13 to join this community. Anyone found violating this rule will lose their membership and their account will be frozen.
lol - ^^ he is not really 10 years old - he said explain it as if he was 10
Choppy 11-26-2002, 07:25 PM OJI i think jolly knew that already was just trying to pass some humor.
:D
solyalex 11-26-2002, 08:50 PM i recommend webmin www.webmin.com for a plain linux adminstration
nick1234 04-23-2003, 11:08 AM But I think the webpages URL for isp4you is:
http://nodomainname.de
and it`s jumping to: http://isp4you.com
It`s version 0.9.0 out.
Cheers
nudetravel 04-23-2003, 12:29 PM Originally posted by kongen
why do it manually when you have isp4you, and it is free?
http://nodomainname.de/html/modules.php?name=News&file=article&sid=29
OK, I admit Kongens post was off-thread, and now I am adding to it - but ISP4You is not free according to the website - I wish it was I would like to have it!!
mainarea 04-23-2003, 12:35 PM Nick1234 - You're a grave digger :D - this post is from November :)
- Matt
nudetravel 04-23-2003, 03:24 PM Ooops - I didnt notice that either. Someone using the search feature to promote their stuff :rolleyes:
RogelioH 05-29-2003, 07:30 PM Isp4u is no longer free is it? if anyone has a free copy share?
datums 05-30-2003, 12:09 AM The toughest part would be setting up multiple email address for different domains names. The apache stuff is pretty simple.
There alot more control when you do it manually. Cpanel does it's thing , but what does it actually do? It takes complete control of your server, ok not complete but it's like oxygen to your body, you take it away and it dies. Same with a cpanel server.
Manually, you will learn alot about what goes into setting up a webserver /mailserver /dns server.
|