how can access website via ip address

aliinjector

Verified User
Joined
Mar 4, 2022
Messages
8
Hello, How can I visit the default website of the account by entering the IP address?


not working, its show 404 error ! admin user has default domain but returns 404 error
 
You have to enable userdir for that via SSH.
Code:
cd /usr/local/directadmin/custombuild
./build set userdir_access yes
./build update
./build rewrite_confs

After that it should be possible.
Might not work with nGinx.
 
Curious, why you would want to do this? You want to visit it by IP address?
 
If you have a new customer and the domain does not resolve yet, the user can already access Directadmin this way, to put up his website stuff, or at least partly.
 
That's not necessary, that
If you have a new customer and the domain does not resolve yet, the user can already access Directadmin this way, to put up his website stuff, or at least partly.
That's why I asked, if they are on Windows machine, that is not needed. Much easier to just change the hosts file.
 
Wanted to ask the same : )
still no domain, wonder how to access a user folder ; )
 
Yes, it worked allright : )

BTW does anyone know if there is a possibility to use this da.direct domain for subdomains?
DA should give such an opportunity with a DNS service or something ; )

I remember DA needed ANY domain to work with user account, I can see the "default" folder doesn't work really as a default folder if there are no domains, right?
So you need to add ANYTHING so that /~username works?
 
Yes, it worked allright : )
So why do you ask then if it works? Please do not respond to old threads if you don't have a question. ;)

The da.direct is not your domain so if even possible you can best not create subdomains with that name.
DA should not give that opportunity, that domain name is -only- intended for quick hostname configuration during installation, it's not a kind of "dyndns" service.

You need to have a domain name (even a fake one) for /~username to work yes.
 
But even without a domain, it won't work via IP?
I thought the default folder would then work but it doesn't...
 
But even without a domain, it won't work via IP?
No it won't. Without a domain you don't have default folder. Because this is an Apache (website) feature so only works in the public_html folder which you need to create a domain for. As said, even a fake domain like example.com will work.

If you want to visit your home directory like /home/username then you can do so via FTP if needed. But it's in fact no use without domain name, unless you want to store some stuff on the server.
 
Back
Top