わかりました、最初に質問します。以下は、これまでに問題を解決しようとしてきたことの詳細です。
localhost で実行されている Apache では、次の URL からアクセスできるさまざまな仮想ホストが必要です: http://name-of-the-virtual-host.name-of-the-machine/
詳細:
そのため、ラップトップのポート 8080 で Apache を実行しています。Linux Mint、つまり Debian ディストリビューション。すべてがテスト目的でローカルにあるため、DNS は関係ありません。私が使用する IP アドレスは 127.0.1.1 で、fabjoa という私のコンピューターのドメインを持っています。ファイル/etc/apache2/apache2.conf
に、私は入れました:
ServerName fabjoa
ファイル/etc/hosts
には、確かに行があります
127.0.1.1 fabjoa
ファイル内/etc/apache2/ports.conf
NameVirtualHost *:8080
Listen 8080
さて、私の仮想ホストのconfファイル。このファイルは goyahkla と呼ばれ/etc/apache2/sites-available/
、 にあり、シンボリック リンクがあり/etc/apache2/sites-enabled
ます。このファイルには、次のものがあります。
<VirtualHost *:8080>
ServerName goyakhla.fabjoa
ServerAdmin webmaster@localhost
DocumentRoot /var/sites/goyahkla
....
<Directory /var/sites/goyahkla/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
...
</VirtualHost>
実行apache2ctl configtest
すると、Syntax OK が表示されます。さて、ブラウザでは、開くhttp://fabjoa:8080/
と仮想ホストgoyahklaが指されますが(私が持っているのはこれだけなので)、http://goyahkla.fabjoa:8080
見つかりません。その他のデバッグ:
telnet goyahkla.fabjoa:8080
telnet: could not resolve goyahkla.fabjoa:8080/telnet: Name or service not known
lynx goyahkla.fabjoa:8080
Looking up 'goyahkla.fabjoa' first
Looking up 'www.goyahkla.fabjoa.com', guessing...
Looking up goyahkla.fabjoa first
Looking up www.goyahkla.fabjoa.com, guessing...
Looking up www.goyahkla.fabjoa.com:8080
Making HTTP connection to www.goyahkla.fabjoa.com:8080
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://www.goyahkla.fabjoa.com:8080/
目的を達成する方法について何か考えはありますか?
ありがとうございました