私は次のファイルツリーを持っています。`/ html/index/index.html`というサブフォルダのインデックスhtmlファイルにサーバールート`/`をバインドする方法はありますか?
<SERVER_ROOT>
ட <html>
ட <index>
ட index.html
ட client.min.js
ட <img>
ட <abc>
ட abc.html
ட ...
ட <efg>
ட efg.html
ட ...
ட <lib>
私は、ユーザーがリダイレクトなしURL http://localhost/
を参照する場合、ファイルhttp://localhost/html/index/index.html
を送信し、表示したいです。 httpd.conf
ファイルにはどのような設定を変更する必要がありますか?
なぜ「http:// localhost/html/index /」をrootとして設定しないのですか? –
他のいくつかのhtmlファイルは 'http:// localhost/html/index /'ではなく 'http:// localhost/html/abc/xxx.html'にあります。 – Casper
あなたはどちらのサーバー側言語を使用していますか? –