Show website when users enter ip address

aliinjector

Verified User
Joined
Mar 4, 2022
Messages
8
Hello, I have installed Direct Admin and now I want to show default website that I defined in the admin user when I enter the IP instead of "Apache is functioning normally".

How should I do this? (No redirection)
 
Depends, I f you are using your own NS then yes, if you use your providers his NS then you must check it there
 
@Active8 this is not a DNS issue. He's talking about the "Apache is functioning normally" when you visit a server via the ip. So the default page.

In the recent past, we could use the ssl_redirect_host= setting in directadmin.conf for this, but DA disabled that one recently.

So @aliinjector either needs to tell his clients to not visit by the ip, or adjust the welcome template (which always points to the ip).

I was thinking if it might be possible to add some redirect somewhere to achieve this by default, like it was the case when the mentioned option was stil in effect.
 
Missed that :)
No problem. Did you make any changes to solve that? Or you don't mind they won't be redirected to the hostname?
Personally I don't mind because that's how it's always have been in the old days. :)

But if you created a solution I would be curious too. ;)
 
No problem. Did you make any changes to solve that? Or you don't mind they won't be redirected to the hostname?
Personally I don't mind because that's how it's always have been in the old days. :)

But if you created a solution I would be curious too. ;)
Depends, I f you are using your own NS then yes, if you use your providers his NS then you must check it there
thanks, i set public_html address into ips.conf instead var/www/html and its works
 
I don't know if that is wise, but if it works for you. Just remember you did this in case something odd happens.
There is a chance that on an apache update or something this file might be overwritten, so you might want to check this once a while.
 
Back
Top