MindTouch Developer Center > MindTouch Deki > FAQ > Configuration > How do I...Run Deki API on a different port?

How do I...Run Deki API on a different port?

By default, the Deki Wiki API listens on port 8081.  For example, if you'd like the API to listen on port 9999 do the following:

Change the mindtouch.host.conf file

Edit the /etc/dekiwiki/mindtouch.host.conf file and change the following variable:

HTTP_PORT=9999

Note: On windows, you'll need to edit your bin/mindtouch.host.bat file and change the http-port argument to http-port 9999

Change your LocalSettings.php file

Edit the LocalSettings.php file in your Deki Wiki web root and add the following variable:

$wgDreamServer = 'http://localhost:9999';

 

Change your apache mod_proxy rules

Edit your Deki Wiki Apache configuration file and change the ProxyPass and ProxyPassReverse values to the following:

ProxyPass /@api http://localhost:9999 retry=1
ProxyPassReverse /@api http://localhost:9999

 

Restart Apache and Deki Wiki API

/etc/init.d/dekiwiki restart
/etc/init.d/apache2 reload 

 

Tag page
You must login to post a comment.
Powered by MindTouch Deki Enterprise Edition v.8.08 RC1