This guide will help you to configure the direct connection between the WProofreader product and other products based on SpellCheckAsYouType (SCAYT) with AppServer bypassing the old FastCGI component.

Good to know:

1. With WebSpellChecker Server 5.0.0 release, the service requests for spelling and grammar checking using products based on SpellCheckAsYouType (SCAYT),  WProofreader and Web API can be processed directly by AppServer. Previously, all such requests before reaching AppServer were processed by the quite old FastCGI component and only then were sent to AppServer. Getting rid of the intermediate step with the FastCGI component for newer products simplified the process of the application configuration and significantly sped up the request processing time. 

Configuring the direct connection of WProofreader with AppServer provides the following advantages:

  • Get rid of the FastCGI component and its additional configuration;
  • Improve the performance of your application;
  • Release your Web or Application Server from processing spell and grammar check requests;
  • Simplify your configuration and improve maintainability.

2. The default port of AppServer is 2880

3. In order to configure a secure SSL connection between your application and AppServer, it is also required to perform the additional steps as described on the Enabling SSL connection with AppServer page.

1. Direct connection in WProofreader

1. Add the following parameters to WEBSPELLCHECKER_CONFIG of WProofreader initialization in your app:

  • serviceHost: 'your_host_name'
  • serviceProtocol: 'http' or 'https'
  • servicePath: '/'
  • servicePort: '2880'

2. As soon as all the changes are made and saved, it is recommended to clear browser cache and reload the page.

Example: Initialization of WProofreader with a direct connection to AppServer

        autoSearch: true,
        enableGrammar: true,
        serviceProtocol: 'https',
        serviceHost: 'your_host_name',
        servicePort: '2880',
        servicePath: '/'

2. Direct connection for SCAYT plugin for CKEditor  4

2.1. Add the following SCAYT plugin parameters in CKEditor config.js file used your app:

  • scayt_serviceHost: 'your_host_name'
  • scayt_serviceProtocol: 'http' or 'https'
  • scayt_servicePath: '/'
  • scayt_servicePort: '2880'

2.2. As soon as all the changes are made and saved, it is recommended to clear browser cache and reload the page.

Example: Initialization of SCAYT plugin for CKEditor 4 with direct connection to AppServer

 CKEDITOR.editorConfig = function( config ) { 
    config.scayt_srcUrl = 'https://your_host_name/wscservice/wscbundle/wscbundle.js'; 
    config.scayt_serviceProtocol = 'https'; 
    config.scayt_servicePort = '2880'; 
    config.scayt_servicePath = '/'; 
    config.scayt_serviceHost = 'your_host_name';  };

Still have a question?

Please feel free to contact our technical team if you are having any difficulties with the configuration. 

  • No labels