小编Don*_*lie的帖子

如何使用Apache和Passenger在子域根目录上部署Rails应用程序

我在sub-uri redmine.example.org/redmine上有Rails应用程序,我想在redmine.example.org找到

/var/www/work/redmine.src is approot
/var/www/work/redmine is symlink to /var/www/work/redmine.src/public

<VirtualHost *:80>
    DocumentRoot /var/www/work
    ServerName redmine.example.org

    ErrorLog /var/log/apache2/redmine-error_log
    CustomLog /var/log/apache2/redmine-access_log combined

    <Directory /var/www/work/redmine>
            AllowOverride all
            Options -MultiViews
            Order allow,deny
            allow from all
    </Directory>

    RackBaseURI /redmine
    <Directory /var/www/work/redmine.src>
            Options -MultiViews
            Order allow,deny
            allow from all
    </Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

我尝试了很多组合和googled小时,但没有任何作用.

我应该如何更改此配置以在子域根上部署redmine?

提前致谢.

ruby apache deployment ruby-on-rails passenger

1
推荐指数
1
解决办法
3076
查看次数

Heroku 上的 pdftk 安装

如何在heroku堆栈上安装pdftk?

由于其他依赖关系,我无法将堆栈降级到 Cedar,我需要在heroku-16.

ruby-on-rails heroku pdftk

0
推荐指数
1
解决办法
930
查看次数

标签 统计

ruby-on-rails ×2

apache ×1

deployment ×1

heroku ×1

passenger ×1

pdftk ×1

ruby ×1