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!

virtual host? or dns?

Status
Not open for further replies.

cleansedbb

Technical User
Feb 11, 2002
95
US
I have 2 servers
ip: 123.123.123.121
ip2: 123.123.123.122
the first is the second is mail.domain.com

I want to put a message board on mail.domain.com but
have it show forums.domain.com instead of mail.domain.com
these forms are a resource hog and I get very little
emails so that server would be ideal for me to use.
I have another resource hog on my first server so
I dont want to put 2 hogs on the same one.

do I do a virtual host for forums.domain.com? do i do
it to both pc's? or just one? and which one?

one is Linux running apache 1.3.22 while the other is
NT and running apache 1.3.24

not sure where to start, or how to setup the virtual domain.
I've read some about them but still confuses me a little.

Thanks,

CBB
 
Hi mate,

On the mail.domain.com server, use a virtualhost directive to allow forum.domain.com to be used.

Should be similar to the following.

<VirtualHost *:80>
UseCanonicalName off
ServerName forum.domain.com
ServerAlias ServerAdmin webmaster@domain.com
DocumentRoot / ScriptAlias /cgi-bin/ &quot;C:/ ErrorLog logs/forum/error.log
CustomLog logs/forum/access.log common
CustomLog logs/forum/referer.log referer
CustomLog logs/forum/agent.log agent
ServerSignature EMail
</VirtualHost>

You then need to create one for the mail.domain.com as when you use virtualhosts, all sites must be in the virtualhosts.

The first one is the default.

You will also have to make sure that you dns points the forum.domain.com to the correct server.

Hope this helps Wullie

 
below is what I tried and I'm not getting anywhere.
any suggestions?

Port 80
Listen 80
DocumentRoot &quot;e:/web/htdocs&quot;
servername mail.domain.com
servercontact webmaster@domain.com

NameVirtualHost *
#

<VirtualHost *>
UseCanonicalName off
ServerName mail.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot &quot;e:/web/htdocs/&quot;
ScriptAlias /cgi-bin/ &quot;e:/web/cgi-bin/&quot;
ErrorLog e:/logs/http_error.log
CustomLog e:/logs/http_access.log common
</VirtualHost>

<VirtualHost *>
UseCanonicalName off
ServerName forum.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot &quot;e:/web/forum/ ScriptAlias /cgi-bin/ &quot;e:/web/forum/cgi-bin/&quot;
ErrorLog e:/logs/forum_error.log
CustomLog e:/logs/forum_access.log common
</VirtualHost>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top