gpt4 book ai didi

macos - "/etc/apache2/sites-available"的 mac 等价物是什么?

转载 作者:行者123 更新时间:2023-12-04 01:45:49 25 4
gpt4 key购买 nike

我正在从源代码安装 Koha。通用unix方向指示sudo make install后的以下步骤

sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha
嗯?
我的 apache2 目录不包含可用站点,只有
/private/etc/apache2/extra
/private/etc/apache2/httpd.conf
/private/etc/apache2/magic
/private/etc/apache2/mime.types
/private/etc/apache2/original
/private/etc/apache2/other
/private/etc/apache2/users
我应该能够浏览到 http://servername:8080/运行 Koha,我认为“服务器名”在 koha-httpd.conf 中指定如下:
## Intranet
<VirtualHost 192.168.1.4:8080>
ServerAdmin webmaster@local
DocumentRoot /usr/share/koha/intranet/htdocs
ServerName John-Breedloves-Mac-mini.local:8080
# ServerAlias intranet.mydomain.com
ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/"
ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl"
ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/search.pl"
ErrorLog /var/log/koha/koha-error_log
# TransferLog /var/log/koha/koha-access_log
SetEnv KOHA_CONF "/etc/koha/koha-conf.xml"
SetEnv PERL5LIB "/usr/share/koha/lib"
Options +FollowSymLinks

ErrorDocument 400 /cgi-bin/koha/errors/400.pl
ErrorDocument 401 /cgi-bin/koha/errors/401.pl
ErrorDocument 403 /cgi-bin/koha/errors/403.pl
ErrorDocument 404 /cgi-bin/koha/errors/404.pl
ErrorDocument 500 /cgi-bin/koha/errors/500.pl

RewriteEngine On
但是当我去 http://john-breedloves-mac-mini.local:8080/ ,我得到:
有用!
这就是讽刺之类的。
帮助一个菜鸟。

最佳答案

它看起来像 /private/etc/apache2/other/将是大致对应的文件夹。 /etc/apache2/httpd.conf包含指令 Include /private/etc/apache2/other/*.conf这包括该文件夹中的所有文件,很像 Apache 的 Linux 安装上常见的站点可用文件夹。

关于macos - "/etc/apache2/sites-available"的 mac 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2121159/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com