vim:语法=apache ts=4 sw=4 sts=4 sr noet

vim:语法=apache ts=4 sw=4 sts=4 sr noet

我正在尝试在 Ubuntu 15.04 Server Edition 上全新安装 OSSEC 时设置 OSSEC Web UI。我使用默认 LAMP 堆栈设置服务器,OSSEC HIDS 似乎已成功安装。当我尝试安装 OSSEC Web UI 时,我按照所有说明操作,没有任何错误,但是当我尝试转到服务器 IP 地址时:http://10.17.0.21/ossec-wui,我收到 404 错误。任何帮助解决此问题的帮助都将不胜感激!

(如果我需要清除服务器并重新开始,我可以这样做,这是一个新安装,其中还没有任何数据或配置。)

更新 还有一些信息需要跟进:

我对使用 Apache 还很陌生,所以我可能会搞砸一些非常基本的事情。我遵循了此处自述文件中的文档:https://github.com/ossec/ossec-wui

看来它实际上并没有配置 apache 来显示该站点。我尝试在 /etc/apache2/sites-available/OSSEC-WUI.conf 中手动设置站点的配置文件。我还在 /etc/apache2/sites-enabled/ 中设置了指向它的符号链接。以下是 OSSEC-WUI.conf 文件的内容:

<VirtualHost OSSEC:80>
    # The ServerName directive sets the request scheme, hostname and port that
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    #ServerName www.example.com


    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/htdocs/ossec-wui/
    <directory /var/www/htdocs/ossec-wui/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    </directory>

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf

vim:语法=apache ts=4 sw=4 sts=4 sr noet

更新 2 编辑 /etc/apache2/apache2.conf 后,我现在收到 403 禁止错误,而不是 404。不确定这是否是进展......

在此先感谢您的帮助!

相关内容