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

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

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

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

Thank you Eric;)