Solved

Virtual domain hosting

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is the difference between "sudo su" and "su - root" 6 105
Shell script to extract rar files in severa directories 7 74
AWS vpc peering connection 1 43
AD LDAP LDS 3 48
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

910 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

17 Experts available now in Live!

Get 1:1 Help Now