Web Hosting Talk







View Full Version : I got a new server some help needed please someone


Greg
07-17-2000, 12:50 AM
If you want diana.com and diana.net and diana.org to go to the same place, which i am assuming you do, then you want those 3 all on the same IP number.

If those 3 domains are going to be for 3 different sites, then your correct, put them all on different IP #'s


There is a way to put all sites on one IP, but most people don't recommend that, chicken was just saying it's possible. A lot of hosts even use different IP numbers for the sub domains too, like Alabanza, but most hosts use the same IP for sub domains. Most hosts use separate IP's for each domain as well.


And i do know an intelligent female webmaster/host, she owns www.hostcaters.com...and (http://www.hostcaters.com...and) Annette at www.hostmatters.com (http://www.hostmatters.com) is another one :P

Diana
07-17-2000, 01:53 AM
I finnaly broke down and bought a RaQ3 :)
I would have got a differant kind but i dought if i would be able to get it setup right. I have the raq manual and have read the cobalts site but i can't seem to find the answer to a few questions.

1. When i setup my name server for my RaQ does it pick an IP address for my first and secondary name server buy it self, i don't see a place to enter an IP addres for my name servers. I guess the host that setup my raq decided what they are.


2. All the virtual sites i have will use the exact same name server right? In other words if i have 20 virtual sites all 20 will use
NS1.DIANA.COM
NS2.DIANA.COM

3. This is how you use IP adress right?

diana.com on IP- 60.27.80.200
diana.net on IP- 60.27.80.201
diana.org on IP- 60.27.80.202
whatever.com on IP- 60.27.80.203

am i right? thats using a list of ips the host gave me.

is this how it works....
when someone types in diana.com my name servers get looked up and then the raqs DNS finds the correct IP adress for the domain being called am i even close? :)

4. all my domains seems to be in a directory called /web what is the full path to that directory. My Ftp says its just /web

Thanks for the info.

Diana

Chicken
07-17-2000, 09:11 AM
Usually I suggest that people read up on *how* to run a DNS server, before they try to, but we'll skip that as it seems you are past that. You might even know how to, just confused.

1. Not sure if your host set it up or not. It doesn't pick them automatically, you have to enable DNS and then input the IP addessses, etc. Then after this is set up, you have to register your nameservers (at NetSol or possibly where the domain is registered).

2. Correct (if that is how you set it up of course).

3. Correct, but not that most likely, you will need two of those IP addresses for your nameservers (ns.diana.com and ns1.diana.com)

You can run the other sites off even one IP address. You can run 100 sites off one IP address if you want. Or you can purchase more and run the sites off dedicated IP addresses. Up to you.

You are more or less correct about how it works (depending on set up).

4.
/home/sites/site#/web/index.html

for users:
/home/sites/site#/users/UserName/web/index.html

Hope that helps a bit :)

Diana
07-17-2000, 11:47 AM
Chicken thanks for the help.

Yes i used 2 IP address that none of the virtual sites will use for my name servers.


(((((You can run the other sites off even one IP address. You can run 100 sites off one IP address if you want. Or you can purchase more and run the sites off dedicated IP addresses. Up to you.)))))

When you say that what do you mean i thought every domain you have has to have a differant IP? you can't have it like this can you how would they be seperated if they where.

diana.com on IP- 60.27.80.200
diana.net on IP- 60.27.80.200
diana.org on IP- 60.27.80.200
whatever.com on IP- 60.27.80.200

I have mine setup like this and i hope it's right :)

diana.com on IP- 60.27.80.200
diana.net on IP- 60.27.80.201
diana.org on IP- 60.27.80.202
whatever.com on IP- 60.27.80.203

NS1.DIANA.COM ON IP- 60.27.80.205
NS2.DIANA.COM ON IP- 60.27.80.206

i have registered thouse name servers with my domains at networksolutions....am i right? I bet you don't know to many female webmaster?


something strange that happened was i have a virtual site setup called for an example whatever.com on my RaQ3 which has not been registered yet at networksolutions and i have whatever.com online at another host (not on my server) and when i typed in the IP address to get whatever.com on the RaQ it came up just like it should now at the end of that IP address i put /test.html for something i was messing with to see if it worked and what it did was bring up my custem 404 error page from my whatever.com thats on the other host? How is that possible



[This message has been edited by Diana (edited 07-17-2000).]

Annette
07-17-2000, 02:18 PM
It is not entirely necessary for all domain to have a unique IP - in fact, some hosts will use a shared IP to host multitudes of domains, using headers to point requests to the right domain(s).

Greg is right, though - if you want those domains to all point at the same place, give them all the same IP.



------------------
Annette
Hosting Matters, Inc.
http://www.hostmatters.com

Michael
07-17-2000, 03:36 PM
Diana

There are a couple of ways I would do this:

1)If diana.com was the first site created on 60.27.80.200 you can create A records for
diana.org and diana.net pointing to 60.27.80.200.

So the A records would be


