Solved

Virtual domain hosting

Posted on 1999-01-25
2
158 Views
Last Modified: 2013-12-15
I have the domain "name.com"
I want to have virtuals setup to have;
first.name.com
second.name.com
etc.
bring up the respective pages.
How do I set up the virtual files.
I have seen the Public_html with the subdirectoies
first.name.com
second.name.com
etc. working but do not know how to set up the server
0
Comment
Question by:netnut
2 Comments
 
LVL 7

Accepted Solution

by:
HalldorG earned 50 total points
ID: 1632249
In your httpd.conf file


<VirtualHost first.name.com>
ServerName first.name.com
DocumentRoot /usr/local/firstnameroot
DirectoryIndex index.html
Alias /firstnameroot/icons /usr/local/firstnameroot/icons
Alias /anotheralias/     /usr/local/firstnameroot/thealias
</VirtualHost>

Do this for each host but note you have to have
nameserver point to the webserver for all names

0
 

Author Comment

by:netnut
ID: 1632250
thank you I will give that a try
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now