0

我有一个虚拟机 CentOS 里面我已经安装了 drupal 和 redmine。我做了我的 redmine.conf 和 drupal.conf。但是当我想在我的浏览器上打开我的错误网关错误。我不明白。这是我的 .conf 文件: redmine:

LoadModule passenger_module /home/flaman-m/.gem/ruby/gems/passenger-5.0.10/buil$
<IfModule mod_passenger.c>
        PassengerRoot /home/flaman-m/.gem/ruby/gems/passenger-5.0.10
        PassengerDefaultRuby /usr/bin/ruby
</IfModule>

<VirtualHost *:80>
        ServerAdmin     morgane
        ServerName srvb.quest-etna.nx
        DocumentRoot /opt/redmine/public
        #PassengerEnabled on
        #RailsEnv production
        ErrorLog /mnt/nfs/logs/redmine/error.log
        CustomLog /mnt/nfs/logs/redmine/access.log combined
        <Directory /mnt/nfs/logs/redmine>
                DirectoryIndex index.php
                Options FollowSymLinks MultiViews
                Require all granted
                AllowOverride All
                Order deny,allow
                allow from all
        </Directory>
</VirtualHost>

这里是德鲁巴:

<VirtualHost *:80>
        ServerName      drupal.flaman-m-quest-etna.nx/
        ServerAdmin     morganeflamant@gmail.com
        DocumentRoot    /opt/drupal
        DirectoryIndex  index.php
        ErrorLog        /mnt/nfs/logs/drupal/error.log
        CustomLog       /mnt/nfs/logs/drupal/access.log combined
        LogLevel        warn
        <Directory /mnt/nfs/logs/drupal>
                Require all granted
                AllowOverride All
                Order deny,allow
                allow from all
        </Directory>
</VirtualHost>

这里是我的主机窗口:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handle within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

192.168.31.138 srva.flaman-m-quest-etna.nx
192.168.31.128 srvb.quest-etna.nx
192.168.31.128 drupal.flaman-m-quest-etna.nx
192.168.31.139 datas.flaman-m-quest-etna.nx

你知道有什么问题吗?谢谢你。

4

1 回答 1

0

我找到了,这不是最好的方法,但我在 CentOS 中禁用了我的防火墙,它可以工作。

sudo service disable firewalld
sudo service stop firewalld

您也可以对其进行配置以使其正常工作。

于 2017-04-28T11:18:37.380 回答