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....
leoj3n
Jul 14, 2012Aspirant
OK now I am starting to wrap my head around apache... Adding the directive I found in /etc/frontview/apache/DefAlias.conf to /etc/frontview/apache/sites/*.vhost fixed the directory listing image problem:
---
But I still have the issue of index.php being directly downloaded instead of executed...
This is what I see in /var/log/frontview/error.log when I restart apache-ssl...
Should I be seeing something about mod_php5 in there?
I followed the tutorial at http://www.readynas.com/?p=140 to set up a PHP CGI environment... Do you think this issue has to do with the WhoCares? apache configs or is it unrelated and should have its own thread?
---
I tried adding
to /etc/frontview/apache/httpd.conf and added "+ExecCGI" to /etc/frontview/apache/sites/2011cc.otzo.com.vhost:
I restarted apache-ssl, cleared cache, but still no progress. Running out of ideas, most likely because I don't know enough about apache configs.
This is what now gets logged in error.log upon apache-ssl restart:
<VirtualHost *:80>
ServerName leoj3n.otzo.com
ServerAlias leoj3n.otzo.com
DocumentRoot /c/public_html/leoj3n
<Directory /c/public_html/leoj3n>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# ADDED THIS DIRECTIVE
Alias /images/ /frontview/ui/resource/images/
<Directory /images>
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Location />
DirectoryIndex redirect.html index.html index.htm index.php
</Location>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
RewriteEngine On
RewriteOptions Inherit
Options +FollowSymLinks
</VirtualHost>
---
But I still have the issue of index.php being directly downloaded instead of executed...
This is what I see in /var/log/frontview/error.log when I restart apache-ssl...
[Sat Jul 14 17:47:36 2012] [notice] SIGHUP received. Attempting to restart
apache-ssl: Could not reliably determine the server's fully qualified domain name, using 10.0.1.2 for ServerName
[Sat Jul 14 17:47:36 2012] [warn] RSA server certificate CommonName (CN) `10.0.1.26' does NOT match server name!?
[Sat Jul 14 17:47:36 2012] [notice] Apache/2.2.6 (Debian) mod_ssl/2.2.6 OpenSSL/0.9.8c DAV/2 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
Should I be seeing something about mod_php5 in there?
I followed the tutorial at http://www.readynas.com/?p=140 to set up a PHP CGI environment... Do you think this issue has to do with the WhoCares? apache configs or is it unrelated and should have its own thread?
---
I tried adding
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
AddHandler php5-script .php
#AddType text/html .php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
to /etc/frontview/apache/httpd.conf and added "+ExecCGI" to /etc/frontview/apache/sites/2011cc.otzo.com.vhost:
<Directory /c/public_html/2011cc>
Options +FollowSymLinks +ExecCGI
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
I restarted apache-ssl, cleared cache, but still no progress. Running out of ideas, most likely because I don't know enough about apache configs.
This is what now gets logged in error.log upon apache-ssl restart:
[Sat Jul 14 17:47:36 2012] [notice] SIGHUP received. Attempting to restart
apache-ssl: Could not reliably determine the server's fully qualified domain name, using 10.0.1.2 for ServerName
[Sat Jul 14 17:47:36 2012] [warn] RSA server certificate CommonName (CN) `10.0.1.26' does NOT match server name!?
[Sat Jul 14 17:47:36 2012] [notice] Apache/2.2.6 (Debian) mod_ssl/2.2.6 OpenSSL/0.9.8c DAV/2 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!