1

subdomain.domain.com を、ローカルホストからアクセスできるこの子供の URL にポイントする方法がわかりませんhttp://localhost:5200/redmine/

これを Windows 2008 R2 サーバーにインストールしましたが、subdomain.domain.com を使用してアクセスしたいと考えています。

サブドメインをサーバー IP アドレスに向ける方法は知っていますが、このサブドメイン要求を特定のアプリケーション URL にバインドする方法がわかりません。

Bitnami スタックを使用して redmine をインストールしたことに注意してください。

これを進める方法として、ヒント/ガイドの方が優れています。

4

1 に答える 1

0

This isn't really about DNS, but about how to have an application running on a custom port respond on port 80.

You have two options:

  1. Make your redmine installation respond on port 80 and serve incoming requests directly.
  2. Use a reverse proxy to forward incoming requests on port 80 to redmine running on port 5200.

Option 1 isn't doable if your web server already listens on port 80.

For option 2, the DNS entry for subdomain.domain.com should be configured with the server's public IP adress. On your web server, you should have an (empty) web site responding to the subdomain.

I never used IIS as a reverse proxy, but I'm sure this can be set up relatively easily. On IIS6 I'd recommend IIRF which can do reverse proxy.

Otherwise you may also use apache as a reverse proxy, and you may consider spinning up multiple redmine instances as well as serving static content directly from the webserver with aggressive cache headers. Here's an example apache configuration (from here):

<VirtualHost *:8080>
    ServerAdmin admin@domain.local
    ServerName redmine.domain.local

    DocumentRoot "C:/redminepath/public"

    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    <Proxy balancer://redmine_cluster>
        BalancerMember http://127.0.0.1:8081
        BalancerMember http://127.0.0.1:8082
        BalancerMember http://127.0.0.1:8083
    </Proxy>
    ProxyPreserveHost On

    <DirectoryMatch "/(javascripts|images|stylesheets|plugin_assets|themes)">
        <FilesMatch "\.(ico|pdf|flv|jpe?g|png|gif|js|css|swf)$">
            ExpiresActive On
            ExpiresDefault "access plus 1 month"
        </FilesMatch>
    </DirectoryMatch>
    <FilesMatch "favicon\.ico$">
        ExpiresActive On
        ExpiresDefault "access plus 1 month"
    </FilesMatch>

    # Let apache serve the static content
    ProxyPass /images !
    ProxyPass /stylesheets !
    ProxyPass /javascripts !
    ProxyPass /favicon.ico !
    ProxyPass /plugin_assets !
    ProxyPass /themes !

    # Proxy all other requests
    ProxyPass / balancer://redmine_cluster/
    ProxyPassReverse / balancer://redmine_cluster/
</VirtualHost>
于 2012-10-07T17:08:59.943 に答える