Problem with multiple virtual hosts

Got a question about our NAS utilities? The answer lies within.

Moderator: Lillian.W@AST

Post Reply
KSHH
Posts: 8
youtube meble na wymiar Warszawa
Joined: Wed Jul 05, 2017 8:11 pm

Problem with multiple virtual hosts

Post by KSHH »

I can't seem to have 2 domains working at the same time.
I've got these two:
photosbysandager.dk
haaning-webdesign.dk

Under the virtual servers i've got:
www.photosbysandager.dk
photosbysandager.dk
www.haaning-webdesign.dk
haaning-webdesign.dk

When only having the domain haaning-webdesign.dk/www.haaning-webdesign.dk, it worked perfectly.
But after adding photosbysandager.dk/www.photosbysandager.dk, i can only access photosbysandager.dk/www.photosbysandager.dk.

Anyone having or have had the same problem, and knows how to fix it?
All the necessary ports are open and pointed to the correct IP address.
User avatar
Kapitein Haak
Posts: 333
Joined: Tue Oct 15, 2013 2:40 pm
Location: Stranded on the Dutch coast.

Re: Problem with multiple virtual hosts

Post by Kapitein Haak »

Hello KSHH,

I have three different domains running on the NAS (all with and without www., and all http forward to https) and every domain works as intended. I have the first domain (with www. and without www.) pointed to the [Web] shared folder. The other two domains are vhosts pointing to a subfolder of the [web] shared folder. Have you pointed the photosbysandager.dk/www.photosbysandager.dk domains to a subfolder of the [web] shared folder?>

Best regards,
Kapitein Haak.
"What would the world be like without Captain Hook?"
---
"Homo sapiens non urinat in ventum" (A wise man doesn't piss into the wind), only in Amsterdam:
https://www.google.nl/maps/@52.36289,4. ... 312!8i6656
User avatar
Kapitein Haak
Posts: 333
Joined: Tue Oct 15, 2013 2:40 pm
Location: Stranded on the Dutch coast.

Re: Problem with multiple virtual hosts

Post by Kapitein Haak »

Hell KSHH,

When I try to open the website http://Haaning-Webdesign.dk it will give "ERR_NAME_NOT_RESOLVED". Pinging the website name wil not resolve the website name. This looks like a DNS issue, do you have A records in DNS for (www.)Haaning-Webdesign.dk to an IP address?

Best regards,
Kapitein Haak.
"What would the world be like without Captain Hook?"
---
"Homo sapiens non urinat in ventum" (A wise man doesn't piss into the wind), only in Amsterdam:
https://www.google.nl/maps/@52.36289,4. ... 312!8i6656
KSHH
Posts: 8
Joined: Wed Jul 05, 2017 8:11 pm

Re: Problem with multiple virtual hosts

Post by KSHH »

Haha, what a dummy i am. :D
Apparently, after my host got bought by another host, they haven't gotten my DNS records moved. :D

Sorry for the inconvenience guys. :)
KSHH
Posts: 8
Joined: Wed Jul 05, 2017 8:11 pm

Re: Problem with multiple virtual hosts

Post by KSHH »

By the way, do any of you know, how to update the PHP version? When installing Joomla, it says that my PHP version is 5.6.30, and the newest version is 7.x.
User avatar
Kapitein Haak
Posts: 333
Joined: Tue Oct 15, 2013 2:40 pm
Location: Stranded on the Dutch coast.

Re: Problem with multiple virtual hosts

Post by Kapitein Haak »

I think it is maintained by Asustor and should not be upgraded by a user. Perhaps someone with more knowledge off PHP and it's version control can give a better answer.
I am on the latest beta and PHP is still 5.6.30. According to https://forum.qnap.com/viewtopic.php?f= ... 44bdc6ebd0 5.6 will be supported throughout 2018.
QNAP and Synology (https://www.synology.com/nl-nl/knowledg ... ct_support) are both also on 5.5 or 5.6.
"What would the world be like without Captain Hook?"
---
"Homo sapiens non urinat in ventum" (A wise man doesn't piss into the wind), only in Amsterdam:
https://www.google.nl/maps/@52.36289,4. ... 312!8i6656
KSHH
Posts: 8
Joined: Wed Jul 05, 2017 8:11 pm

Re: Problem with multiple virtual hosts

Post by KSHH »

Ok, i'll just hope that they'll update it asap then. :)
PHP 7.x is up to 25% faster than 5.6.x, and a lot of new extensions for Joomla rely's on newer PHP versions.
Post Reply

Return to “NAS Utilities”