Versions Compared

Key

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

To avoid exposing an additional port, AppServer port 2880, you can configure Apache HTTP Server to act as a reverse proxy

1. Enable mod_proxy and mod_proxy_http modules using a2enmod script within Apache configuration. 

Code Block
languagebash
themeEmacs
$ a2enmod proxy
$ a2enmod proxy_http

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

...

4. Save file and restart Apache.

Code Block
languagebash
themeEmacs
$ service apache2 restart

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

...

Info

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

Check the status:

Info

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

...

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

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

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