ver 6.2 and log server

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

Moderator: Qbik Staff

ver 6.2 and log server

Postby pmueller » Jan 06 07 10:59 am

I saw the post about adding a "/" to the address to get to the logs to get to them--but, why are the logs displaying with no formatting whatsoever? These are impossible to read, especially with bifocals :-). Is there a woraround? Thanks.
pmueller
 
Posts: 18
Joined: Sep 29 04 11:09 am

Postby adrien » Jan 06 07 11:26 am

Hi

The reason that .log files used to show correctly was that there was a hack in the code that when serving a file, if it was a .log file, it would prepend an HTML tag <PRE> to it.

This had to be removed for obvious reasons, since we can't be polluting files with HTML tags that they didn't contain if WinGate is to be used to serve files other than its own log files.

Just looked in the code - looks like someone thought it was also a good idea to set the mime type to text/html. That's a bug. You can get around that by overriding it in the registry.

HKEY_LOCAL_MACHINE\Software\Qbik Software\WinGate\MimeTypes

Add a string entry called "log", and value "text/plain".

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

ver 6.2 and log server

Postby pmueller » Jan 06 07 11:36 am

Adrien, Thanks for the quick reply--that indeed worked. Much appreciated.
pmueller
 
Posts: 18
Joined: Sep 29 04 11:09 am


Return to WinGate

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

cron