Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Enable proxy and proxy_http modules using a2enmod script within Apache configuration. 

Code Block
languagebash
$ a2enmod proxy
$ a2enmod proxy_http

2. Find and open for editing WebSpellChecker config (2_WebInterface.conf) for Apache Apache. 

  • File location on Linux-based environments: /etc/apache2/conf-available/2_WebInterface.conf
Code Block
languagebash
/etc/apache2/conf-available# nano 2_WebInterface.conf

3. At the very top or end of the file, add ProxyPass with the path to the application server (AppServer).

Code Block
languagebash
ProxyPass "/wscservice/api" "http://localhost:2880"
...

4. Save file and restart Apache.Restart Apache

Code Block
languagebash
$ service apache2 restart

5. In your browser, check version and status of the AppServer to verify if it works properly.

Check the version:

Info

http(s)://your_host/wscservice/api/?cmd=ver

Check the status:

Info

http(s)://your_host/wscservice/api/?cmd=status

Or in terminal using wget or curl commands.

Since AppServer responds in json, it's better to use curl as wget will suggest downloading a file.

Code Block
languagebash
/opt/WSC# curl https://localhost/wscservice/api/?cmd=status --insecure

{
    "SpellCheckEngine": {
        "active": true
    },
    "GrammarCheckEngine": {
        "active": true
    },
    "ThesaurusEngine": {
        "active": true
    }
}