Last active
October 22, 2025 14:54
-
-
Save rsyuzyov/008d17d00f41d8caa9216e0097def064 to your computer and use it in GitHub Desktop.
apache macro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Listen *:88 | |
| Define ver1c 8.3.27.1786 | |
| LoadModule _1cws_module "C:/Program Files/1cv8/${ver1c}/bin/wsap24.dll" | |
| LoadModule macro_module modules/mod_macro.so | |
| # 1c publication using macro | |
| <Macro pub1C $dir> | |
| Alias "/$dir/" "${SRVROOT}/htdocs/$dir/" | |
| <Directory "${SRVROOT}/htdocs/$dir"> | |
| AllowOverride All | |
| Options None | |
| Require all granted | |
| SetHandler 1c-application | |
| ManagedApplicationDescriptor "${SRVROOT}/htdocs/$dir/default.vrd" | |
| </Directory> | |
| </Macro> | |
| Use pub1C trade | |
| Use pub1C ac | |
| Use pub1C hrm | |
| UndefMacro pub1C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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="/trade" ib="Srvr=srv-app1;Ref=trade;"> | |
| <debug enable="true" protocol="http" url="http://dev-rds1:1550"/> | |
| <ws publishExtensionsByDefault="true"/> | |
| <httpServices publishExtensionsByDefault="true"/> | |
| <standardOdata enable="true" reuseSessions="autouse" sessionMaxAge="20" poolSize="10" poolTimeout="30"/> | |
| </point> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Взять дефолтный апач | |
| Положить 1c.conf рядом c httpd.conf | |
| В httpd.conf в конец добавить: | |
| Include conf/1c.conf | |
| В htdocs создать каталоги для каждой базы, подложить и скорректировать default.vrd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment