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 to create a website in Enhance control panel?

      Instructions to create/add a website in the Enhance Control Panel Here is a step-by-step guide Step 1: Log in to your account and select the websites option Step 2: Click on the Add website button Step 3: Enter the domain name and click on the Add ...
    • 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 ...
    • How to register a domain with Hivium?

      Current Hivium customers can register new domains within their customer portal. Not a customer yet? It’s easy to register a domain with us! Hivium offers domain name registrations for some of the following TLD (top-level domain) extensions: .com .de ...