【问题标题】:virtually hosted typo3 site returns a 503 after backend logout虚拟托管的typo3网站在后端注销后返回503
【发布时间】:2012-04-03 18:22:32
【问题描述】:

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

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 日志),我看到的只是访问错误

【问题讨论】:

  • 您的 apache 错误日志是否提供了更多详细信息?
  • 这是最奇怪的事情......除了访问日志之外,日志中没有产生任何错误

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


【解决方案1】:

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

检查您的localconf.php 以获取条目:

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

并将其更改为

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

【讨论】:

  • 文件中没有这样的行(我假设它位于typo3conf目录下)fpaste.org/FswY
【解决方案2】:

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

【讨论】:

  • 它没有。唯一不断出现的错误是 access.log 中的 503。
  • 我猜是因为你没有打开调试dmitry-dulepov.com/2009/03/blank-empty-page-in-typo3.html。这是正确的,因为访问者不应该看到错误消息(这可能会泄露安全相关信息)。
  • 唯一返回的页面是带有倒置徽标的“糟糕,出现错误页面”。据我所知,没有相关信息。
  • 是的,您收到两个错误,导致 503 服务器错误。第一个是关于在根级别上没有任何页面。一旦你解决了这个问题,下一个错误就是根本没有 TypoScript 模板。一旦你解决了这两个问题,你就可以开始了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-05-09
  • 2021-06-20
  • 1970-01-01
  • 1970-01-01
  • 2015-01-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多