Page 1 of 1

How to create a generic mirror of a sub-domain to my domain public_html/

Posted: Sat Jan 04, 2020 2:29 am
by exclu254
Hi Team, first off, Happy new year, and I so much dig this control panel.
The problem I have is creating my sub-domain to point to the domain root path.

What I have tried:
I followed the instruction on this thread: viewtopic.php?t=13689 it goes like this:
The easiest way is to edit your apache2 conf file (I'm on Debian):

nano /home/<user>/conf/web/apache2.conf

Find your domain virtual host

<VirtualHost IP:8080>

ServerName abc.xyz
ServerAlias www.abc.xyz
DocumentRoot /home/<user>/web/abc.xyz/public_html


Replace public_html with your full path. For example, the root path of the subdomains is

/home/admin/web/sub.domain/public_html/wp-content/uploads

Then

Code: Select all

service apache2 restart 
or

Code: Select all

service httpd restart
I did exactly that, but I always get a 404 error, any work around with this, I'll greatly appreciate, thanks