尝试在我的VirtualHost中为子域启用.htaccess但是我得到500错误。在此之前,我从来不知道你必须启用.htaccess,并且有必要为我所选择的框架(大部分都是):/
<VirtualHost *:80>
ServerAdmin name@domain.ca
ServerName sandbox.breakingpoint.co
ServerAlias sandbox.*
DocumentRoot /var/www/breakingpoint.co/sandbox/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/breakingpoint.co/sandbox/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>