Apache 101 help !



Hi,

I am new to the web server .... please help me with this 2 questions.


1/ Setup the basic web server myhost.mydomain.com
2/ Setup the virtual host www.mydomain.com


My linux system hostname is: myhost.mydomain.com
IP: 1.2.3.4
DNS: www.mydomain.com CNAME myhost.mydomain.com


Please explain this:
If I use default DocumentRoot /var/www/html for question #1, and use
VirtualHost for #2, I no longer see the index.html file from
DocumentRoot of #1


Question #1 does not asked to use the Virtual host.
Can I just use the default DocumentRoot to config the web server OR
have to use the Virtual host ?


Thanks
Tam


.



Relevant Pages

  • Re: SSL questions
    ... >> you use Apache as a web server. ... So make sure that you have an IP based virtual host. ... >> the hosting service that you want one for SSL. ... >> be sure that all browsers support your SSL certificate. ...
    (alt.php)
  • Re: Adding users...
    ... > root, you will have to setup an Alias for each user, or to define ... > another virtual host. ...
    (freebsd-questions)
  • is there anyway to do this with SBS
    ... Is there anyway I can setup a virtual host in IIS to a sub domain ...
    (microsoft.public.windows.server.sbs)
  • Apache Virtual Server
    ... I tried to setup two virtual servers in our LAN. ... Everything seemed very easy but the configuration won't find the ... second domain. ... virtual host, ...
    (alt.os.linux.suse)
  • Re: problem with Apache 2.0.50 on FC1
    ... > ...or more likely it's an issue with my configuration. ... > setup name-based virtual hosts. ... In this file you configure the two virtual domains in the following way: ... # You may use the command line option '-S' to verify your virtual host ...
    (Fedora)