For whatever reason, if you wish to not allow the http://1.2.3.4/~username method of viewing a website, you can do so by removing the lines:
PHP Code:
1) Type:PHP Code:AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
from the apache VirtualHosts, by editing the templates.
PHP Code:2) Type:PHP Code:cd /usr/local/directadmin/data/templates/custom
cp ../ips_virtual_host.conf .
Edit the copied ips_virtual_host.conf file and remove the AliasMatch line. Also remove the "ScriptAliasMatch" line.
PHP Code:
3) Edit:PHP Code:echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
PHP Code:
and again, remove the AliasMatch line.PHP Code:/etc/httpd/conf/extra/httpd-vhosts.conf

LinkBack URL
About LinkBacks





Reply With Quote
Bookmarks