typo3的虚拟主机设置 [英] virtual host settings for typo3

查看:97
本文介绍了typo3的虚拟主机设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DocumentRoot "C:/xampp_7/htdocs/BackupForEdow/Eddddddddd"
<Directory C:/xampp_7/htdocs/BackupForEdow/Eddddddddd>
    AllowOverride All
    Order Allow,Deny
    Allow from All

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond {REQUEST_FILENAME} !-f
    RewriteRule . /index.php [L]
    </IfModule>
</Directory>

这对typo3项目正确吗?

Is this correct for a typo3 project?

我无法访问typo3的前端,但是我的后端可以正常工作.前端显示内部服务器错误.

I am not able to access the frontend of typo3 but my backend works correctly. The front-end shows an internal server error.

请帮助我创建虚拟主机.

Please help me to create the virtual host.

推荐答案

虚拟主机确实取决于其他方面:例如,如果您使用附带的.htaccess,则不需要重写语句.

The vhost really does depend on other things: For example if you use the shipped .htaccess, you don't need the rewrite statements.

为此将TYPO3源中的_.htaccess复制到文档根目录中的.htaccess.

Copy the _.htaccess from the TYPO3 source to .htaccess in your document root for that.

关于一般错误:如已建议,查看Apache(或php)错误日志.还要查看TYPO3系统日志(后端中的日志").

About errors in general: As already recommended, look in the Apache (or php) error logs. Also look in the TYPO3 system log ("Log" in the Backend).

关于证书错误:如果您希望能够通过https://访问网站,则需要设置SSL/TLS证书. 这不是TYPO3特定的事情.您可能需要咨询其他资源,例如在stackoverflow上进行搜索.

About the certificate error: You need to set up an SSL/TLS certificate if you want to be able to access your website via https://. This is not a TYPO3 specific thing. You may want to consult other resources, e.g. search on stackoverflow.

也许会有所帮助.

还要检查是否可以通过http://

Also, check if you can load your webpage via http://

对于ssl,您通常需要这些东西:

For ssl in general you need these things:

  1. 创建签名证书.您的托管人应该能够为您提供帮助.如果要在台式机上设置TYPO3安装,则可以暂时跳过该部分并覆盖浏览器中的错误消息.但是,对于公共网站,您应该始终正确设置证书.
  2. 确保已启用Apache ssl模块.我对Xampp的了解不足,无法在此为您提供帮助.
  3. 为ssl/端口443创建并启用虚拟主机文件.在可提供站点的目录中查找现有示例ssl虚拟主机文件,例如default-ssl.conf或在线搜索示例

证书中的服务器名称不正确通常不会导致500错误.它应该在浏览器中生成警告.

Having a not correct server name in the certificate should usually not lead to a 500 error. It should generate a warning in the browser.

这篇关于typo3的虚拟主机设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