virtual host settings for typo3

2019-08-20 16:32发布

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>

Is this correct for a typo3 project?

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.

1条回答
趁早两清
2楼-- · 2019-08-20 17:20

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

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

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).

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.

Perhaps this helps.

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

For ssl in general you need these things:

  1. Create a signed certificate. Your hoster should be able to help you with that. If you are setting up your TYPO3 installation on your desktop PC, you can skip that part for now and override the error message in the browser. For a public website you should always setup your certificates correctly, though.
  2. Make sure the Apache ssl modules are enabled. I don't know enough about Xampp to help you there.
  3. Create and enable a vhost file for ssl / port 443. Look for an existing example ssl vhost files in the sites-available directory, e.g. default-ssl.conf or search for examples online

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.

查看更多
登录 后发表回答