Domain Addition Problem Virtual Hosts

Discussion in 'Apache' started by Freewebspace, Nov 11, 2008.

  1. #1
    I have a server at 64.xx.xx.xx

    I need to add a domain to the apache as a Virtual Host.


    What is the Virtual Host command I should use..?
     
    Freewebspace, Nov 11, 2008 IP
  2. vovaNux

    vovaNux Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Something like this:

    <VirtualHost 64.xx.xx.xx:80>

    ServerName www.localhost.com
    ServerAlias www.localhost.com localhost.com
    ServerAdmin webmaster@localhost.com
    DocumentRoot /var/www/html/localhost.com/
    UseCanonicalName OFF

    <Directory /var/www/html/localhost.com>

    Options +Includes -Indexes
    Allowoverride All

    </Directory>

    </VirtualHost>
     
    vovaNux, Nov 12, 2008 IP