Disable IP/~user ???

Not sure if you can disable IP/~user access. I would be interested to know if you could change it to a subdomain by default, prob not though.

As for webmail, i have Atmail, Roundcube, Uebimiau and Squirrelmail working fine on a CentOS 64bit install so i would suspect the're not setup correctly.

Best Regards, George
 
Disable IP access problem:

I using mod_security to do it, but very inconvenient. Anybody have any method ?

Atmail Problem:

I tried RoundCube (error cannot login, i reported it to DirectAdmin Staff - they can not resolve too), i changed Roundcube as Atmail, work fine (sent / received normal), but when double click the mail, i can not read it (blank sreen as in above picture). I ensure the installation is correct.

Previously, i have installed many CentOS 5.2 32bit servers, it work fine (roundcube - sent/received/read etc...).

This problem make me headache !
 
To disable IP/~user access just remove both "AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2" lines from /etc/httpd/conf/extra/httpd-vhosts.conf. Remember to create a custom copy of its template if you are using CustomBuild or the file will be overwritten.
Also make sure extra/httpd-userdir.conf states "UserDir disabled".
 
And of course restart apache after any changes to it's conf files :).

Jeff
 
For Apache 2.2.X

/etc/httpd/conf/extra/httpd-userdir.conf

Set
UserDir disabled

:)
 
Hi,

Same problem here Debian 5 webmail was working now i notice error msg with code Error No. [0x01F4]

non webmail software work tried with IP/webmail but it is same.

Danijel,
 
To disable IP/~user access just remove both "AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2" lines from /etc/httpd/conf/extra/httpd-vhosts.conf. Remember to create a custom copy of its template if you are using CustomBuild or the file will be overwritten.
Also make sure extra/httpd-userdir.conf states "UserDir disabled".

Please guide me on "how to create a custom copy of it's template" ?
 
I follow tillo's guide
To disable IP/~user access just remove both "AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2" lines from /etc/httpd/conf/extra/httpd-vhosts.conf. Remember to create a custom copy of its template if you are using CustomBuild or the file will be overwritten.
Also make sure extra/httpd-userdir.conf states "UserDir disabled".

but fail.
Can not disable access via http://ip-server/~user ?
 
hi zEitEr,
Could you guide me more details?
The content of my ips.conf:
# Auto generated apache config file by DirectAdmin version 1.41.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%O \"%r\"" homedir
NameVirtualHost 0.0.0.0:80
NameVirtualHost 0.0.0.0:443

thanks
 
Last edited by a moderator:
Search then all files in /etc/httpd/conf for line "AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2" and update them.
 
Back
Top