Support - Hosted Version - SProxy component

Please follow the step-by-step instruction to install the SpellChecker sproxy component into your Web Application.

  1. Download sproxy component
  2. Install sproxy component
  3. Test sproxy component
  4. Appendix I. Apache Tomcat configuration

1. Download sproxy component

Select the appropriate sproxy version and save the file to a temporary folder on your computer:

2. Install sproxy component

Create a directory in your web site (e.g. sproxy). Extract all files from the archive to this directory. Download sproxy configuration file (sproxy.ini) from your account page or use the file received in the subscription email from tech@spellchecker.net.

  • The archive contains the following files:
    • sproxy.*. Depending on the platform the script is intended for, it has a corresponding extension: sproxy.pl for a Perl version, sproxy.aspx for a .NET version, sproxy.cgi for a binary version, etc.
    • version-specific files
Version-Specific Notes: 
* For Perl users: open the sproxy.pl file in edit mode, if necessary, check and modify the first line containing information on Perl   interpreter location: #!/usr/bin/perl for Unix systems; #!c:/perl/bin/perl.exe for Windows systems. 
* For Java platform users: please update the server configuration as explained in Appendix I. 
* For .Net platform users: web.config, global.asax and bin/sproxy.dll files are also provided. These files are required by the sproxy .Net web application. To make the sproxy script .Net version work, create a Virtual Application for the sproxy directory (using IIS MMC Console). Ensure that anonymous authorization is on and the correct version of ASP.Net is selected on the ASP.Net tab.

3. Test sproxy component

In the address field of your browser, type the URL of sproxy on your web site according to the following pattern: http://example.net/sproxy/sproxy.php?cmd=ver. You must type the extension of your sproxy version instead of “php”. If the instructions have been followed correctly, a page similar to the screenshot below will appear:
sproxy_version.jpg

Appendix I. Apache Tomcat configuration

  • Go to the site context directory
  • Find the WEB-INF\web.xml file and open it in a text editor
  • Add the following template at the end of the file after the last tag:
 
 <servlet>
        <servlet-name>SProxy</servlet-name>
        <servlet-class>net.spellchecker.sproxy.SProxy</servlet-class>
        <init-param>
            <param-name>sproxyIniPath</param-name>
            <param-value>./sproxy.ini</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>SProxy</servlet-name>
        <url-pattern>/sproxy</url-pattern>
    </servlet-mapping>
  • Replace ./sproxy.ini with the absolute local path to the sproxy.ini file or save the .ini file to the root of the site context.
  • Restart the web server to load the new settings