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

Apache2.4 and WSL2 is giving an Error 403

$
0
0

Problem:

The website is returning an Error: 403 when trying to access it. No information is being given in log files afaik.

Version

Windows 10: Version 2004 (OS Build 19041.388)WSL: Version 2Server version: Apache/2.4.41 (Ubuntu)Server built:   2020-04-13T17:19:17

Permissions

drwxrwxr-x  3 www-data www-data 4096 Jul 22 12:36 /var/www/lrwxrwxrwx  1 www-data www-data   27 Jul 22 12:36 /var/www/website -> /mnt/d/work/website/drwxrwxrwx  1 www-data www-data 4096 Jul 22 11:00 /mnt/d/work/website/

Apache2ctl -S

VirtualHost configuration:*:80                   website.localhost (/etc/apache2/sites-enabled/website.conf:1)*:443                  website.localhost (/etc/apache2/sites-enabled/website.conf:10)ServerRoot: "/etc/apache2"Main DocumentRoot: "/var/www/html"Main ErrorLog: "/var/log/apache2/error.log"Mutex watchdog-callback: using_defaultsMutex rewrite-map: using_defaultsMutex ssl-stapling-refresh: using_defaultsMutex ssl-stapling: using_defaultsMutex ssl-cache: using_defaultsMutex default: dir="/var/run/apache2/" mechanism=defaultMutex mpm-accept: using_defaultsPidFile: "/var/run/apache2/apache2.pid"Define: DUMP_VHOSTSDefine: DUMP_RUN_CFGUser: name="www-data" id=33Group: name="www-data" id=33

VirtualHost Config

<VirtualHost _default_:80>    ServerName www.website.local    ErrorLog ${APACHE_LOG_DIR}/error.log    CustomLog ${APACHE_LOG_DIR}/access.log combined    DocumentRoot /mnt/d/work/website/public<Directory /mnt/d/work/website/public>        RewriteEngine On        RewriteRule ^public\.html$ - [L]        RewriteCond %{REQUEST_FILENAME} !-f        RewriteCond %{REQUEST_FILENAME} !-d        RewriteRule . public.html [L]        Options Indexes FollowSymLinks Includes        AllowOverride All        Order allow,deny        Allow from all        Require all granted</Directory></VirtualHost>

Hosts file

127.0.0.1       www.website.local

Logs

No entries in access.log or error.log???


Viewing all articles
Browse latest Browse all 2795

Trending Articles



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