3

Project-Open ツールでは、aolserver を使用してアプリケーションをホストし、172.XX.XX.XX:8000 のようなサーバーの IP アドレスを使用してアクセスします。今、このIPアドレスを公開したくありません。このために url を作成して使用しようとしましたが ( config.tcl にいくつかの変更を加えて)、できませんでした。

私の質問が十分に明確でない場合はお知らせください。

前もって感謝します!!!

4

4 に答える 4

2

あなたの質問は完全に明確ではありませんが、あなたが望んでいるのは、あなたのウェブサイトが www.example.com などの URL に表示されることだと思います。AOLserver でこれを行うには、/web/server/etc/config.tcl ファイルを編集して、この行を編集する必要があります (www.example.com を任意の URL に変更します)。

set hostname              www.example.com

次に、AOL サーバーを再起動します。ポートを 80 に設定することもできます。これにはルート アクセスが必要であり、起動スクリプトで -b を AOLserver に渡す必要がある場合もあります。

于 2013-12-31T09:29:55.750 に答える
0

生成された URL をサーバーがリッスンしている場所とは異なるものにしようとしている場合はlocation、nssock 構成でパラメーターを設定する必要があります。

構成ファイルには、次のようなセクションがあります。

ns_section ns/server/${server}/module/nssock
    ns_param   timeout            120
    ns_param   address            $address
    ns_param   hostname           $hostname
    ns_param   port               $httpport

加える

    ns_param   location    http://my.host.com/

http://blog.gmane.org/gmane.comp.web.aolserver/month=20110201を参照してください。

于 2014-01-01T02:58:13.087 に答える
0

このサーバーにアクセスするためにどの OS を使用しますか? LInux マシンを使用する場合は、ホスト名を目的の名前で /etc/host ファイルに入れます。

例えば:

/etc/ホスト:

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.23.108 myprojecturl

192.168.23.108 の行は、IP 番号 192.168.23.108 (そのマシンから) ではなく、myprojecturl を使用してサイトにアクセスできるようにします。

Windows マシンからも同じことができます。ホスト ファイルは別の場所にあります ()。

c:\windows\system32\drivers\etc\hosts:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
192.168.23.108 myprojecturl

最後の行は、入力する IP 番号を覚える必要がなく、サイトをプルアップするためのホスト名を「myprojecturl」にするために追加する内容の例です。

于 2013-12-31T08:33:51.423 に答える