dotcomUNDERGROUND
Verified User
- Joined
- Mar 31, 2022
- Messages
- 30
I am trying to make client-domain.com/webmail and client-domain.com/cpanel redirections which should allow them to use roundcube webmail and directadmin respectively.
I have followed instructions from here: https://forum.directadmin.com/threads/how-do-i-redirect-cpanel-url-domain-2222.5504/post-335238
I have edited /usr/local/lsws/conf/httpd-alias.conf and added code:
It was working when I tested earlier but now giving 404!
Even client-domain.com/roundcube, client-domain.com/pma, client-domain.com/phpmyadmin everything is giving 404
They are only working on hostname.
I have followed instructions from here: https://forum.directadmin.com/threads/how-do-i-redirect-cpanel-url-domain-2222.5504/post-335238
I have edited /usr/local/lsws/conf/httpd-alias.conf and added code:
Code:
context /webmail/ {
location /var/www/html/roundcube/
include /usr/local/lsws/conf/httpd-webapps-php.conf
}
context /cpanel/ {
location /var/www/html/redirect.php
include /usr/local/lsws/conf/httpd-webapps-php.conf
}
It was working when I tested earlier but now giving 404!
Even client-domain.com/roundcube, client-domain.com/pma, client-domain.com/phpmyadmin everything is giving 404
They are only working on hostname.