I'm at my wits end here.
I've installed Ubuntu on windows with wsl2.
I'm trying to setup apache2 to point to /mnt/my/windows/source/code
No matter what I do. DocumentRoot is always /var/www/html
I've tried so much, I think I'm going insane.
This is in my apache2.conf
*tried this out of desperation
<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>
I disabled the 000 conf file so only this one is enabled.
When I run 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