This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Change domain home directory
#1
Change domain home directory
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!
Reply
Thanks given by:
#2
RE: Change domain home directory
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.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by: victor
#3
RE: Change domain home directory
You can use .thaccess rule also to do the same without messing up vhost
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by: victor
#4
RE: Change domain home directory
Thanks! I ended up using the htaccess method Smile
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
change username from email umarzuki@gmail.com 0 1 ,259 11-25-2022, 05:46 PM
Last Post: umarzuki@gmail.com
Public_html Inside Domain/Subdomain zHostingSolutions 2 4 ,130 07-23-2021, 09:57 AM
Last Post: Nigel
Cannot Create 2nd 'Addon' Domain In Sentora? Error: Invalid backend configuration. Re BattlinThrough 2 5 ,410 07-07-2020, 01:22 PM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)