Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

How to create WEB servers using Wingate ?

Jan 30 10 1:47 pm

I try to create a WEB server via Wingate, my local folder is G:\web, and my default file is auto.html. But It doesn't work. Please tell me how to configure the WEB server using Wingate! Thanks.

Re: How to create WEB servers using Wingate ?

Feb 01 10 11:37 pm

I've read this from Wingate help:

Serve the request

Serve the request

Server root directory
This is the root directory on the local disk where all Internet resources will be retrieved from (typically called wwwroot). Any sub-directories specified in a URL are appended to this pathname to locate resources.

Default filename
The default filename is the html page that will be served when no page is specified by the URL. Typically no page is specified when a user first connects to a given URL and so this is normally the home page filename.

CGI Directory
The directory on the local drive where the CGI script programs are stored (usually this will be a sub-directory of the www root directory).

CGI URL Prefix
The name of the directory where the CGI scripts reside on the local disk. No CGI script will execute unless it exists in the root of this directory (note that it cannot be in a sub-directory either)

CGI timeout
This is how long WinGate will allow a CGI executable to respond/execute before it is considered to have timed out. In previous versions of WinGate this had been a fixed value of 120 seconds. This option now allows you to set a longer period for scripts to execute if required.



When set to serve a request, WinGate will act as a Web Server itself, and serve resources from the local hard disk. For each site you define, you can specify different server root folders, default filenames, whether or not directory browsing is permitted, or CGI (which includes applications like Perl or PHP).


And then I try to create a WEB server, of course, for my local network only.

Re: How to create WEB servers using Wingate ?

Feb 03 10 2:24 pm

it may depend on your client setup.

How do clients find your web-server? Do you have DNS records etc? It's one thing getting WinGate to answer web requests, it's another thing getting clients to make them.

Are these clients on an internal network or external?

Re: How to create WEB servers using Wingate ?

Feb 03 10 4:36 pm

All the clients are on internal local network. I've used IIS by the time, and that's OK with IIS. But I try using Wingate to replace IIS. If wingate can create Web server, so I don't need to use IIS any more. That saves time and makes the computer run faster.

Re: How to create WEB servers using Wingate ?

Feb 03 10 4:53 pm

OK, there are only a few things to make sure:

1. make sure that the clients will connect to the www proxy on an interface/port they will have access to and that it is listening on
2. make sure in the web settings in the proxy that you have either specified serve file for the default site, or specified a host header that will match the requested sitename in a specific site.
3. make sure that the account that WinGate runs in (normally localsystem) has access to the root folder you specify

If you're using PHP, make sure you map the extension php to the php.exe you are using for a CGI. (WWW proxy -> Web Server -> Settings -> File Associations)

Is the site mainly static or dynamic content?

Re: How to create WEB servers using Wingate ?

Feb 04 10 2:34 pm

I 've tried to open default web page and the display message here:
Directory Listing Denied
This Virtual Directory does not allow contents to be listed

WinGate™ © Qbik New Zealand Limited 1995-2009

What can I do next ? Please,help me !

Re: How to create WEB servers using Wingate ?

Feb 05 10 7:25 pm

that means it didn't find the default page.

which means that either

a) server root directory is wrong
b) file does not exist (or WinGate has no rights to it).

have you triple-checked the spelling of the default filename etc?

Re: How to create WEB servers using Wingate ?

Feb 06 10 12:52 pm

I 've found that Wingate has no right to access the root folder. How can I solve the problem ?

Re: How to create WEB servers using Wingate ?

Feb 07 10 10:22 pm

you can grant rights to the account that WinGate service uses to the folder using explorer
Post a reply