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

same root folder (one folder) for multiple domain ?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
pedagang
Posts: 14
Joined: Fri Mar 14, 2014 2:01 pm

same root folder (one folder) for multiple domain ?
  • Quote

Post by pedagang » Fri Apr 11, 2014 5:37 pm

is it possible to set-up same root folder (one folder /// public_html) for multiple domain as standard drupal multisite ?
Top

kellenw
Posts: 2
Joined: Thu May 15, 2014 8:17 pm

Re: same root folder (one folder) for multiple domain ?
  • Quote

Post by kellenw » Sat Nov 01, 2014 6:47 pm

I would like to know if this is possible also.
Top

Joop
Posts: 33
Joined: Wed Oct 08, 2014 6:40 pm

Re: same root folder (one folder) for multiple domain ?
  • Quote

Post by Joop » Sat Nov 01, 2014 9:14 pm

I'm even interested in this feature.
Top

szimre
Posts: 16
Joined: Sun Nov 02, 2014 11:54 pm
Contact:
Contact szimre
Website

Re: same root folder (one folder) for multiple domain ?
  • Quote

Post by szimre » Sun Nov 02, 2014 11:59 pm

Hi!

Add the domain name in the DNS section and then set up an alias for the base site in the Web section. This way when the second domain is requested from the server it will simply reply like it's the base site.


Example:
--
DNS Section:
exampl.com - <server ip>
example.com - <server ip>
examplee.com - <server ip>
--
Web Section:
example.com with exampl.com & examplee.com alias
--
Top

virtualaccordion
Posts: 3
Joined: Wed Sep 30, 2015 10:03 am

Re: same root folder (one folder) for multiple domain ?
  • Quote

Post by virtualaccordion » Wed Sep 30, 2015 10:11 am

Hi szimre,

I have some issue for the some situation, but I do not understand your solution.
I am new for VestaCP!

Can you explane me your solution in details ?
Thank You
Top

sheraz.co
Posts: 3
Joined: Wed Oct 21, 2020 10:12 am
Contact:
Contact sheraz.co
Website

Os: CentOS 6x
Web: apache + nginx
Re: same root folder (one folder) for multiple domain ?
  • Quote

Post by sheraz.co » Wed Oct 21, 2020 10:18 am

I have searched, But I have not found any solution!

Any one can help in this?

Means, Same folder/directory for 2 domains (multiple domains)!

For e.g, When we add web so, automatically created folder as a domain name! But, we want to 1 folder (home/web/example.com/public_html/index.html) and access from 2 domains!
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: same root folder (one folder) for multiple domain ?
  • Quote

Post by grayfolk » Wed Oct 21, 2020 11:09 am

sheraz.co wrote: ↑
Wed Oct 21, 2020 10:18 am
I have searched, But I have not found any solution!

Any one can help in this?

Means, Same folder/directory for 2 domains (multiple domains)!

For e.g, When we add web so, automatically created folder as a domain name! But, we want to 1 folder (home/web/example.com/public_html/index.html) and access from 2 domains!
Very simple solution - simlink. Or, you can create template with hardcoded docroot.
Top

sheraz.co
Posts: 3
Joined: Wed Oct 21, 2020 10:12 am
Contact:
Contact sheraz.co
Website

Os: CentOS 6x
Web: apache + nginx
Re: same root folder (one folder) for multiple domain ?
  • Quote

Post by sheraz.co » Wed Oct 21, 2020 11:50 am

I'm new in vesta... So How template/simlink etc work?

Can you explain me with details? How can I do it?
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