Ruby on Rails 应用程序的虚拟主机设置(mod 乘客)

Ing*_*o86 6 redmine virtualhost ruby-on-rails apache-2.2

我正在尝试在 apache 下安装 Redmine。apache 服务器在本地网络上工作。我的 apache 设置包含在单个虚拟主机上。我可以使用对应的路径进入不同的目录:

http://ip_address/folder_of_the_project_1

在这种情况下,如何设置虚拟主机以使 redmine 工作?这是我当前的虚拟主机设置:

NameVirtualHost *
<VirtualHost *>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/
    RailsBaseURI /redmine
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>

    <Directory /var/www/>
            Options FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    <Directory /var/www/redmine/public>                
            Options FollowSymLinks
            AllowOverride None
            Order allow,deny
            Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.        
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined
    ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Run Code Online (Sandbox Code Playgroud)

谢谢你,Ingo86

Max*_*ell 0

你尝试过RailsBaseURI /redmine/public而不是吗RailsBaseURI /redmine?万一。