问题描述
我正在从源代码安装Koha.通用的Unix方向指示sudo make install之后的下一步
I am installing Koha from source. Generic unix directions indicate the following step after 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
My apache2 directory contains no sites-available, only/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,在其中将其命名为"servername".在koha-httpd.conf中指定如下:
I am supposed to be able to Browse to http://servername:8080/
to run Koha, where I take it "servername" is specified in koha-httpd.conf as follows:
## 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/
时,我得到了:
However when I go to http://john-breedloves-mac-mini.local:8080/
, I get:
是讽刺之类的东西.
帮助菜鸟.
推荐答案
看起来/private/etc/apache2/other/
应该是大约对应的文件夹. /etc/apache2/httpd.conf
包含指令Include /private/etc/apache2/other/*.conf
,该指令包括该文件夹中的所有文件,非常类似于Apache Linux安装中常见的站点可用文件夹.
It looks like /private/etc/apache2/other/
would be the approximately corresponding folder. /etc/apache2/httpd.conf
contains a directive Include /private/etc/apache2/other/*.conf
that includes all files in that folder, much like the sites-available folder common on Linux installations of Apache.
这篇关于与"/etc/apache2/sites-available"的mac等效是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!