Custom vhost for the TYPO3 Backend

 / Main / Articles / 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>



Comments


Mirco, 28-07-06 08:55:
I've setup such a solution last week, but then I saw that the RTE and phpmyadmin won't load. So I had to deactivate it. Is there someone who has it running with RTE version1.3.7 and the phpmyadmin extension on Typo3 version4 ??

Add comment

* - required field

*



*
*

Top 10 Updates

Nice fonts using Google font API geändert am  20-May-2010 16:36:47
TS-based Searchbox for Indexed Search  geändert am  18-May-2010 18:27:15
TYPO3 SEO geändert am  30-Apr-2010 09:44:22
Search engine friendly graphical headers in TYPO3 geändert am  30-Apr-2010 09:33:44
Creating a simple Infocenter using TYPO3 geändert am  17-Nov-2009 12:12:52
Making the Section Menu work correctly with TemplaVoila geändert am  05-May-2009 12:27:17
Show pages with type "Not in Menu" in a sitemap geändert am  05-May-2009 12:11:17
Implementation of the DHTML menu from brainjar.com  geändert am  01-Feb-2009 14:02:48
Sample DHTML menu geändert am  01-Feb-2009 13:51:25
A introduction to the CONTENT object geändert am  26-Jan-2009 13:20:39

Latest comments

20-Aug-2010 16:31:13
pritam schrieb: Hello, Can any body tell me how to add the realurl in the typo3.
Articles
17-Aug-2010 15:25:30
Graham Solomon schrieb: I have developed a nice extension for using this Google Font API with TYPO3, along with their web...
Nice Fonts using Google font API
12-Aug-2010 17:39:44
Ritesh Jaiswal schrieb: I have added the above code into page template but it is not working. It only index the page into...
Index search
Deutsch
Search: