【发布时间】:2012-11-10 11:13:43
【问题描述】:
您好,我正在使用 ubuntu 作为我的虚拟主机的服务器操作系统,但我在将我的域名重定向到我的服务器时遇到问题这是我的 /etc/hosts 文件和 /etc/apache2/sites-available/mysite 文件。
主机文件:
127.0.0.1 www.lowkey.se
以下几行适用于支持 IPv6 的主机
::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
网站可用/文件:
ServerAdmin webmaster@localhost 服务器名称 www.lowkey.se
DocumentRoot /var/www/doost/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/doost/>
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
还有来自我的域名提供商的截图:
我做错了什么?
【问题讨论】:
-
我不是 Ubuntu 专家,但我对 Apache 有足够的经验。请更新您收到的错误消息。另请检查 Apache 是否正常工作/启动。尝试访问localhost 如果这有效意味着您的 Apache 工作正常。
-
我没有收到任何错误消息。我尝试访问 www.lowkey.se 但呼叫没有从我的服务器得到任何响应。
-
可能你的 Apache 没有启动。请检查“APACHE_ROOT_FOLDER\logs”文件夹中是否有日志。