Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2798

DocumentRoot wont change -Ubuntu 20 Apache2 on windows wsl2

$
0
0

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/htmlI'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_defaultsMutex default: dir="/var/run/apache2/" mechanism=defaultMutex mpm-accept: using_defaultsMutex watchdog-callback: using_defaultsPidFile: "/var/run/apache2/apache2.pid"Define: DUMP_VHOSTSDefine: DUMP_RUN_CFGUser: name="www-data" id=33Group: name="www-data" id=33

Viewing all articles
Browse latest Browse all 2798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>