我有一个像我的虚拟主机的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>
所以我在那个DocumentRoot有一个Rails项目,但是当我在端口81上访问我的Apache时,出现了503错误 
我真的很难过,不知道该从这里做些什么。 任何帮助将不胜感激
编辑运行apache2ctl -S结果
VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:81 sandbox.mysite.com (/etc/apache2/sites-enabled/mysite:1) Syntax OK