How to Serve a Website from a Custom Directory Using IP Address in DirectAdmin?

disk0

New member
Joined
Nov 28, 2024
Messages
2
Hello DirectAdmin Community,I've recently installed DirectAdmin on my server and uploaded website files to a custom directory at `/home/admin/domains/default/vetriioffline`.

Here's my setup:-
DirectAdmin Version: 1.671
OS: RHEL 8
Web Server: Apache

I want to access this website via the server's IP address without setting up a domain name.

Is there a way this can be done?
 
There used to be a way to visit it on ip/~username but DA dissabled this, i think there is a way how you can still do this, but not sure.
 
There used to be a way to visit it on ip/~username but DA dissabled this, i think there is a way how you can still do this, but not sure.
I have tried mostly all the methods mentioned on DA forum. Few of them are disabled like you mentioned and the rest don't work.

Any more insights would be really helpful.
 
Hello DirectAdmin Community,I've recently installed DirectAdmin on my server and uploaded website files to a custom directory at `/home/admin/domains/default/vetriioffline`.

Here's my setup:-
DirectAdmin Version: 1.671
OS: RHEL 8
Web Server: Apache

I want to access this website via the server's IP address without setting up a domain name.

Is there a way this can be done?

DA disabled userdir whit version 1.68

did you try the word round this link
userdir work round > 1.68
 
uploaded website files to a custom directory at `/home/admin/domains/default/vetriioffline`.
That for sure is the wrong directory even for custom because that directory is already in use.

Your website needs to be uploaded to /home/admin/domains/yourdomain.com/public_html and the /home/admin/domains/default directory should not be used as custom directory as this is reserved for the files you want to automatically be placed in domains you create for customers (like an index.html with company logo or something).

As for visiting via ip, try the tip of @Hostmavi but I would suggest to move your site to a normal directory or other custom directory first, not being one which is reserved by the system to preven other issues.
 
Back
Top