0
私はこのような仮想ホストのセットアップました:サーバー別名は問題
<VirtualHost *:80>
ServerName sub.website.com
ServerAlias www.sub.website.com sub.website.com
VirtualDocumentRoot /home/website/public_html
<Directory /home/website/public_html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
LimitInternalRecursion 20
#set logging
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel notice
CustomLog ${APACHE_LOG_DIR}/access.log combined
SetEnv APPLICATION_ENV "development"
# SuexecUserGroup %1 %1
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi-website
# FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -idle-timeout 900 -pass-header Authorization
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi-website -socket /var/run/website-php5-fpm.sock -idle-timeout 900 -pass-header Authorization
</IfModule>
</VirtualHost>
をそして私は、私はまた、レコードをポイントする必要がありますwww.sub.website.comにレコードを指している場合、私は思っていましたsub.website.comにも同じウェブサイト上の両方の土地を作ることができますか?