Domain redirects to ip when use port 2222

Are you sure it's not jumping to https?

That's normal behavior if secure login is enabled.

Jeff
 
Is changing this at all possible so that it can actually keep in the domain name that you started access from?
 
What I did was edit the file /var/www/html/redirect.php and change the code:

Code:
<?
header("Location: http://".$_SERVER['HTTP_HOST'].":2222");
?>

To:

Code:
<?
header("Location: https://".$_SERVER['HTTP_HOST'].":2222");
?>

Maybe this will help you. Let us know if it works for you because it seems to have worked on my new DA box, which isn't fully into production yet.

If this works, maybe John can think of some way to make this more dynamic.
 
Last edited:
thanx for the effort but that doesnt seem to be the solution it is already being forwarded to write location http is going to https but its also putting the IP in instead of the web address
 
Port 2222 has nothing to do with apache.

It's answered by the directadmin daemon, with it's own built in browser. The redirect to IP# instead of domain name is controlled by the DirectAdmin daemon; you should contact DirectAdmin support for more information.

Jeff
 
Back
Top