Web Hosting Talk







View Full Version : Confused newbie Two Q's regarding - Sites - Users - IP's


Paul_M
10-15-2001, 04:19 AM
Hello,

I've just aquired a RaQ4 server with Verio (dedicated hosting), and have a few (well two really (fundamental, easy?)) questions about virtual sites, IP's, Users etc. I would appreciate any help. I have searched the forum, but not found really what I need to know (maybe because it's so simple).

The situation is, I have one main IP (for the server admin etc.) and two more 'virtual' IP's.

My questions relate to how it all fits together (very new at this).

You have one IP for the server, not to be used for anything but admin access for the server.

I have then set up a 'virtual site' with one of the virtual IP's. I then have one 'admin' user for that site, and one 'normal user'. This site is www.whatevername.com and whatevername.com etc. I can preview this on the web by typing in the IP address it is assigned to (verio do the dns work).

1) If I now want a new site with www.anothername.com and anothername.com, can I use the same IP as the other 'virtual site', and if so, why do I have two 'virtual IP's', and if it can share the same IP, where can I preview the site before the domain name has been set up?

2) Where do 'users' come into it. I thought of users as 'site users' meaning they have an email account etc. under www.whatevername.com. So a user on 'site1' called Dave, would have the email address dave@whatevername.com and a user on site2 called pete would have the email address pete@anotername.com.

However, when I read things, it seems each 'user' can have his own domain name etc. I thought each 'site' would have it's own domain name(s) and each user would be a user on that domain?

Any help GREATLY appreciated.

skylab
10-15-2001, 04:36 AM
good luck with your raq. i started on my raq4i a few weeks ago, and have learned so much from just playing around with it.


anyhow, you may want to read over the RaQ4 manual(in .pdf form) at the cobalt site. alot of your questions are explained in there. you can get the manual from the cobalt website(i can post the URL if you need).

Paul_M
10-15-2001, 04:50 AM
Thanks, I have read through the manual, but the more I read the more confused I become! I have learnt a lot already about the configuration etc. and if I were only having one site, with one domain name and one IP, I would be more than happy!

I don't want each user to have their own site, I just want each 'virtual site' to have a group of users who each have their own bob@whatavername.com address (about 4 per site max). This seems fine judging by the manual.

I also have 3 sites (www.whatevername.com www.anothername.com and www.yetanother.com) I want to set up with two "virtual IP's", so at least two will have to share one of the 'virtual' IP's. Again, from what I read in the manual this seems fine, but I just need this clearing up before I go ahead and mess stuff up!

dutchie
10-15-2001, 05:23 AM
Hi Paul !



You can put as many domainnames on a ip as you like.
You can also use the main ip for that if you like, but some say there might be a security issue in doing that.

A user on a domain, can have as many "aliasses" as he likes, put they have to be unique in the domain.

I always setup one account for my users (the siteadmin account) and put "@www.domainname.com" in the alias field.
This is a "catchall" wich means all mail at @domainname.com will arrive at that account.
For the email adresses of the other users at that domain you make exceptions to that catchall by filling in names in the aliasses field.
Then automaticly all mail goes to the account with @www.domainname.com except for the exceptions made by the other users in that domain.

I hope its a bit clear :)

goodluck !

Paul_M
10-15-2001, 05:48 AM
OK, so that's a bit clearer (also playing with the CP and conf files etc.) BUT that begs the question for me.....

Whate's the use in having two virtual IP's as opposed to one? If I can have many sites/urls on one IP?

Thanks again, but the reason for having two IP's seems beyond me!

:)

dutchie
10-15-2001, 07:16 AM
If a site needs a ssl certificate you need a dedicated ip.
Also when you run DNS you might need 2 unique ip's.

Paul_M
10-15-2001, 07:31 AM
Cheers, ploughing through it now.... waiting for next disaster!

:)

jahsh
10-16-2001, 06:25 PM
also, sometimes users want their own IPs. to set up multiple virtual hosts using one IP you need to edit /etc/httpd/conf/httpd.conf file
and then you need to put the following for each domainname:


NameVirtualHost x.x.x.x

<VirtualHost x.x.x.x>
ServerName www.test2.com
ServerAdmin admin
DocumentRoot /home/sites/site2/web
ServerAlias test2.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^x.x.x.x(:80)?$
RewriteCond %{HTTP_HOST} !^www.test2.com(:80)?$
RewriteRule ^/(.*) http://www.test2.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site2/users/$1/web/$3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>

for each domain name you will need one of these starting with
<VirtualHost x.x.x.x>
and ending with this </VirtualHost x.x.x.x>

hope this helps!!