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

How to Change Template of Domain Creation

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
boxygen
Posts: 23
Joined: Tue Aug 21, 2018 7:54 am

Os: CentOS 6x
Web: apache + nginx
How to Change Template of Domain Creation
  • Quote

Post by boxygen » Tue Dec 11, 2018 4:28 am

In a given USER in vestacp I want all all subdomains to point to MAIN DOMAINS'S folder with and without https.

like this: /home/USER/web/MAIN-DOMAIN/public_html

The default in Vesta CP is /home/USER/web/SUB-DOMAIN/public_html

Can I define this in any template?

I have achieved this by editing the file and changing root directory mentioned below

/home/pakerp/conf/web/reseller1.pakerp.net.httpd.conf

But I am facing two problems in this.

1. Each time when I ceate a subdomain I need to edit this file.
2. Secondly When I create SSL Using Lets Encrypt it goes back to original setting.

So please guide me for these two problems.
1. The root directory of any new subdomain can be defined in any template for the USER
2. SSL application shall not affect the root directory.
Top


Post Reply
  • Print view
1 post • 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
 

 

cron

Login  •  Register

I forgot my password