Solved

Virtual domain hosting

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX backups with VEEAM 8 118
CENTOS DHCP Server / PXE/TFTP 14 154
SUSE Linux Enterprise 11.x Ensure tftp server is not enabled 1 44
trouble on installing syslog-ng on CentOS 7 7 53
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.

839 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