NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
devbobo
Nov 29, 2009Aspirant
HOW TO: Hosting multiple websites
G'day Guys, For some time I've wanted to host multiple websites from a single ReadyNAS unit...I haven't had the time to investigate it. 1. Backup all the .conf files in /etc/frontview/apache 2....
Avon_Fox
Feb 17, 2012Aspirant
Multiple websites not working with removal of www from the URL.
I've got my RNPD200U set up with Virtual.conf and my-virtual.conf as shown below and it works fine for the 'www.the-liberator.net' URL but the 'the-liberator.net' URL fails. I've removed the DNS entry to the latter as it was confusing Google's indexing but I'd like to get it to work.
I had DNS A record set up for both www.the-liberator.net and the-liberator.net which worked fine on my old Windows web server but with the .conf files set as below it fails to work with for the www-less URL.
Any ideas greatly welcome. I can set up the A record again if anyone wants to test anything.
Cheers folks!
Virtual.conf
NameVirtualHost *:80
<VirtualHost *:80>
SSLEngine off
RewriteEngine on
RewriteRule ^/admin/(.*)$ https://%{SERVER_NAME}/admin/$1 [R,L]
</VirtualHost>
my-virtual.conf
<VirtualHost *:80>
ServerName www.the-liberator.net
DocumentRoot /c/web
<Directory /c/web>
Options Indexes
Order allow,deny
Allow from all
</Directory>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
</VirtualHost>
<VirtualHost *:80>
ServerName the-liberator.net
DocumentRoot /c/web
<Directory /c/web>
Options Indexes
Order allow,deny
Allow from all
</Directory>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
</VirtualHost>
I've got my RNPD200U set up with Virtual.conf and my-virtual.conf as shown below and it works fine for the 'www.the-liberator.net' URL but the 'the-liberator.net' URL fails. I've removed the DNS entry to the latter as it was confusing Google's indexing but I'd like to get it to work.
I had DNS A record set up for both www.the-liberator.net and the-liberator.net which worked fine on my old Windows web server but with the .conf files set as below it fails to work with for the www-less URL.
Any ideas greatly welcome. I can set up the A record again if anyone wants to test anything.
Cheers folks!
Virtual.conf
NameVirtualHost *:80
<VirtualHost *:80>
SSLEngine off
RewriteEngine on
RewriteRule ^/admin/(.*)$ https://%{SERVER_NAME}/admin/$1 [R,L]
</VirtualHost>
my-virtual.conf
<VirtualHost *:80>
ServerName www.the-liberator.net
DocumentRoot /c/web
<Directory /c/web>
Options Indexes
Order allow,deny
Allow from all
</Directory>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
</VirtualHost>
<VirtualHost *:80>
ServerName the-liberator.net
DocumentRoot /c/web
<Directory /c/web>
Options Indexes
Order allow,deny
Allow from all
</Directory>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
</VirtualHost>
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!