UbuntuでApacheを実行しています。/var/www フォルダーは 2 つのディレクトリで構成されています
/codeigniter
/wordpress
mydomain.com が /codeigniter を指し、mydomain.com/blog が /wordpress を指すようにします。私は最初のものを達成しましたが、2番目のものは達成しませんでした。
私は site-available/mydomain.com に以下を持っています
<VirtualHost *:80>
ServerAdmin me@example.com
ServerName www.mydomain.com
ServerAlias mydomain.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /var/www/codeigniter/public
<Directory "/var/www/codeigniter/public">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
これは機能し、ブラウザで mydomain.com にアクセスすると、codeigniter ディレクトリに移動します。ただし、mydomain.com/blog に移動したときに、Apache で自分の wordpress ディレクトリに移動するにはどうすればよいですか?