in the /var/www/html directory I have many folders which contain websites like 'store/', and to access a website through my LAN I enter in the address bar 'myserveripaddress/store'.
I created a DNS file to access the website with a custom name but I don't know what to put in the file, I tried:
customname A myserveripaddress/store
but it didn't work, the only one that works is:
customname A serveripaddress
but it doesn't take me to the website under 'store/' directory for example.
Is there a solution?
DNS does not work this way. In this instance, DNS points domain at a server, but it is to the server how it responds to that request.
to get this to work, you would need to create separate web server configs for each of the "sub-websites" and then point the DNS record at domain name listed in that config.