Virtual Host with or without "www" prefix

Web hosting, MySQL, PHP and all that good stuff.

Moderator: Lillian.W@AST

Post Reply
n2vwz
Posts: 42
youtube meble na wymiar Warszawa
Joined: Fri May 03, 2013 6:39 am

Virtual Host with or without "www" prefix

Post by n2vwz »

I set up a virtual host "myhost.dyndns.org". This works fine.

I tried prefixing the url with www ("www.myhost.dyndns.org") and I'm just getting the Congratulations - You have successfully enabled the Web server on your ASUSTOR NAS message.

I would like the site to work with or without the www prefix. Do I need to create a second virtual site to work with the www prefix or will naming the virtual site " *.myhost.dyndns.org" perform this function?

Jim
User avatar
James.W@AST
Posts: 189
Joined: Wed Jun 06, 2012 12:50 am

Re: Virtual Host with or without "www" prefix

Post by James.W@AST »

I think you will need to create two vHost. Or maybe you can consult this with blackstar and he can give you some better suggestions : )
To Infinity and Beyond!

Friends of My AS-606T: (RAID 5 with WD Black 2TB * 4, WD Red 2TB * 2)
MacBook Air (10.8) & Self-assembled Windows PC (Windows 7)
iPhone 4S (iOS 6) & iPad 2 (iOS 6)
Boxee Box, Logitech Squeezebox Duet
SONY HT-CT150 Sound Bar (Connected directly to the NAS via HDMI)
CISCO Linksys E4200
TheDave1022
Posts: 104
Joined: Tue Dec 04, 2012 9:47 am

Re: Virtual Host with or without "www" prefix

Post by TheDave1022 »

Can we have more than 8 virtual hosts? With needing to setup 1 with www and another without, it's not very flexible if as we can only really have 4.
Mechano
Posts: 25
Joined: Wed Mar 12, 2014 7:34 am

Re: Virtual Host with or without "www" prefix

Post by Mechano »

TheDave1022 wrote:Can we have more than 8 virtual hosts? With needing to setup 1 with www and another without, it's not very flexible if as we can only really have 4.
You can have more than 8 wirtualhosts, if you go from shell.
I wrote a tutorial:

http://forum.asustor.com/viewtopic.php?f=49&t=3219
aajamilkhan
Posts: 1
Joined: Thu Jan 15, 2015 9:17 pm

Re: Virtual Host with or without "www" prefix

Post by aajamilkhan »

I tried prefixing the url with www ("www.myhost.dyndns.org") and I'm just getting the Congratulations - You have successfully enabled the Web server on your ASUSTOR NAS message.
Post Reply

Return to “Web Hosting”