Hi,
I've opted for Hiawatha on my Raspberry Pi for various reasons, and I'm more than satisfied with this approach!
One thing I've still not tackled yet, is running monitor from a subdirectory, not the document root (WebsiteRoot).
My file system looks something like this:
/data
+-- /www
+-- /apps
+-- /drupal
+-- /monitor
+-- /phpmyadmin
+-- /piwik
+-- /cgi-bin
+-- /htdocs
+-- /index.php
+-- /images
+-- /tools
+-- /phpinfo.php
The document root (WebsiteRoot) is set to "/data/www/htdocs", and there are several aliases setup, eg.
Alias /drupal:/data/www/apps/drupal
Alias /monitor:/data/www/apps/monitor
Alias /phpmyadm:/data/www/apps/phpmyadmin
Alias /piwik:/data/www/apps/piwik
So when browsing "http://my.site.local" the "index.php" file found in the "htdocs" directory is getting displayed, when opening URL "http://my.site.local/monitor" I'd like to see the Hiawatha Monitor, but instead I'm receiving an error message reading
"The requested page could not be found"
My virtual host configuration:
VirtualHost {
Hostname = my.site.local
RequiredBinding = my.site.local
WebsiteRoot = /data/www/sites/my.site.local/htdocs
StartFile = index.php
AccessLogfile = /var/log/hiawatha/my.site.local-access.log
ErrorLogfile = /var/log/hiawatha/my.site.local-error.log
TimeForCGI = 600
UseFastCGI = php5-fpm
Alias /tools:/data/www/sites/my.site.local/tools
Alias /drupal:/data/www/sites/my.site.local/apps/drupal
Alias /monitor:/data/www/sites/my.site.local/apps/monitor/public
Alias /phpmyadm:/data/www/sites/my.site.local/apps/phpmyadmin
Alias /piwik:/data/www/sites/my.site.local/apps/piwik
#UseToolkit = monitorroot
#UseToolkit = monitorsub, drupalsub, drupal8sub
#UseToolkit = drupalsub, drupal8sub
}
My URL Toolkits:
MonitorServer = 127.0.0.1
UrlToolkit {
ToolkitID = monitorroot
RequestURI isfile Return
Match ^/(css|images|js)/ Return
Match ^/(favicon.ico|robots.txt)$ Return
Match [^?]*(\?.*)? Rewrite /index.php$1
}
UrlToolkit {
ToolkitID = monitorsub
RequestURI isfile Return
Match ^/(css|images|js)/ Rewrite /monitor/$1/
Match ^/(favicon.ico|robots.txt)$ Rewrite /monitor/$1
Match [^?]*(\?.*)? Rewrite /monitor/index.php$1
}
UrlToolkit {
ToolkitID = drupalroot
RequestURI isfile Return
Match ^/(favicon.ico)$ Return
Match /(.*)\?(.*) Rewrite /index.php?q=$1&$2 Return
Match /(.*) Rewrite /index.php?q=$1
}
UrlToolkit {
ToolkitID = drupalsub
RequestURI isfile Return
Match ^/(favicon.ico)$ Rewrite /drupal/$1
Match /(.*)\?(.*) Rewrite /drupal/index.php?q=$1&$2 Return
Match /(.*) Rewrite /drupal/index.php?q=$1
}
What would I have to amend in which manner?
Btw. as Drupal is located in a subdirectory as well and accessed with this instead of the document root (WebsiteRoot), and hints with regards to this would come in quite handy as well!
--Sil68