In mybox, it is possible to configure two web accounts so that they both point to the same directory. This means that both domains or web accounts will serve the same website files from a single location.
This setup is useful when you want multiple domains to display the same website content without duplicating files.
Table of Contents
How web account directories work
Each web account is assigned a specific directory on the hosting server. This directory contains all website files for that domain.
A typical path looks like:
~/yourdomain.com/public_html
All website content is stored in this folder.
Step 1: Check the existing web account directory
Before creating a second web account, identify the directory used by the first one.
- Log in to the mybox panel
- Go to the Websites section
- Find the existing web account
- Check the directory path assigned to it
This is the directory you will reuse.
Step 2: Create a new web account
When adding a new web account:
- Enter the new domain name
- In the directory/path field, specify the same directory as the existing web account
- Save the configuration
Both web accounts will now point to the same file location.
What happens after configuration
Once both web accounts share the same directory:
- both domains load the same website content
- any file changes affect both domains simultaneously
- updates do not need to be duplicated between folders
Practical implications
This configuration does not create separate websites. Instead, it creates multiple access points to the same content.
This means:
- changes made in one place affect both domains
- there is a single source of files
- both domains behave identically at the content level
Care should be taken when modifying files, as changes are reflected across all connected web accounts.
When to use this setup
This configuration is commonly used when:
- multiple domains should display the same website
- branding variations are not required
- redirect-free multi-domain setups are needed
Summary
Two web accounts in mybox can point to the same directory by assigning the same file path during setup. This allows multiple domains to serve identical website content from a single shared location.