読者です 読者をやめる 読者になる 読者になる

apatch vhosts

vim /etc/httpd/vhost/~.com.conf

```

<VirtualHost *:80>
  DocumentRoot "/home/vhosts/www/htdocs/"
  ServerName www.domain.com
  ErrorLog "/home/vhosts/www/logs/error.log"
  <Directory "/home/vhosts/www/htdocs/">
    Options FollowSymLinks IncludesNoExec
    AllowOverride All
    Deny from none
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  DocumentRoot "/home/vhosts/dev/htdocs/"
  ServerName dev.domain.com
  ErrorLog "/home/vhosts/dev/logs/error.log"
  <Directory "/home/vhosts/dev/htdocs/">
    Options FollowSymLinks IncludesNoExec
    AllowOverride All
    Deny from none
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  DocumentRoot "/home/vhosts/test/htdocs/"
  ServerName test.domain.com
  ErrorLog "/home/vhosts/test/logs/error.log"
  <Directory "/home/vhosts/test/htdocs/">
    Options FollowSymLinks IncludesNoExec
    AllowOverride All
    Deny from none
  </Directory>
</VirtualHost>

```