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!

Dear fellow Malaysians, if you like the content of this blog and thinking about to support me to continue writing good content, please consider to sign up for Takaful service from me. I am offering life & accidental coverage plans and medical card too. Kindly message me using the PM box on the sidebar (under profile picture). Thanks ;)

Leave a Reply

Your email address will not be published. Required fields are marked *