Apache2 Настройка нескольких доменов

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

Вот моя последняя попытка:

ports.conf:

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

# NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

sites-available / data.paulbgd.me:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName  www.data.paulbgd.me
        ServerAlias data.paulbgd.me

        # Indexes + Directory Root.
        DirectoryIndex index.html
        DocumentRoot /var/www/data.paulbgd.me/

        # CGI Directory
        ScriptAlias /cgi-bin/ /var/www/data.paulbgd.me/cgi-bin/
        <Location /cgi-bin>
                Options +ExecCGI
        </Location>


        # Logfiles
        ErrorLog  /var/www/data.paulbgd.me/logs/error.log
        CustomLog /var/www/data.paulbgd.me/logs/access.log combined
</VirtualHost>

Нет ошибок на apache запустить снова. У DNS домена есть набор записей для ip моего VPS.

РЕДАКТИРОВАТЬ: Забыл упомянуть кое-что. Когда я захожу в домен, я не получаю страницу «не могу подключиться», я просто получаю пустую страницу. И на этом примечании:

/var/www/data.paulbgd.me/index.php:

<h2>Works!</h2>
1
задан 29 November 2013 в 22:20

0 ответов

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

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