virtual host with .info domain

Discussion in 'Apache' started by microhop, Jun 30, 2010.

  1. #1
    I'm trying to create a virtualhost with the following

    <VirtualHost 192.168.x.x>
    ServerAdmin webmaster@abc.info
    DocumentRoot /var/www/abc.info/web
    ServerName www.abc.info
    <directory /var/www/abc.info>
    #Options Indexes FollowSymLinks
    AllowOverride all
    Order Allow,Deny
    #Deny from all
    Allow from all
    </directory>
    </VirtualHost>

    apache doesn't seem to like the .info in both the DocumentRoot and ServerName they both appear in red.

    Is there something in a configuration file or elsewhere to allow for the use of a .info domain?
     
    microhop, Jun 30, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    Use the following VirtualHost entry:

    Then restart the httpd service. Paste the error message you receive while restarting the httpd service.
     
    madaboutlinux, Jul 1, 2010 IP
  3. microhop

    microhop Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3

    madaboutlinux

    Thanks, worked fine after you help and a chmod change. Looks like all I left out was the ServerAlias. I didn't know it was required. Before I wasn't getting an err but it would load my defualt site at /var/www.

    Thank again
    microhop
     
    microhop, Jul 1, 2010 IP