Solved

Virtual domain hosting

Posted on 1999-01-25
2
161 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

810 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