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

Have issue when changing root folder directory of domain

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
vandread911
Posts: 14
Joined: Fri Jul 25, 2014 5:03 am

Have issue when changing root folder directory of domain
  • Quote

Post by vandread911 » Wed May 13, 2015 3:07 pm

I have 2 domains

example.com (original tld/domain)
&
example.org

i want example.org root directory to be linked to example.com's root directory (where the files are located)
i edited:

Code: Select all

/home/admin/conf/web/httpd.conf
and edited example.org documentroot like so:

Code: Select all

DocumentRoot /home/admin/web/example.com/public_html  
(was DocumentRoot /home/admin/web/example.org/public_html)
so when i browse example.org i will view example.com's files

the index page works but when i view example.org/page1/index.html

it shows this error:
Image

i am running wordpress site on example.com
i also tried editing wp-config.php and adding
define('WP_HOME','http://example.org');
define('WP_SITEURL','http://example.org);

and i also edited WP_options and change the url there aswell in mysql

could anyone help, am i doing something wrong?
Top

vandread911
Posts: 14
Joined: Fri Jul 25, 2014 5:03 am

Re: Have issue when changing root folder directory of domain
  • Quote

Post by vandread911 » Sat May 16, 2015 6:55 pm

Anyone have any ideas how to solve this
Top

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

Re: Have issue when changing root folder directory of domain
  • Quote

Post by skurudo » Mon Jun 01, 2015 2:25 pm

I have one ;-)

/home/admin/conf/web/apache2.conf
DocumentRoot
Directory
Directory

Carefully change path to your domain and restart webserver apache2 (httpd in centos)
Top

vandread911
Posts: 14
Joined: Fri Jul 25, 2014 5:03 am

Re: Have issue when changing root folder directory of domain
  • Quote

Post by vandread911 » Fri Jun 12, 2015 6:19 am

skurudo wrote:I have one ;-)

/home/admin/conf/web/apache2.conf
DocumentRoot
Directory
Directory

Carefully change path to your domain and restart webserver apache2 (httpd in centos)
I dont have apache2.conf in /home/admin/conf/web/ only httpd.conf
the site i am using is a wordpress site located on 2 tolds example.com (main site) and example.org
when i view example.org everything is fine until i access example.org/page1.html then is shows
Image

i have made the necessary changes in httpd.conf and nothing changes
Top

Ghost
Posts: 1
Joined: Wed May 02, 2018 10:35 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Have issue when changing root folder directory of domain
  • Quote

Post by Ghost » Wed May 02, 2018 10:36 pm

Have you restarted apache and Nginx after making these changes?
Top


Post Reply
  • Print view

5 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