Forum

Dreamfactory

HardCoded
5 July 2017, 04:29
I am attempting to get Dreamfactory (http://wiki.dreamfactory.com/DreamFactory/APT/Ubuntu_16.04/Installation) working. I was able to install, but am having issues with host and toolkits.

This is the htaccess file that comes with Dreamfactory
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

and this is the apache sample config
<VirtualHost *:80>
DocumentRoot /opt/dreamfactory/public

<Directory /opt/dreamfactory/public>
AddOutputFilterByType DEFLATE text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
AllowOverride None
Require all granted
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [L]

<LimitExcept GET HEAD PUT DELETE PATCH POST>
Allow from all
</LimitExcept>
</Directory>
</VirtualHost>

Do you think it will work with Hiawatha?
Hugo Leisink
6 July 2017, 08:56
Try this UrlToolkit rule:
UrlToolkit {
ToolkitID = dreamfactory
RequestURI exists Return
Match .* Rewrite /index.php
}

If you experience issues with login in, try setting 'HTTPAuthToCGI = yes'.
HardCoded
6 July 2017, 23:48
Sadly I am afraid I can't tell you if that worked. It appears that something else is the issue. I will try something else or perhaps have to run a separate server.

I would like to say I am loving your server. I had an Apache server running the exact same hardware setup and it was showing a load of 2 - 4 since switching to yours I have a load of .20 - .70
HardCoded
7 July 2017, 14:24
I do think the Toolkit is correct. It does appear to be redirecting correctly. I think dreamfactory is just not working correctly.
This topic has been closed.