How can I access my website with DirectAdmin when userdir is no longer available?

How can I access my website with DirectAdmin since userdir is no longer available?

Normally, connecting to your website hosted with DirectAdmin was as easy as accessing the temp URL http://[serveripaddress]/~[username]/ but since DirectAdmin chose to remove userdir_access, that is no longer possible.

Workarounds include using a service, such as SkipDNS which is a service that allows you to connect to your website before the domain has propagated or by manually updating your local hosts file.

To update your local hosts file:

To add a domain and IP address to the `hosts` file on Windows, follow these steps:

1. Open Notepad as Administrator:
- Press the Windows key, type Notepad, right-click on it, and select Run as administrator. This allows you to save changes to system files.

2. Open the Hosts File:
- In Notepad, go to File > Open.
- Navigate to the following path:
`C:\Windows\System32\drivers\etc\`
- In the file dialog, change the file type from Text Documents (*.txt) to All Files to see the `hosts` file.
- Select the `hosts` file and open it.

3. Add the IP Address and Domain:
- Scroll to the bottom of the file and add a new line for each domain you want to map.
- Use the format:

[IP Address] [Domain Name]

The [IP Address] will be the server IP address assigned to your hosting account and can be found in the account information email we send you upon signup.

- For example:

192.168.1.10 example.com
192.168.1.11 anotherdomain.com

4. Save the File:
- Save your changes by pressing Ctrl + S or going to File > Save.
- Close Notepad.

5. Clear DNS Cache (Optional):
- Open Command Prompt as Administrator.
- Run the following command to flush the DNS cache:

ipconfig /flushdns

After these steps, your system will resolve the specified domain to the IP address you set in the `hosts` file.

Once your domain has fully propagated and is resolving normally, you can remove this entry from your hosts file.


    • Related Articles

    • How do I access phpMyAdmin while using DirectAdmin?

      Since we use SSO with DirectAdmin, phpMyAdmin can be accessed as follows: 1. Login to your DirectAdmin account. 2. Go to Account Manager --> Databases 3. Find the database you want to manage in phpMyAdmin and click Manage 4. Click the PHPMYADMIN ...
    • How to access using SSH?

      Let’s see how you can access your Gigality account with all of its environments and containers or just a separate container via SSH. SSH Access to a Gigality Account Direct Access to the Container Note: SSH access is provided to the whole account but ...
    • How do I set custom domain name for my environment?

      With Gigality PaaS, you have a possibility to set external domain address for your site, instead of the default environment URL env_name.gigality.net. The custom domain allows promoting your unique branding and improve your web application ...
    • How to check if your website is live after changing the DNS?

      The article guides you through the steps that need to be performed to check if your website is currently live or not. After changing the DNS to Hivium, you need to wait for a few hours for the change to reflect over the internet. Generally, this ...
    • How to solve a connection refused error when trying to use SMTP in DirectAdmin?

      In our DirectAdmin hosting environments, outgoing SMTP via scripts/apps requires permission per user account. How do I request SMTP access? If your script/app needs to send via SMTP, simply submit a ticket to our support team and request that we ...