How can i add 2 dmains at one public folder

5 posts / 0 new
Last post
#1 Mon, 01/02/2012 - 09:02
_webdesign_

How can i add 2 dmains at one public folder

Hi, I have a question.. How can I add 2 Domains at one public Folder ??

Mon, 01/02/2012 - 10:30
andreychek

Howdy,

A common way of doing that is to first add a Virtual Server -- and then to add an alias.

So if you have a Virtual Server named "example.com" that points to one public_html folder -- you can then go into Create Virtual Server -> Alias Server, and create an alias for "example.net" that points to the same public_html folder as "example.com".

-Eric

Tue, 01/03/2012 - 09:28
_webdesign_

I have both domain add as separat Virtual Server.. should i delte one and add it again as Alias Server to the other domain ?

Tue, 01/03/2012 - 10:06
andreychek

Howdy,

Virtualmin doesn't support having two separate Virtual Servers that share one public_html folder. The best you could do in that instance is configure one of the two Virtual Servers to redirect to the other one.

However, it may be easier to simply delete one of them, and then add it as an alias.

-Eric

Fri, 01/06/2012 - 11:15
_webdesign_

Thank you Eric;)

Topic locked