Проблема с настройкой виртуального хоста Ubuntu 14.04

У меня проблемы с настройкой виртуальных хостов в Ubuntu 14.04.

Когда я пытаюсь получить доступ к домену виртуального хоста в браузере, он приводит к папке www.

Вот мой файл виртуального хоста в / etc / apache2 / sites-enable / test:

<VirtualHost *:80>
      ServerName test.local.area
      ServerAlias teste.local.area
      DocumentRoot /var/www/git_pro/test
      DirectoryIndex index.php index.phtlm index.html index.htm index.shtml
</VirtualHost>

Вот сайт по умолчанию:

файл: 000-default. conf

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName localhost
    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride all 
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride all
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

А вот файл hosts:

127.0.0.1 localhost
127.0.1.1 Bruno-PC
127.0.1.2 test.local.area

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Кто-нибудь, кто мне поможет?

Спасибо.

1
задан 22 July 2014 в 21:29

1 ответ

Попытайтесь переименовать "тест" к "test.conf".

Включают правило в основную конфигурацию Apache2, был изменен от "*" в Точном к" * .conf" в Надежном человеке.

1
ответ дан 22 July 2014 в 21:29

Другие вопросы по тегам:

Похожие вопросы: