我有一个带有 vhost 的 apache,如下所示:
<VirtualHost *:81>
ServerName sandbox.myserver.com
DocumentRoot /var/www/mysite/current/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
LogLevel error
ErrorLog /var/log/apache2/vgm-error.log
CustomLog /var/log/apache2/vgm-access.log combined
# Turn on the rewrite engine
RewriteEngine on
# X-Request is for older rpm in notifications/vgm, X-Queue is for the newer gems
RequestHeader set X-Request-Start "%t"
RequestHeader set X-Queue-Start "%t"
</VirtualHost>
因此,我有一个 Rails 项目DocumentRoot
,但是当我通过端口 81 访问 Apache 时,出现503
错误
我真的很困惑,不知道接下来该怎么办。如能得到任何帮助我将不胜感激
编辑
运行结果apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:81 sandbox.mysite.com (/etc/apache2/sites-enabled/mysite:1)
Syntax OK