NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Stan78
Oct 24, 2016Aspirant
Running a few websites / domains off one NAS server
Hi Guys,
Got one problem I can't resolve myself.
I have PRO 6 (legacy) running OS 6.6. I managed to put my website on it with no problems whatsoever.
It resolves by name, works fine, and if i want to view the Netgera frontview, I just go there by IP/admin.
Everything is fine, except that I have 2 domains registered, both pointing to my server IP (public IP),
and I need to run them both from my NAS.
Well, I read this: https://community.netgear.com/t5/Community-Add-ons/HOW-TO-Hosting-multiple-websites/td-p/696881/page/6
but this solution is not working for me - there is no 'virtual.conf' file on my system. That informations are 4 years old, I suppose Apache changed since then.
My system has version Apache of 2.2 ...
I found some tutorials for multidomain hosting for Apache 2, and I certainly can follow, but since all of this is written for 'regular' linux servers, I'm affraid about frontview access after I change Apache files..
Can anyone point me to the right direction ?
How to host 2 (or more) domains on one NAS and not to loose the frontview ?
5 Replies
Replies have been turned off for this discussion
- FramerVNETGEAR Employee Retired
Hi Stan78,
I have tried researching but I cannot seem to find anything pertaining to ReadyNAS. A few searches show me that in order to have would involve virtual hosting. I will try to check this further and see if I come up with something that may help you.
Regards,
- Stan78Aspirant
Halo, and thank you for the replay..:)
By this time, I managed to do this, so now, I have OS 6.6 running 2 websites in the same time :)
The trick was to create virtual.conf file in /etc/apache2/conf.d ,containing:
NameVirtualHost *:80
NameVirtualHost *:443The second entry (443) is required to have ssl connection possible to NAS. Without this, even webgui reports errors over https.
Then (something new to Apache2) I put configuration of each website, to the separate folder, in /etc/apache2/sites-available. The folder must be in format www.yourdomain.com.conf.
Then I run a2ensite www.yourdomain.com.conf
This created a symlink to this folder in /etc/apache2/sites-enabled
Then do the same for the second domain.
After that, service Apache2 reload, and... it works :)
The one difference is that now, the webgui is avaliable on x.x.x.x/admin
I used this as a guideline:
https://debian-administration.org/article/412/Hosting_multiple_websites_with_Apache2
Just remember - the virtual.conf has to be a bit different in our case:)
Now I'm strugling with WordPress instalation...(mysql,php, and so on)
- FramerVNETGEAR Employee Retired
Hi Stan78,
What kind of issue are you experiencing with the installation?
Also, where are you getting the installers?
Regards,
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!