× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Running a few websites / domains off one NAS server

Stan78
Aspirant

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

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 ?

Model: ReadyNASRNDP6000v2|ReadyNAS Pro 6 Chassis only
Message 1 of 6
FramerV
NETGEAR Employee Retired

Re: Running a few websites / domains off one NAS server

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,

Message 2 of 6
Stan78
Aspirant

Re: Running a few websites / domains off one NAS server

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 *:443

 

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

Model: ReadyNASRNDP6000v2|ReadyNAS Pro 6 Chassis only
Message 3 of 6
FramerV
NETGEAR Employee Retired

Re: Running a few websites / domains off one NAS server

Hi Stan78,

 

What kind of issue are you experiencing with the installation?

 

Also, where are you getting the installers?

 

 

Regards,

Message 4 of 6
Stan78
Aspirant

Re: Running a few websites / domains off one NAS server

Hi,

 

I installed from frontview:

- MySQL poussin 1.0.1

- PHP Myadmin poussin 4.0.4

- PHP poussin 1.0.0

 

PHP Myadmin works, but I have problem with configuration

I have my old website with Wordpress instalation. Made DB dump, copied everything from 'web' folder.

What i found over the internet, that moving WP to new server, should be only:

- copy files

- import DB

- adjust DB user/pass and links to point to new server...

 

Sounds easy - well... it is not..

I have my DB copy (sql fie), and I wonder.. how to import it?

Is there running server already, or needs to be created?

Lot of questions, no answers whatsoever...:)

Model: ReadyNASRNDP6000v2|ReadyNAS Pro 6 Chassis only
Message 5 of 6
FramerV
NETGEAR Employee Retired

Re: Running a few websites / domains off one NAS server

Hi Stan78,

 

I apologize but I am not that sure as well. You are using the 6.6.0 firmware, correct? Let us wait for some inputs from the other community members.

 

 

Regards,

Message 6 of 6
Top Contributors
Discussion stats
  • 5 replies
  • 2317 views
  • 0 kudos
  • 2 in conversation
Announcements