[TYPO3-english] RealURL: class t3lib_div.getIndpEnv('TYPO3_SITE_URL') not returning correct url path in combination with RealURL

Marieke Vandamme marie at tvh.be
Fri Jul 31 09:45:46 CEST 2009


Hello, 

Still no response, so I hope underneath apache configuration might be of
some help. 
We searched quite a long time to get the configuration correct:
- We have 2 virtual hosts (www.test.com and www2.test.com)
- Each has it's own root in the htdocs
- Inside the directory for the host, is a symbolic link site to the
typo3-website-root-directory

Without those virtual hosts realurl seems to work,
but with them, we get strange behavior like described in previous post.

Please, any suggestion is welcome!! Thanks a lot! Marieke.

Our apache configuration:
<VirtualHost *>
	DocumentRoot /srv/www/htdocs/www.test.com
	ServerName www.test.com
	<Directory /srv/www/htdocs/www.test.com>
		AllowOverride None
		Order allow,deny
		Allow from all
	</Directory>
	<IfModule rewrite_module>
		RewriteEngine on
		RewriteRule ^/site/typo3$ - [L]
		RewriteRule ^/site/typo3/(.*)$ - [L] 
		
		RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
		RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
		RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-l
		RewriteRule ^/site/.* /site/index.php
	</IfModule>
</VirtualHost>
<VirtualHost *>
	DocumentRoot /srv/www/htdocs/www2.test.com
	ServerAdmin test at test.com
	<Directory /srv/www/htdocs/www2.test.com>
		AllowOverride None
		Order allow,deny
		Allow from all
	</Directory>
	
	<IfModule rewrite_module>
		RewriteEngine on
		RewriteRule ^/site/typo3$ - [L]
		RewriteRule ^/site/typo3/(.*)$ - [L]
		
		RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
		RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
		RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-l
		RewriteRule ^/site/.* /site/index.php
	</IfModule>
</VirtualHost>
-- 
View this message in context: http://www.nabble.com/-TYPO3-english--RealURL%3A-class-t3lib_div.getIndpEnv%28%27TYPO3_SITE_URL%27%29-not-returning-correct-url-path-in-combination-with-RealURL-tp24736880p24752432.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list