Kindly follow below steps to create website
- Login to webmin http://x.x.x.x:29815
- Note that x.x.x.x stands for server IP address
- Then go to "Servers" -> "Apache Webserver"
- Click on Create virtual host
- Fill in below details
- Specific address: x.x.x.x (server IP address)
- UNCHECKED Add name virtual server address (if needed)
- UNCHECKED Listen on address (if needed)
- Port: Default
- Document Root: /var/www/html/domain-com/public_html
- Server Name: domain.com
- Click Create Now
- Go to "Global configuration" -> "Edit Config Files"
- Under /etc/httpd/conf/http.conf, please add in below lines
- NameVirtualHost x.x.x.x (server IP address)
- ServerAlias www.domain.com domain.com
- Click Save
- Back to "Apache Webserver" and Apply Changes to reload the Apache server.
|