DirectAdmin reverse proxy in a sub directory

James2k

Verified User
Joined
Nov 28, 2012
Messages
38
I was wondering if it would be possible to run DirectAdmin through a reverse proxy in a sub directory, rather than a sub domain.

I can get it to work using this guide:

http://help.directadmin.com/item.php?id=84

But this only works for subdomains, I'd rather do through a directory e.g.

http://domain.com/directadmin/...

Problem is because most of the paths are absolute i.e.

Code:
<a href="/CMD_LOGOUT">Logout</a>

None of paths for links, CSS, JavaScript, Images etc will work.

Is there a way to change the DA config to work, or would re-writing be needed through a module like mod_proxy_html?
 
Hello,

The only idea which comes to my mind is to put a PHP/Perl script into http://domain.com/directadmin/ which would work as a proxy and rewrite your links. Of course you might have issues here with IPs and brute force attacks. So you will need to take care of it in your script.
 
Back
Top