How to make subdirectory the document root of a web domain or localhost
- by Ben Huh
I have a subdirectory abc in the document root /var/www/html
I want to be able to run any file any_file.html within the subdirectory by typing in the browser:
localhost/any_file instead of localhost/abc/any_file.html or
my_domain.com/any_file instead of my_domain.com/abc/any_file.html
I tried writing in httpd.conf:
<Directory…