#enter a wildcard "*" as the host since you don't want a static IP
#followed by the port in which apache will listen for this request
#this example uses port 8080
NameVirtualHost *:8080
#add your hostname here
<VirtualHost yourhostname>
#add your hostname aliases here, any name which needs to display your website
ServerAlias hostname.com [url]www.hostname.tld[/url] anothername.hostname.com
#Your e-mail
ServerAdmin [email]webmaster@youraddress.com[/email]
#wherever you want the website server from
DocumentRoot /home/user/public_html
#your hostname
ServerName hostname
#your username
User yourusername
#group of users
Group yourusergroup
#location of CGI
ScriptAlias /cgi-bin/ /home/user/public_html/cgi-bin/
#Authentication section below
#type of authentication
AuthType Basic
#message to display
AuthName "Message to display in login box"
#location of username/password file
AuthUserFile /location/of/file/file
#location of group file
AuthGroupFile /location/of/groupfile/file
#authentication requirements (users granted access)
Require username1 username2
#using group authentication uncomment the following
#Require group usergroup1
</VirtualHost>