B
B
boggart2014-06-16 08:34:16
IIS
boggart, 2014-06-16 08:34:16

How to intercept an IIS request to 1C to replace files?

In the 1C web client, there are often errors in JavaScript texts, in order not to wait for bugs to be fixed, I want to be able to quickly fix them.
How to intercept a request for example /scripts/default.js and give your file to the client?
An example of publishing 1C in IIS:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <add name="1C Web-service Extension" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Program Files (x86)\1cv82\8.2.19.76\bin\wsisapi.dll" resourceType="Unspecified" requireAccess="None" />
        </handlers>
    </system.webServer>
</configuration>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kinash, 2014-06-20
@boggart

If you have such a simple task (resource substitution), then why not use a proxy server between the client and IIS? By means of IIS itself (or Apache), you are unlikely to succeed.

C
Cool Admin, 2014-06-16
@ifaustrue

To publish 1C in IIS, the handler mechanism is used, which sends all requests to the desired handler (in this case, it is a dll). The handler directly receives the request, processes it and returns a response. Crashing into this mechanism is very problematic (well, I mean, no matter how much I fought, it didn’t work out).
My advice is to use apache, it handles errors in 1C (and it's most likely about large requests that are pouring in IIS) more correctly, though you have to sacrifice transparent authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question