バーチャルホスト(Apache2)

参考:
Linuxサーバ奮戦記--バーチャルホスト(Apache2)--


apacheバーチャルホスト設定
たとえば、
aaa.example.com
bbb.example.com
という場合にも使用できます。

httpd.confの下あたりに下記のような感じで。


<VirtualHost 192.168.0.1>
ServerAdmin root@localhost
DocumentRoot /var/www/html/az/f
ServerName aaa.example.com
</VirtualHost>

<VirtualHost 192.168.0.1>
ServerAdmin root@localhost
DocumentRoot /var/www/html/az/f
ServerName bbb.example.com
</VirtualHost>

Comments

Popular posts from this blog

sakuaraのVPSのコンソールで貼付け(ペースト)