什么是“/ etc/apache2/sites-available”的mac等价物?

问题描述:

我从源码安装Koha。通用unix方向表示sudo make install后的以下步骤什么是“/ etc/apache2/sites-available”的mac等价物?

sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha 

呵呵?

我的Apache2目录中不包含任何网站可用,只有 /私人的/ etc/apache2的/额外 /private/etc/apache2/httpd.conf /私人的/ etc/apache2的/魔法 /私人的/ etc /的Apache2 /mime.types /私人的/ etc/apache2的/原 /私人的/ etc/apache2的/其他 /私人的/ etc/apache2的/用户

我应该能够浏览到http://servername:8080/运行高波,其中我把它指定在koha-httpd.conf中的“servername”如下:

## Intranet 
<VirtualHost 192.168.1.4:8080> 
    ServerAdmin [email protected] 
    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/,我得到:

它的工作原理!

其中,就像讽刺之词。

帮助noob out。

+0

请记住,OSX预装了apache2,位于/ etc/apache2。这可能会导致与另一个* apache安装的重叠。 – dmanexe 2010-01-22 23:17:58

+0

这是我正在处理的Apache,我没有安装任何其他的Apache。 – 2010-01-23 17:51:24

它看起来像/private/etc/apache2/other/将是大约相应的文件夹。 /etc/apache2/httpd.conf包含一个指令Include /private/etc/apache2/other/*.conf,该指令包含该文件夹中的所有文件,非常类似于Linux的Linux安装中的站点可用文件夹。

+0

谢谢,这很有道理。 好了,我修改了命令:sudo的 LN -s /etc/koha/koha-httpd.conf /私人的/ etc/apache2的/其它/ 重新启动的阿帕奇: 须藤的apachectl优美 ,我仍然没有得到爱。我不确定现在的问题是什么。 – 2010-01-22 23:26:14

我也有这个问题。它似乎是occour,因为安装在osx上的apache的默认版本覆盖了其他版本。要禁用它,请转到“系统偏好设置>共享”并取消“网络共享”。

好运!

Andrew的答案是正确的。在我安装,我还不得不在/etc/apache2/httpd.conf改变

Order allow,deny 
Deny from all 

Order allow,deny 
Allow from all 

事实上,你得到一个服务器:8080表明你可能正在从基本系统安装运行不同的Apache配置,如MAMP;我不相信Apache默认监听:8080。

请注意,ServerRoot指定可以找到子目录conf和logs的位置。

在我的httpd.conf,它被设置为/ usr

运行apachectl -S这是简写形式,apachectl -t -D DUMP_VHOSTS

按照的apachectl人的文件,这将显示解析的设置(目前只有虚拟主机的设置)。顺便说一句,它也检查你的配置文件的错误。