Webmin – add new website

Most of the example I found showing how to add new domains. But I just want to add new websites.

Example:

I already setup LAMP on 10.10.10.5, and now http://10.10.10.5 is reachable.

How do I create http://10.10.10.5/intra1 and http://10.10.10.5/intra2 ??

This is based on try and error, with my not-so-much exposure to Linux.

1. Login to webmin.
2. Click Servers > Apache Webserver
3. On Existing Virtual Hosts, click Virtual Server icon
4. Click on Alis & Redirects
5. From: /intra1 To: /home/user1/htdocs (you must add user with home and then create htdocs or whatever folder in the home)
6. Click save
7. Back to Servers > Apache Webserver > Existing Virtual Hosts > Virtual Server
8. Check Create Per-Directory, Files or Location Options
7. Type: Directory Regexp: Exact match Path: /home/user1/htdocs, click Save
8. Back to Servers > Apache Webserver > Existing Virtual Hosts > Virtual Server
9. Click Edit Directive
10. Under Directory “/home/user1/htdocs” put “Require all granted” (without double quote).

Done!

Leave a Reply