To create a resource for your Apache2 web server on RISC-V VM, let's add a simple HTML page and configure a virtual host:
Creating file /etc/apache2/sites-available/myresource.conf
with:
<VirtualHost *:80>
ServerName myresource.local
DocumentRoot /var/www/myresource
</VirtualHost>
Then creating directory and file /var/www/myresource/index.html
with:
<html><body<My Resource Page on RISC-V VM!</body></html>
Finally, enabling site and restarting Apache2:
a2ensite myresource
service apache2 restart
Does this create the virtual resource you had in mind? #49
Open
Activity