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 create a generic mirror of a sub-domain to my domain public_html/

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
exclu254
Posts: 44
Joined: Mon Dec 23, 2019 6:44 pm

Os: Ubuntu 15x
Web: nginx + php-fpm
How to create a generic mirror of a sub-domain to my domain public_html/
  • Quote

Post by exclu254 » Sat Jan 04, 2020 2:29 am

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
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
 

 

Login  •  Register

I forgot my password