how do I add an alias to my main domain name?

14 posts / 0 new
Last post
#1 Sun, 04/12/2015 - 04:32
eiger3970

how do I add an alias to my main domain name?

How do I add an alias to my main domain name? I followed this, but step2 doesn't exist? https://oldhelp.joyent.com/index.php?pg=kb.page&id=293

On my Virtualmin server, I am running www.bigWebSite.com. I would like to add www.littleWebSite.com so I can view the littleWebSite as www.bigWebSite.com/littleWebSite.

Mon, 04/13/2015 - 09:24
andreychek

Howdy,

You can add an alias by going into Create Virtual Server -> Alias Server.

There, just enter the name of the domain name you wish to use as an alias.

-Eric

Sun, 04/19/2015 - 08:14
eiger3970

Thank you. I navigated to Virtualmin > Create Virtual Server > the standard fields for creating a real server were there. So, considering the Create Virtual Server had no Alias Server option and was the same as creating a virtual server: I already have www.littleWebSite.com already on Virtualmin. So, how do I make www.bigWebSite.com link and load www.littleWebSite.com? I have a link on the www.bigWebSite.com that says www.littleWebSite.com, so that when www.littleWebSite.com is clicked, it will open www.littleWebSite.com on a new page. www.littleWebSite.com will load from Virtualmin, as www.littleWebSite.com does not have a registered domain...so really the link will be to something like littleWebSite.

Mon, 04/20/2015 - 10:32
andreychek

Howdy,

There should always be an "alias" option in the "Create Virtual Server" screen, it shows up on the top, next to the text "New virtual server type".

If you're looking to add an alias still, meaning this site would load the same website as the top-level Virtual Server, ny suggestion would be to delete the existing domain, and then re-create it as an alias.

If you're having trouble finding the alias option, take a screenshot of your Create Virtual Server page and post that here, we can help you find how to set that up.

If it should load a different page, you wouldn't need an alias then, you could create it as a new Virtual Server, and give it a unique website.

Does that answer your question?

-Eric

Fri, 04/24/2015 - 21:30
eiger3970

Okay, that worked. I have been looking for instructions on how to upload littlewebsite.com to the new bigwebsite.com's Alias Server. /home/bigwebsite/public_html/index.html is for www.bigwebsite.com. I need to see www.bigwebsite.com/littlewebsite. I found https://www.virtualmin.com/documentation/tutorial/how-to-create-virtual-..., but nothing about the path to upload the website alias' file to?

Thu, 04/30/2015 - 00:10
eiger3970

I guess noone knows how to setup the little website on this Virtualmin alias thingy? Seems like cPanel is more user friendly. Does anyone know of a clear path to navigate to, for uploading the little website to the new alias?

Fri, 05/01/2015 - 19:55
eiger3970

So, I uploaded the entire littlewebsite (which works on the old www.littlewebsite.com domain) to /home/bigwebsite/public_html/littlewebsite.

There is an index.html file in /home/bigwebsite/public_html/littlewebsite/index.html.

Sat, 05/02/2015 - 18:20
eiger3970

Any documentation on Virtualmin for this?

Thu, 05/14/2015 - 01:48
eiger3970

Hello? Is Virtualmin broken again? I would have expected the domain alias to be /home/bigwebsite/public_html/littlewebsite, but there's no such directory? Any assistance on how to upload litttlewebsite to the domain alias in bigwebsite?

Thu, 05/14/2015 - 09:22
andreychek

Howdy,

The suggestion I offered when you asked in IRC a few days ago was to make two Virtual Servers, one called "bigwebsite.com", the other "littlewebsite.com".

In the public_html folder for bigwebsite.com, make a directory named "littlewebsite". You can upload your website there.

Then, setup littlewebsite.com to redirect to bigwebsite.com/littlewebsite.

You can do that using a .htaccess file in /home/USERNAME/domains/littlewebsite.com/public_html, or, you can use Virtualmin to create a redirect for you. You can do that by logging into Virtualmin, selecting littlewebsite.com in the dropdown list, and then going into Server Configuration -> Website Redirects.

-Eric

Sat, 05/16/2015 - 08:10
eiger3970

Yes, you mentioned that, however that seems to not be a domain alias. So, do I not need a domain alias and should delete it? What's the purpose of having a domain alias then? Wouldn't the domain alias allow littlewebsite to be in bigwebsite.com/littlewebsite?

I don't understand why I was suggested to use a domain alias, but now to setup 2 virtual servers and forward little website to bigwebsite.com/littlewebsite?

Sat, 05/16/2015 - 18:43 (Reply to #11)
Blueforce

Hi eiger3970,

I don't think you should use "alias" for the setup you are looking for, a alias domain is exactly what it says, it's just a alias of the main domain. I think you should go with what andreychek suggested, I also would go that direction to accomplish what you are looking for.

Best regards, Leffe

Sat, 05/16/2015 - 19:37
eiger3970

Thanks. Yes, I am now trying what andreychek suggested, however: I can't make the Virtualmin domain alias thingy work. littlewebsite.com works on it's own virtualserver, but putting littlewebsite in bigwebsite/public_html/littlewebsite or in bigwebsite/public_html loads a blank page?

Sat, 05/16/2015 - 21:24
eiger3970

Ok, I fixed it finally. Don't need any domain alias or 2nd virtual server. I moved littlewebsite to bigwebsite/public_html/littlewebsite and set permissions. Changed link on bigwebsite.com from www.littlewebsite.com to www.bigwebsite.com/littlewebsite.

Thanks for those who helped.

Topic locked