кот субдомена под apache2 проигнорирован (Ubuntu)

Моя проблема кажется довольно простой, но у меня нет подсказки, куда проблема возникает от, у меня есть apache2, mod_jk, и два кота приложений, основные и тест, который я хотел бы использовать основной для "основного домена" (так, если у меня есть URL www.mysite.com, я нахожу это основное), и если я отправляю test.mysite.com, я иду на тест

Для моделирования этого (у меня есть теперь только один домен) я изменил путь основного на www.mysite.com/Main, и тест к проблеме test.mysite.com/Test, если я иду на test.mysite.com/Test, это не находит его.

Я использую поставщика для заботы на существованиях субдомена, и я предполагаю, что они сделали они работают правильно для создания субдомена. Однако они отправили мне адрес ipv6, который я могу проверить с помощью ping-запросов

Я работаю 100% под https, поэтому если пользователь просит http, он перенаправляет все под https

Вопросы: Как я могу видеть, куда проблема возникает из (моя конфигурация или поставщик)? Как решить его!

Большое спасибо за Вашу справку

Вот мой 000-default.conf файл:

<VirtualHost *:80>
ServerName www.mysite.com
JkMount /Main* ajp13_worker
Redirect /   https://www.mysite.com/

RewriteEngine  on
RewriteCond %{HTTP_HOST} ^.*?(?:www\.)?mysite\.[\w\.]+.*$
RewriteRule ^(.*?)(?:|www\.)mysite\.[\w\.]+(.*)$ https://www.mysite.com$2
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf

</VirtualHost>
<VirtualHost *:80>
ServerName test.mysite.com
JkMount /Test* ajp13_worker
Redirect /   https://test.mysite.com/
RewriteEngine  on
RewriteRule ^(.*?)test\.mysite\.[\w\.]+(.*)$ https://test.mysite.com$2
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf

</VirtualHost>
0
задан 4 July 2014 в 15:45
1 ответ

Ответ был прост: я все определил в файле 000-defaults, а не в файле default-ssl. Теперь это работает

-1
ответ дан 5 December 2019 в 18:48

Теги

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