Qbik Helpsys

WWW Proxy Service - Serving Web pages

The Web Server tab found in the WWW Proxy Service properties, allows you to have the WWW Proxy Service act like a web server whenever it receives a server request from a client with a particular host header tag. When it receives the server request that contains a particular host tag (such as www.wingate.com) it will attempt to "serve" a resource (normally an html page) to the client.

WinGate has the ability to also provide web server support for common CGI executables such as Pearl and PHP.

Bindings

To act like a web server the WWW proxy must be configured to listen for Server requests on the network interface and Service port clients will be connecting to the web server on.

Read more about bindings

Note

Internet Web serving

To have WinGate respond to Server requests from the Internet, the Internet connection (or network adapter marked as External by WinGate) needs to be bound to the WWW Proxy Service so that it can listen for these requests.

Due to the increased security risk associated with binding an external network connection to the WWW Proxy Service, we recommend that the following security measures be taken.

  1. Install a separate WWW Proxy Service for the purpose of responding to server requests, and ensure that only network adapters marked as External by WinGate (Internet connections) be bound to this service.
  2. Whenever you create a new service, it will register all of the events that can happen during its operation to the Events system. Event processors, such as the WinGate Policy system, allow you to configure how they will respond whenever the registered event takes place.

    When you are configuring WinGate to respond to server requests from the Internet (i.e. web serving) you should create a policy based on each of the ConnectRequest and ProxyRequest events for this new service. These policies should simply be set to disconnect or reject anyone who makes a connect request or proxy request to this service using the appropriate Result policy items. This will stop anonymous Internet users from using WinGate as a proxy server.

Intranet Web serving

The WWW Proxy Service can be configured to act as an Intranet server by only binding network adapters marked as Internal by WinGate to the service (this is done by default for any WWW Proxy Service you create).

Regardless of which interface the WWW Proxy will be serving pages to the process for configuring the Web server is the same.

To configure WinGate to serve web pages:

  1. Open the WinGate Management console.
  2. Navigate to Control Panel > Services and double click on the WWW Proxy Service service that will be serving web pages. This will open the WWW Proxy Service properties.
  3. Select the Web Server tab.
  4. Select the Add button to bring up the Edit Site dialog.
  5. On the Hosts tab, click the Add button to add a suitable Host tag(s) for the site. This is usually the URL that clients will type in the browser to reach the site (e.g. www.wingate.com)
  6. On the General tab, select Serve Request from the Action drop down menu.
  7. In the Server root directory field, enter the directory which will be used serve the page. This is the directory containing the page/resources to be served.
  8. In the Default filename field, enter the name of the default page to be served (e.g. index.htm).
  9. Click OK to confirm changes in the Edit site dialog.
  10. On the Web Server tab in the WWW Proxy Service, click the Settings button to define the advanced Web Server settings (as explained below).

The Edit Web Server settings consist of two tabs:

  1. File Associations

    This is where the executable that will be used to open specific file extensions used can be set if required. CGI executables such as PHP.exe should be entered here if they are to be used in the Web Server.

    Note

    When adding an executable extension do not include a period (".") in front of the extension. Just enter the actual extension only.

  2. The Environment Variables tab allows you to set specific options and switches for the executables listed on the File associations tab.

Note

Web pages that contain forms allow users to enter and submit information to the web server. In turn the web server will execute the specified script and process the information that has been passed. Most often the job of the script will be to enter that information in a database, or generate a new html page based on the user information entered.

It is important to note that where a script is generating a new HTML page, it must generate the entire page including all header information ( NPH only - Non-Parsed Headers ). Some web servers will generate the header information for you before serving the page, but the WWW Proxy Service that has been configured to serve web pages will not.

  1. no comments yet...

Download helpfile

You can use basic Full-Text Searches against the page title and body to find matching articles. Use the following search modifiers to refine your query:

  • event management (no quotes) will find all pages containing the words "event" OR "management"
  • "event management" (with quotes) will find all pages containing the phrase "event management"
  • +event -management will find all pages containing the word "event", AND NOT the word "management"