2015-05-13 97 views
0

我试图运行一个红宝石应用服务器与phusion乘客。问题在于应用程序托管在承载其他网站的apache服务器上。所以我试图实现虚拟主机。由于某种原因,我无法达到我的申请。 DNS确实将查询重定向,但将其重定向到托管在服务器上的另一个网站。该PHUSION乘客在端口3000上运行,并且虚拟主机文件如下:Phusion Messenger虚拟主机

<VirtualHost *:3000> 
ServerAdmin [email protected] 
ServerName something.com 
ServerAlias www.something.com 

# !!! Be sure to point DocumentRoot to 'public'! 
DocumentRoot /var/www/redmine/public/  
RailsEnv development 
IndexOptions SuppressHTMLPreamble 
RewriteEngine On 
RewriteOptions inherit 

<Directory /var/www/redmine/public> 
# This relaxes Apache security settings. 

AllowOverride all 
Order allow,deny 
#MultiViews must be turned off. 
Options Indexes FollowSymLinks -MultiViews +ExecCGI 
# Uncomment this if you're on Apache >= 2.4: 
Require all granted 
</Directory> 

回答

0

竟然出现了两个问题:

  1. <VirtualHost *:3000>应该已经<VirtualHost *:80>
  2. <Directory /var/www/redmine/public>应该是<Directory /var/www/redmine/public/>。只是一个小斜线,公开后,它有所作为。