diana.net ---> 60.27.80.200 www.diana.net (http://www.diana.net) ----> 60.27.80.200

and

diana.org ---> 60.27.80.200
www.diana.org (http://www.diana.org) ----> 60.27.80.200


2)If diana.com was not the first site created on the IP you can:

PLEASE NOTE: ALWAYS BACKUP httpd.conf BEFORE YOU START EDITING IT.

You will need to be logged in as root to do the following.

-Edit the virtual host table for diana.com which can be found in /etc/httpd/conf/httpd.conf . Add the following lines the virtual site entry for diana.com

ServerAlias diana.net
ServerAlias www.diana.net (http://www.diana.net)
ServerAlias diana.org
ServerAlias www.diana.org (http://www.diana.org)

So when you get done editing the virtual site it should look like this:
(Notice where I added the lines)

NameVirtualHost 60.27.80.200
<VirtualHost 60.27.80.200>
ServerName www.diana.com (http://www.diana.com)
ServerAdmin site12
DocumentRoot /home/sites/site12/web
ServerAlias diana.com
ServerAlias diana.net
ServerAlias www.diana.net (http://www.diana.net)
ServerAlias diana.org
ServerAlias www.diana.org (http://www.diana.org)
RewriteEngine on
RewriteCond %{HTTP_HOST} !^209.217.42.216(:80)?$
RewriteCond %{HTTP_HOST} !^www.diana.com(:80)?$
RewriteRule ^/(.*) http://www.diana.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/www.diana.com/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/www.diana.com/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>


After you are done editing the file, make sure and save the file. For the changes to take affect you will need to restart httpd, run the following command from command line:

/etc/rc.d/init.d/httpd restart

Your done!

All traffic going to diana.org and diana.net will go to diana.com.

If you need any help please do not hesitate to email me.

Regards
Mike
mfritsch@hostgo.com


[This message has been edited by Michael (edited 07-17-2000).]

Diana
07-17-2000, 04:16 PM
wow Michael that's way over my head lol

I didn't want each domain pointing to diana.com im sorry

I only wanted to know if this was correct each domain has its on site.

diana.com on IP- 60.27.80.200
diana.net on IP- 60.27.80.201
diana.org on IP- 60.27.80.202
whatever.com on IP- 60.27.80.203

NS1.DIANA.COM ON IP- 60.27.80.205
NS2.DIANA.COM ON IP- 60.27.80.206


But thanks for the help i just wanted to be sure i had things setup right before i found out when it's to late.

Diana

Michael
07-17-2000, 04:23 PM
Oooops....sorry.

Regards
Mike

Chicken
07-17-2000, 08:36 PM
Originally posted by Diana:
When you say that what do you mean i thought every domain you have has to have a differant IP? you can't have it like this can you how would they be seperated if they where.

diana.com on IP- 60.27.80.200
diana.net on IP- 60.27.80.200
diana.org on IP- 60.27.80.200
whatever.com on IP- 60.27.80.200

I have mine setup like this and i hope it's right :)

diana.com on IP- 60.27.80.200
diana.net on IP- 60.27.80.201
diana.org on IP- 60.27.80.202
whatever.com on IP- 60.27.80.203

NS1.DIANA.COM ON IP- 60.27.80.205
NS2.DIANA.COM ON IP- 60.27.80.206

i have registered thouse name servers with my domains at networksolutions....am i right? I bet you don't know to many female webmaster?

Good good. Everything sounds fine. And yes, you can do it either way! Pretty neat eh? In the case of the same IP addresses, the server will direct based on the name (it works fine). My suggestion is to try it, just to see both ways. You won't see much of a difference and there *are* very valid reasons that you'd NEED to put sites on a dedicated IP address (example: SSL).

Really, I prefer to have dedicated IP addresses for each domain. I don't have dedicated IP's for some sites. I also don't have dedicated IP's set for subdomains (these are actually seperate sites with no connection to mine). It comes down to cost sometimes, as some hosts offer free IP addresses and some charge quite a bit for blocks.

And Annette, Coreace, and a few others *are* the only female webbers I know. Always good to know more :)

chicken@NOSPAMwoobster.com

Diana
07-17-2000, 10:14 PM
Thanks Chicken, i feel like i know what im doing now for a change lol

I forgot to ask how can i send mail from webmaster@mydomain.com or can you, i use outlook express and i can not get a random image cgi script to work it worked on my other server but it will not on the raq i call the script like this

<img src="cgi-bin/randomimage.cgi">

any idea why that will not work? Im using it the exact same way i am on my other server but it dosent work on the raq.




[This message has been edited by Diana (edited 07-17-2000).]

Chicken
07-18-2000, 08:42 AM
I'm not sure about the cgi script... woldn't you "include" it rather than just link to it? (via SSI???)

Mail, heh there's a good one. Relaying denied? Get pop auth before smtp and you'll be all set... I may have it for you if you can't/don't know where to find it.

Shoot me an email and I'll get it to you