…CORRECTION to the Above …
---------------------------------------Changing Home website Directory----------------------------
1.
Virtualmin >> System Settings >> Server Templates >> >> Defualt Settings (Notice Under ‘Skeleton Direcory’ >> /etc/skel)
do : a. /etc/apache2/suexec then b. ls on that and you will find : www-data
nano www-data i had : /home puplic_html
i changed it to : /var/www/html html
navigate back to : Virtualmin >> System Settings >> Server Templates >> >> Defualt Settings select ‘Apache Website’ drop down and change:
DocumentRoot ${HOME} to DocumentRoot ${HOME}/${ALIAS} and
<Directory ${HOME}/public_html> to <Directory ${HOME}${ALIAS}/>
by doing this i have changed my default directory from /home to /var/www/html
#######Directives and settings for new websites########
2.
..................................................................................(OLD)
ServerName ${DOM}
ServerAlias www.${DOM}
ServerAlias mail.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog /var/log/virtualmin/${DOM}_error_log
CustomLog /var/log/virtualmin/${DOM}_access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory ${HOME}/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
<Directory ${HOME}/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
TO (/var/www/<DomainAlias>)
…(NEW)
ServerName ${DOM}
ServerAlias www.${DOM}
ServerAlias mail.${DOM}
DocumentRoot ${HOME}/${ALIAS}
ErrorLog /var/log/virtualmin/${DOM}_error_log
CustomLog /var/log/virtualmin/${DOM}_access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory ${HOME}${ALIAS}/html/>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
<Directory ${HOME}/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch