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 General Discussion
  • Search

How To Change The Path Of Subdomain

General questions about VestaCP
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
decentguy49
Posts: 9
Joined: Tue Nov 21, 2017 4:32 pm

How To Change The Path Of Subdomain
  • Quote

Post by decentguy49 » Sun Dec 02, 2018 1:12 pm

Hi,

I had created a new subdomain and its path is /home/user/web/media.mydomain.com/public_html/

Now I want to change the path of this subdomain to /home/admin/web/bloggingmayor.com/public_html/media

Can you tell me how to do this?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: How To Change The Path Of Subdomain
  • Quote

Post by imperio » Sun Dec 02, 2018 1:18 pm

Hi,
You can change a docroot in the virtualhost for subdomain bloggingmayor.com

Code: Select all

/home/admin/conf/web
After that restart web system
Top

decentguy49
Posts: 9
Joined: Tue Nov 21, 2017 4:32 pm

Re: How To Change The Path Of Subdomain
  • Quote

Post by decentguy49 » Sun Dec 02, 2018 1:25 pm

imperio wrote: ↑
Sun Dec 02, 2018 1:18 pm
Hi,
You can change a docroot in the virtualhost for subdomain bloggingmayor.com

Code: Select all

/home/admin/conf/web
After that restart web system
Thanks for your reply man, in /home/admin/conf/web, there are four files
  • media.bloggingmayor.com.apache2.conf
  • media.bloggingmayor.com.apache2.ssl.conf
  • media.bloggingmayor.com.nginx.conf
  • media.bloggingmayor.com.nginx.ssl.conf
Which file i need to change? anyone one of them or all of them?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: How To Change The Path Of Subdomain
  • Quote

Post by imperio » Sun Dec 02, 2018 1:31 pm

Code: Select all

media.bloggingmayor.com.apache2.conf
or

Code: Select all

media.bloggingmayor.com.apache2.ssl.conf
if ssl support for domain is enabled
Top

decentguy49
Posts: 9
Joined: Tue Nov 21, 2017 4:32 pm

Re: How To Change The Path Of Subdomain
  • Quote

Post by decentguy49 » Sun Dec 02, 2018 1:38 pm

imperio wrote: ↑
Sun Dec 02, 2018 1:31 pm

Code: Select all

media.bloggingmayor.com.apache2.conf
or

Code: Select all

media.bloggingmayor.com.apache2.ssl.conf
if ssl support for domain is enabled
I change the DocumemtRoot to /home/admin/web/bloggingmayor.com/public_html/media and restarted the VPS but now I am getting 500 Error on sub domain, have I done anything wrong?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: How To Change The Path Of Subdomain
  • Quote

Post by imperio » Sun Dec 02, 2018 1:55 pm

does the media folder is exist?
/home/admin/web/bloggingmayor.com/public_html/media
Top

decentguy49
Posts: 9
Joined: Tue Nov 21, 2017 4:32 pm

Re: How To Change The Path Of Subdomain
  • Quote

Post by decentguy49 » Sun Dec 02, 2018 2:01 pm

imperio wrote: ↑
Sun Dec 02, 2018 1:55 pm
does the media folder is exist?
/home/admin/web/bloggingmayor.com/public_html/media
yes it does
Top

decentguy49
Posts: 9
Joined: Tue Nov 21, 2017 4:32 pm

Re: How To Change The Path Of Subdomain
  • Quote

Post by decentguy49 » Sun Dec 09, 2018 4:14 pm

any solution with anyone???
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “General Discussion”



  • 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