【发布时间】:2015-08-08 17:12:42
【问题描述】:
问题是我的服务器必须安装,所以我试图让 www 中的网站启动并运行。我已经复制了 www 的旧内容,但是当我尝试重新启动 apache2 时,我得到以下信息:
root@microsoft:/# service apache2 restart
Syntax error on line 1 of /etc/apache2/sites-enabled/microsoft.com:
Invalid command '../sites-available/microsoft.com', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
etc/apache2/sites-enabled/microsoft.com 文件内部:../sites-available/microsoft.com
/etc/apache2/sites-available 文件内:
<VirtualHost *:80>
ServerAdmin admin@microsoft.com
ServerName microsoft.com
ServerAlias www.microsoft.com
DocumentRoot /var/www/microsoft
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/microsoft>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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>
任何帮助都会很棒!
【问题讨论】:
-
尝试在 之后使用 再次关闭您的
标签: bash apache unix apache2 debian