Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

change DocumentRoot

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
robby
Posts: 1
Joined: Mon Feb 15, 2016 4:57 pm

change DocumentRoot
  • Quote

Post by robby » Mon Feb 15, 2016 5:13 pm

Hi,

I would like to change the (default) DocumentRoot for all (new) websites, because there are quite some websites on this server and the paths must not change.

On my server now the websites are on this location; /home/wwwroot?%DOMAIN%/docs -> index.html etc

The default location for Vesta is; /home/%USER%/web/%WEBSITE%/public_html

I would like to change this default path /home/%USER%/web/%WEBSITE%/public_html to /home/wwwroot?%DOMAIN%/docs.

I Also would like to change the location for the default location of the apache2.conf file to /etc/apache2/%NAMEDIR%

I've looked around but i cant seem to find the files to configure this. I do have found the file to change the default homedir when creating a new user.

Hope someone can give me a push in right direction.

Thnx!
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: change DocumentRoot
  • Quote

Post by skurudo » Tue Feb 16, 2016 2:59 pm

robby, it's not that simple and you need to change a lot.
Besides, there is no guarantee that in the end will not be any problems

You can start with templates:
/usr/local/vesta/data/templates/web/
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password