NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
vesper76
Dec 07, 2009Aspirant
Somehow broke logger, thereby breaking everything
For background on how I somehow got to this point: viewtopic.php?f=22&t=36105&start=0 I'm moving to this forum, because it's essentially a different question than I started with. The short versio...
PeterH2
Dec 22, 2011Aspirant
ke - seems to work now.
Enabled /www folder as website in Frontview (see this link: https://www.readynas.com/?p=135)
Then, the Frontview script has added this to the /etc/frontview/apache/Shares.conf
Alias "/www" "/c/www"
<Location "/www">
Options Indexes
Order allow,deny
Allow from all
Require valid-user
Include /etc/frontview/apache/Auth.conf
AuthName "My Shares"
</Location>
Well, then its simple, just add as many locations as you want, in my case site.com
Alias "/site.com" "/c/www/site.com"
<Location "/site.com">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Location>
Haha, and now it finally works! :-)
Well, no I see the PHP-errors in the apache log, not in the browser yet, but will figure that out later I guess :-)
Enjoy this solution, if you have this same problem! Host multiple websites on your NAS, enjoy :-)
10 minutes later:
I restarted my NAS, and then it did not seem to work anymore. What happened, f*cking apache or readynas, or whoever did it, recreates the /etc/frontview/apache/Shares.conf.
So you have to add your configuration everytime you reboot. If anybody has a fix for this, please let me know (via forum or PM)
update 2 - [2011-12-24]
I also solved the last two things.
For enabling the errors of php:
Open: /etc/php5/apache2/php.ini
Set: display_errors = On
For having the location always working also after reboot of your NAS:
Don't add the location to your Shares.conf, but to /etc/frontview/apache/httpd.conf
Alias "/site.com" "/c/www/site.com"
<Location "/site.com">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Location>
Special thanks to Dwarf and bsilva for their great help!
Enabled /www folder as website in Frontview (see this link: https://www.readynas.com/?p=135)
Then, the Frontview script has added this to the /etc/frontview/apache/Shares.conf
Alias "/www" "/c/www"
<Location "/www">
Options Indexes
Order allow,deny
Allow from all
Require valid-user
Include /etc/frontview/apache/Auth.conf
AuthName "My Shares"
</Location>
Well, then its simple, just add as many locations as you want, in my case site.com
Alias "/site.com" "/c/www/site.com"
<Location "/site.com">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Location>
Haha, and now it finally works! :-)
Well, no I see the PHP-errors in the apache log, not in the browser yet, but will figure that out later I guess :-)
Enjoy this solution, if you have this same problem! Host multiple websites on your NAS, enjoy :-)
10 minutes later:
I restarted my NAS, and then it did not seem to work anymore. What happened, f*cking apache or readynas, or whoever did it, recreates the /etc/frontview/apache/Shares.conf.
So you have to add your configuration everytime you reboot. If anybody has a fix for this, please let me know (via forum or PM)
update 2 - [2011-12-24]
I also solved the last two things.
For enabling the errors of php:
Open: /etc/php5/apache2/php.ini
Set: display_errors = On
For having the location always working also after reboot of your NAS:
Don't add the location to your Shares.conf, but to /etc/frontview/apache/httpd.conf
Alias "/site.com" "/c/www/site.com"
<Location "/site.com">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Location>
Special thanks to Dwarf and bsilva for their great help!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!