It is currently Tue Mar 09, 2021 4:03 pm
All times are UTC + 8 hours

Problem with multiple virtual hosts

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

Problem with multiple virtual hosts

Postby KSHH » Wed Jul 05, 2017 8:17 pm

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.
KSHH
 
Posts: 8
Joined: Wed Jul 05, 2017 8:11 pm

Re: Problem with multiple virtual hosts

Postby Kapitein Haak » Wed Jul 05, 2017 8:57 pm

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

Postby Kapitein Haak » Wed Jul 05, 2017 9:00 pm

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

Postby KSHH » Wed Jul 05, 2017 9:07 pm

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

Postby KSHH » Wed Jul 05, 2017 9:08 pm

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.
KSHH
 
Posts: 8
Joined: Wed Jul 05, 2017 8:11 pm

Re: Problem with multiple virtual hosts

Postby Kapitein Haak » Wed Jul 05, 2017 9:41 pm

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=32&t=133233&sid=acb1a595099b723efa646c44bdc6ebd0 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
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

Postby KSHH » Thu Jul 06, 2017 3:32 am

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.
KSHH
 
Posts: 8
Joined: Wed Jul 05, 2017 8:11 pm

Return to NAS Utilities

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest