虚拟托管的typo3站点在后端注销后返回503

时间:2012-03-19 08:53:07

标签: virtualhost typo3 apache2.2 http-status-code-503

我正在尝试在我的远程网络服务器上托管多个typo3托管网站但是每当我从一个全新的安装程序注销时,我都会收到503错误并且无法通过它。但我可以从同一个链接重新安装一个typo3网站。但安装的默认typo3可通过< www.mydomain_name.com/typotest >引用工作良好。以下是我的默认网站设置:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /srv/www/
    <Directory />
        Options FollowSymLinks
        AllowOverride all
    </Directory>
    <Directory /srv/www/>
        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

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

############### All other demo sites ################
<VirtualHost *:80>
DocumentRoot /srv/www/site1/
ServerName www.site1.typotest.net

<Directory />
            Options FollowSymLinks
             AllowOverride all
</Directory>
<Directory /srv/www/WFS>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride all
            Order allow,deny
            allow from all
</Directory>

#ErrorLog ${APACHE_VHOST_LOG_DIR}/site1/error.log
#Loglevel warn
#CustomLog ${APACHE_VHOST_LOG_DIR}/site1/access.log combined
</VirtualHost>

######## Site2 ########
<VirtualHost *:80>
DocumentRoot /srv/www/site2/
ServerName www.site2.typotest.net

<Directory />
            Options FollowSymLinks
             AllowOverride all
</Directory>
<Directory /srv/www/Monassier>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride all
            Order allow,deny
            allow from all
</Directory>

#ErrorLog ${APACHE_VHOST_LOG_DIR}/site2/error.log
#Loglevel warn
#CustomLog ${APACHE_VHOST_LOG_DIR}/site2/access.log combined

</VirtualHost>

######## site 3 ########
<VirtualHost *:80>
DocumentRoot /srv/www/site3/
ServerName www.site3.typotest.net

<Directory />
            Options FollowSymLinks
             AllowOverride all
</Directory>
<Directory /srv/www/HandP>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride all
            Order allow,deny
            allow from all
</Directory>

#ErrorLog ${APACHE_VHOST_LOG_DIR}/site3/error.log
#Loglevel warn
#CustomLog ${APACHE_VHOST_LOG_DIR}/site3/access.log combined

</VirtualHost>

我还会说我尝试将.htaccess从工作站点复制到虚拟托管站点但没有结果。在这一点上,我不知道是什么导致了这一点。 服务器操作系统是Debian Lenny和apache 2.2.16。 我想补充一点,我已经检查了错误日志(包括php),我看到的只是访问错误

2 个答案:

答案 0 :(得分:1)

由于您没有收到Apache错误日志条目,我认为您已启用维护模式。

检查localconf.php条目:

$GLOBALS['TYPO3_CONF_VARS'][BE][adminOnly] = 1;

并将其更改为

$GLOBALS['TYPO3_CONF_VARS'][BE][adminOnly] = 0;

答案 1 :(得分:1)

对框架的轻微误解导致了这一点。事实证明我安装了一个空白包而不是介绍包。因为没有在空白处创建任何前端页面,所以我得到了503,我试图通过前端地址访问后端。