質問

私はそれが必要。

それすべての作品のような旅客上のRailsアプリを実行し、

私は旅客とRackアプリケーションとして実行するシナトラアプリを追加したいが、私は、ルーティングエラーを取得します。

私のバーチャルホストファイルは次のようになります:

NameVirtualHost *:80
<VirtualHost *:80>
  ServerName www.domain1.com
  DocumentRoot /home/user1/vhosts/project1/public
  ErrorLog     /home/user1/vhosts/project1/log/httpd_error_log
  CustomLog    /home/user1/vhosts/project1/log/httpd_access_log combined
</VirtualHost>

<VirtualHost *:80>
  ServerName www.sub.domain2.com
  DocumentRoot /home/user2/vhosts/sinatra_app/lib/public
  ErrorLog     /home/user2/vhosts/sinatra_app/lib/log/httpd_error_log
  CustomLog    /home/user2/vhosts/sinatra_app/lib/log/httpd_access_log combined
</VirtualHost>

私のシナトラアプリは本当に簡単です。ノー公共ファイルをget "/do_something" do ....と呼ばれるルートを持っています。それだけでいくつかのJSONで応答します。

どのように私はそれがwww.sub.domain2.com/do_something

のような要求を行うことができます
役に立ちましたか?

解決

これはOKらしい、priviledgesが正しく設定されている?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top