URL to direct access site/account without DNS

tmtbrasil

New member
Joined
Nov 12, 2021
Messages
3
I am new to DirectAdmin, so I am sorry if my question is a newbie one.

I starting to use DA and migrating my sites from old host to the new host (with DA).

1 - I already created a new user account in DA for that site (tutorialmaster.com.br)
2 - Already created the FTP account for it.
3 - Already upload site files.
4 - Now I need to have a direct access URL to edit and complete site installation.

How can I access a site created in DA if I did not changed the DNS yet?

Is there a way to access it using IP instead name domain?

PS: sorry about my bad english, I still learning it.

Best Regards
Bruno Alecrim
Rio de Janeiro - Brasil
 
4 - Now I need to have a direct access URL to edit and complete site installation.
Some sites like maybe Wordpress might need a full domain name to install properly, so just keep that in mind if needed.
Not all installations of website applications will finish or be able to install correctly without a domain name.
 
Using the hosts file doesn't always work either.

Since applications themselves on the server also try to "find" themselfs (so via the resolver and not via your browser) and then run into the ip instead of domain name.

Sorry to be spoiling the fun, but I ran more then once into these kind of issues with these kind of workarounds with sites, forum software and some other applications. These workarounds can work, but not with everything by a long shot.
So if the trick works, good job. Do you get errors, don't ask to fix them... just start over when the domain is propagated.;)

Shortly said.... like @MaXi32 said... having a bit of patience until the DNS is propagated is the best solution.
 
But the host support told me that function is not allowed due to security reasons.

Where should I insert the code you suggested? .htaccess file?

cd /usr/local/directadmin/custombuild
./build set userdir_access yes
./build rewrite_confs


Thanks ;)

So, it sounds like the host is actually managing your DirectAdmin panel and you are a normal user? Normally this forum is for admin so if something goes wrong, we can ask you to change something but you gotta be Admin.

If you are a normal user, the host decides what he can restrict and there is no way you as a user can overwrite this config without their permission. You need to ask your host.

If you are an admin of the system, the command must be executed via the server terminal. But I doubt you could do this without admin permission.

You just need to follow @Richard G suggestion. Just setting up your DNS properly and you don't have to worry about all of this.
 
Last edited:
Back
Top