Sentora Support Forums

Full Version: Change domain home directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to change the domain home directory?
I have a domain : mydomain.com and would like to change the home directory to: mydomain.com/public
Thanks in advance!
Greetings.
There is currently no Interface to do it; There are alternatives:


How to Change Domain Public Web Directory

Adding a Virtual Host Override (from Sentora Panel)

  1. Go to Admin > Module Admin > Apache Config.
  2. Scroll down until you see Override a Virtual Host Setting.
  3. Select the domain you want from the dropdown.
  4. On the input field: Custom Entry enter the following code:
Code:
DocumentRoot "/var/sentora/hostdata/username/public_html/yourdomain_com/public"
Note: Change username to the sentora login for the domain and change yourdomain_com to the actual domain.

  • Now you only need to wait around 5 minutes for the Daemon to run.

There are other alternatives but they require you to change/mess with files directly.

Hope this helps.
You can use .thaccess rule also to do the same without messing up vhost
Thanks! I ended up using the htaccess method Smile