Joh*_*ove 11 macos apache-config
我从源代码安装Koha.通用unix方向指示sudo make install之后的以下步骤
sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha
Run Code Online (Sandbox Code Playgroud)
是吧?
我的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,我在其中使用"servername"在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
Run Code Online (Sandbox Code Playgroud)
但是当我去的时候http://john-breedloves-mac-mini.local:8080/,我得到:
哪个是讽刺的东西.
帮助一个菜鸟.
And*_*ico 13
它看起来像是/private/etc/apache2/other/大致相应的文件夹./etc/apache2/httpd.conf包含一个Include /private/etc/apache2/other/*.conf包含该文件夹中所有文件的指令,非常类似于Apache的Linux安装中常见的sites-available文件夹.
Runapachectl -S是缩写apachectl -t -D DUMP_VHOSTS
根据 apachectl man 文件,这将显示解析的设置(当前仅 vhost 设置)。顺便说一句,它还会检查您的配置文件是否有错误。
| 归档时间: |
|
| 查看次数: |
15881 次 |
| 最近记录: |