How do I add a website to Apache with webmin?
This procedure is for a virtual server on a shared IP address
- Login to Webmin -> Servers category -> Apache Webserver
- Locate the box "Create a New Virtual Server"
- Fill out the following:
- Handle connections to address: Specific address... (enter your server's IP address here)
- Document root: /home/websites/domainname.com
- Server name: www.domainname.com
- Click "Create Now"
- The page will re-load. Click on the new Apache entry for your virtual domain
- Click on "Networking and Addresses":
- Alternate virtual server names: domainname.com
- Click "Save"
- Click "CGI Programs":
- CGI directory aliases: From: /cgi-bin/ To: /home/websites/domainname.com/cgi-bin/
- Click "Save"
- Enter Per-Directory Options for /home/websites/domainname.com
- Click "Document Options"
- Server-side includes: Yes Options file can override: Selected below... (all boxes should be checked)
- Click "Save"
- Click "Return to server index"
- Create Per-Directory, Files or Location Options for: /home/websites/domainname.com/cgi-bin
- Enter Per-Directory Options for /home/websites/domainname.com/cgi-bin
- Click "Document Options"
- Directory options: selected below...
- Execute CGI programs: Yes
- Options file can override: selected below... (all boxes should be checked)
- Click "Save"
- Click "Apply Changes"
- Go to Others category -> File Manager
- Browse to /home/websites/domainname.com
- Create new folder: cgi-bin
- Browse to /home/websites
- Highlight "domainname.com", click "Info"
- Apply changes to: this directory and all sub-directories
- Click "OK".







