DocumentRoot не изменит -Ubuntu 20 Apache2 на windows wsl2

Я здесь в своем уме. Я установил Ubuntu на Windows с wsl2. Я пытаюсь настроить apache2 так, чтобы он указывал на / mnt / my / windows / source / code

Независимо от того, что я делаю. DocumentRoot всегда / var / www / html Я так много пробовал, что схожу с ума.

Это в моем apache2.conf * попробовал это от отчаяния

<Directory /mnt/c/Users/me/Development/online-store/web>
    AllowOverride None
    Options Indexes FollowSymLinks
    Require all granted
</Directory>

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

vhost file

<VirtualHost *:80>


    DocumentRoot /mnt/c/Users/me/Development/online-store/web

    DirectoryIndex index.php index.html
    ServerName store.test.domain.ca
    ServerAlias store-*.test.domain.ca

    <Directory "/mnt/c/Users/me/Development/online-store/web">
        AllowOverride all
        Require all granted
    </Directory>

    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/access.log combined
</VirtualHost>

Я отключил файл 000 conf, поэтому включен только этот.

Когда я запускаю sudo apache2ctl -S

VirtualHost configuration:
*:80                   store.test.domain.ca (/etc/apache2/sites-enabled/store.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
0
задан 19 August 2021 в 16:30

0 ответов

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

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