
1C server on Windows, step 5: publishing databases to IIS — web client, HTTP services, HTTPS
🌐 Machine-translated from Russian. Show original
In this part:
Why publish#
Publishing on a web server is required for the web client (working from a browser), thin client over the internet, HTTP and web services (integrations, mobile applications, exchanges), and OData.
IIS Installation#
In Server Manager, → Add roles and components → Web Server (IIS). Among the role services, be sure to check:
- ISAPI extensions and ISAPI filters (section "Application Development");
- IIS Management Console.
Or with a single PowerShell command:
Install-WindowsFeature Web-Server, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Mgmt-Console
1C web server extension modules must be installed together with the platform (step 2.
Publishing from Configurator#
- Run the Configurator as an administrator on the IIS server and open the database.
- Administration → Publishing on a web server.
- The name is short in Latin script (
buh), the web server is Internet Information Services, the directory is, for example,C:\inetpub\wwwroot\buh. - Mark what to publish: thin and web client, HTTP services, OData — just what you need.
- Click "Publish."
Or a utility webinst#
& "C:\Program Files\1cv8\8.3.xx.xxxx\bin\webinst.exe" -publish -iis -wsdir buh `
-dir "C:\inetpub\wwwroot\buh" -connstr "Srvr=srv1c;Ref=buh;"
Rights and application pool#
- The publishing application pool must operate in 64-bit mode (the "32-bit applications allowed" parameter = False) if it is a 64-bit platform.
- The group IIS_IUSRS needs read permissions for the publication catalog and the
binplatform catalog. - Check that the 1C server is accessible from the web server by name (if these are different machines).
Verification#
Open in the browser on the server:
http://localhost/buh
A login form for 1C should appear. HTTP services are available at the address http://localhost/buh/hs/<корневой URL сервиса>/....
HTTPS and external access#
- Without HTTPS, do not open the publication on the internet: logins and passwords will be displayed in plain text.
- Bind the IIS certificate (commercial or Let's Encrypt via win-acme) to the site and enable https binding on port 443.
- Publish only the necessary databases and services, and close everything unnecessary.
- For users who work remotely all the time, VPN + thin client is often more reliable than web publishing.
After the platform update#
The publication must be updated to the new version: repeat the publication from the new version Configurator or run the webinst of the new version. Otherwise, the web module of the old version will not be able to work with the updated server.
🎉 The Windows server is ready. Don't forget to set up backup.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.