DirectAdmin on domain instead ip address

Gander

Verified User
Joined
Aug 2, 2009
Messages
15
Location
Warsaw, Poland
Hello.
I have some problem and maybe you could help me with this:

When I enter addres "my-domain.com:2222", I am redirected to global server ip ex: "87.98.158.xxx:2222" and there i can see login form to DA".

I want to set a new domain / subdomain to manage DA, ex: "my-cp-domain.com" or "cp.my-domain.com", where I would see login form to DA and I would not like to be redirected to global ip anymore, ex: http://panel.cyberix.pl/ or http://www.directadmin.com:2222/

Currently I use this trick: How to create a login page for DirectAdmin on your website.

I have been searching for a few hours in server, da help sites, and this forum, but without results. :confused:

Thank you in advance for any tip
 
Last edited:
I was trying this: Running DirectAdmin through apache on port 80, but after restart, apache was going down.

Code:
|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html|
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/|
<VirtualHost |IP|:80>
|CUSTOM|
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/cgi-bin/|
        ServerName www.|DOMAIN|
        ServerAlias www.|DOMAIN| |DOMAIN| |SERVER_ALIASES|
        ServerAdmin |ADMIN|
        DocumentRoot |DOCROOT|
        |CGI|

        |USECANONICALNAME|

        SuexecUserGroup |USER| |GROUP|
        CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
        CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
        ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

        <Directory |DOCROOT|>
                Options +Includes -Indexes
|*if CLI="1"|
                php_admin_flag engine |PHP|
                <IfModule !mod_php6.c>
                        php_admin_flag safe_mode |SAFE_MODE|
                </IfModule>
                php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'
|*endif|
|*if OPEN_BASEDIR="ON"|
                php_admin_value open_basedir |OPEN_BASEDIR_PATH|
|*endif|
|*if SUPHP="1"|
                suPHP_Engine |PHP|
                suPHP_UserGroup |USER| |GROUP|
|*endif|
        </Directory>
|HANDLERS|
|MIMETYPES|

</VirtualHost>

<VirtualHost |IP|:80>
   ServerName cp.|DOMAIN|
   ProxyRequests Off
   ProxyPass / http://localhost:2222/
   ProxyPassReverse / http://localhost:2222/
</VirtualHost>
 
Ok, I configure it again step-by-step and finally subdomains cp.* work :)

Redirecting still active: when I enter adress:
cp.mydomain.com I am redirected to global server ip again: "87.98.158.xxx:2222"

Maybe problem is in Canonical Names?
 
Should be yes or maybe some setup on the server hostname, cause when i use it for my customer the url remain always http://directadmin.domain

u should check directadmin conf file in /usr/local/directadmin/conf or /data/admin maybe

but that not depending on apache configuration, i think is something related to directadmin and his configuration
 
Should be yes or maybe some setup on the server hostname, cause when i use it for my customer the url remain always http://directadmin.domain

u should check directadmin conf file in /usr/local/directadmin/conf or /data/admin maybe

but that not depending on apache configuration, i think is something related to directadmin and his configuration

awesome worked a treat
 
Back
Top