Skip to content

Instantly share code, notes, and snippets.

@rsyuzyov
Last active October 22, 2025 15:28
Show Gist options
  • Select an option

  • Save rsyuzyov/84ced26725ffde81f0eaafb00bd47960 to your computer and use it in GitHub Desktop.

Select an option

Save rsyuzyov/84ced26725ffde81f0eaafb00bd47960 to your computer and use it in GitHub Desktop.
apache-1c-config
Define basedir /var/www
<Macro pub1C $dir>
Alias "/$dir" "${basedir}/$dir/"
<Directory "${basedir}/$dir">
AllowOverride All
Options None
Require all granted
SetHandler 1c-application
ManagedApplicationDescriptor "${basedir}/$dir/default.vrd"
</Directory>
</Macro>
Use pub1C trade11
Use pub1C ac30
Use pub1C hrm30
UndefMacro pub1C
LoadModule _1cws_module "/opt/1cv8/x86_64/8.3.25.1394/wsap24.so"
<?xml version="1.0" encoding="UTF-8"?>
<point xmlns="http://v8.1c.ru/8.2/virtual-resource-system"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
base="/trade11"
ib="Srvr=srv-app;Ref=trade11;"
pubdst="http://site.ru:8080/dist/windows64tc.zip"
pubdst32="http://site.ru:8080/dist/windows64tc.zip"
pubdst64="http://site.ru:8080/dist/windows64tc.zip">
<debug enable="false" protocol="http" url="http://localhost:1560"/>
<ws pointEnableCommon="true" publishExtensionsByDefault="true"/>
<httpServices publishByDefault="true" publishExtensionsByDefault="true">
<service rootUrl="" enable="true" reuseSessions="autouse"
sessionMaxAge="60" poolSize="5" poolTimeout="5"/>
</httpServices>
<standardOdata enable="false" reuseSessions="autouse" sessionMaxAge="20"
poolSize="10" poolTimeout="5"/>
<analytics enable="true"/>
<pool size="10" maxAge="60" attempts="2"/>
</point>
Положить файлы:
/etc/apache2/conf-enabled/_1cws.conf
/etc/apache2/mods-enabled/_1cws.load
или положить в conf-available, mods-available и сделать симлиинки
Создать каталоги для каждой публикации, на примере trade11:
/var/www/trade11/default.vrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment