VirtualHostでのリダイレクト方法です。
vhost.confに以下を記述します。
vim /etc/httpd/conf.d/vhost.conf
DocumentRoot "/var/www/html"
<Directory />
Redirect / http://www.example.com/
</Directory>
Go to list of users who liked
More than 5 years have passed since last update.
VirtualHostでのリダイレクト方法です。
vhost.confに以下を記述します。
vim /etc/httpd/conf.d/vhost.conf
DocumentRoot "/var/www/html"
<Directory />
Redirect / http://www.example.com/
</Directory>
Register as a new user and use Qiita more conveniently
Go to list of users who liked