change wordpress upload url to subdomain on xampp local

Firstly, I am sorry for bad English Language

I want to make a site using wp on local with xampp 3.2.2 (win10)

To avoid future problems (e.g changing domain after moving to live or changing media file path in db) i stablish a virtual host & a subdomain by putting this code in httpd-vhosts.conf

NameVirtualHost *:80 <VirtualHost *:80>     ServerName     ServerAlias     ServerAdmin     DocumentRoot "C:/xampp/htdocs/xyz" </VirtualHost>   <VirtualHost *:80>     ServerName     ServerAlias     ServerAdmin     DocumentRoot "C:/XAMPP/htdocs/xyz/dl" </VirtualHost> 

& this code to httpd.conf

Alias /xyz "C:/XAMPP/htdocs/xyz/" <Directory "C:/XAMPP/htdocs/xyz/">     AllowOverride All     Order allow,deny     Allow from all </Directory> 
  • then i check subdomain to making sure it’s working by making simple index.html to “dl” DIR & ( work Properly.
  • then I install wp and after some configuration I follow this article step to change WordPress default upload path:

This is my database change:




I change “dl” DIR permission according to this video:

now when i want to upload file to media this error appeared:

Unable to create directory C:/xampp/htdocs/xyz/dl/uploads/2019/02. Is its parent directory writable by the server?