Bad Gateway、Drupal、Redmine 通过 VM centos 托管 windows

Bad Gateway, Drupal, Redmine via VM centos to host windows

我有一台虚拟机CentOS 里面安装了drupal 和redmine。我做了 redmine.conf 和 drupal.conf。但是当我想在我的浏览器上打开时,出现 Bad Gateway 错误。我不明白。 这是我的 .conf 文件: 红矿:

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>

这里是 drupal:

<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>

这里是我的房东 windows :

# 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

你知道有什么不对吗?谢谢。

我找到了,这不是最好的方法,但我在 CentOS 中禁用了我的 firewalld,它仍然有效。

sudo service disable firewalld
sudo service stop firewalld

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