Цитата:
Сообщение от Gamer89
сори, не нашел...хотя долго искал....если вдруг найдете, киньте ссылку... Спасибо!
|
http://www.typo3wizard.com/en/articl...3-backend.html
Цитата:
Custom vhost for the TYPO3 Backend
Sometimes it makes sense from a security point of view to seperate the typo3 backend from the main site.
The mainsite is reachable under www.mydomain.com but accessing the backend should work only with typo3.backend.info.
Add a redirect to the .htaccess of the maindomain to /typo3/ if accessed via typo3.backend.info
File /www/path/to/yoursite/.htaccess :
RewriteEngine on
RewriteRule ^[^/]*\.html$ index.php
RewriteCond %{HTTP_HOST} ^typo3.backend.info$ [NC]
RewriteRule ^(.*)$ http://typo3.backend.info/typo3/ [L]
The path /typo3/ is closed for all domains except the backend domain
File /www/path/to/yoursite/typo3/.htaccess:
RewriteEngine ON
RewriteCond %{HTTP_HOST} !typo3.backend.info [NC]
RewriteRule ^(.*)$ http://typo3.backend.info [L,R=301]
Activate the backend vhost in your httpd.conf / corresponding vhost configuration file:
<VirtualHost *>
ServerName typo3.backend.info
ServerAlias admin.backend.info
DocumentRoot /www/path/to/yoursite/
ErrorLog /var/log/apache2/typo3.backend.info-error.log
CustomLog /var/log/apache2/typo3.backend.info-access.log combined
</VirtualHost>
|
с другими способами я не советую связываться - можно получить много неожиданных проблем