/media/disk1/Projects のフォルダーに Web アプリ プロジェクトがあります。で Apache 仮想ホストを使用してサービスを提供したいと考えていhttp://lab/
ます。
これは、仮想ホストをセットアップする方法です。
1. /etc/apache2/sites-available/default を /etc/apache2/sites-available/lab にコピーしました
2. /etc/apache2/sites-available/lab を次のように編集しました。
<VirtualHost *:80>
ServerAdmin tim@localhost
ServerName lab
DocumentRoot /media/disk1/Projects
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# <Directory /var/www/>
<Directory /media/disk1/Projects>
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
3. 127.0.0.1 lab
/etc/hosts に追加:
127.0.0.1 localhost
127.0.0.1 lab
4.http://lab
取得するためだけにアクセス500 Internal Server Error
すべてのサブフォルダーのアクセス許可は drwxrwxrwx に設定されていますが、私のhttp://lab/phpmyadmin
作品。
解決するのを手伝ってください。ありがとう。