[TYPO3-english] config.absRefPrefix and minificator script
Hi, list. I'm using TYPO3 4.6.3 and due to changes at RealURL manual, I've exchanged config.baseURL = http://{$BaseUrl}/ with config.absRefPrefix = http://{$BaseUrl}/ So far so good, but after some time I've found, that default CSS and JS isn't inside merged and minifed css and js files (I have settings for that: config.compressJs = 1, config.compressCss = 1, config.concatenateJs = 1, config.concatenateCss = 1). Here is what I see at the log: Core: Error handler (FE): PHP Warning: filesize(): stat failed for /path-to-document-root/absRefPrefix-value/typo3temp/stylesheet_0bb18ca76c.css in /path-to-document-root/t3lib/class.t3lib_compressor.php line 295 Core: Error handler (FE): PHP Warning: filemtime(): stat failed for /path-to-document-root/absRefPrefix-value/typo3temp/stylesheet_0bb18ca76c.css in /path-to-document-root/t3lib/class.t3lib_compressor.php line 295 As you see, function fails, because path to CSS file in typo3temp isn't valid, since it contains value from config.absRefPrefix right between document root path and 'typo3temp'. So, I set: config.absRefPrefix = / and that doesn't make functions to fail. I want to know, is it a bug or I did something wrong? And is it secure to have only slash without any domain name in config.absRefPrefix? ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] config.absRefPrefix and minificator script
Hi Victor, I'm using TYPO3 4.6.3 and due to changes at RealURL manual, I've exchanged config.baseURL = http://{$BaseUrl}/ with config.absRefPrefix = http://{$BaseUrl}/ baseURL and absRefPrefix aren't the same options with distinct names ;) absRefPrefix is independent of your host name, so it's / in case your TYPO3 installation is in your document root, /foo/bar/ in case if it's reachable through http://example.org/foo/bar/ etc. Hope that helps! Kind regards Steffen -- Steffen Gebert TYPO3 v4 Core Team Member TYPO3 Server Administration Team Member TYPO3 inspiring people to share! Get involved: http://typo3.org ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] config.absRefPrefix and minificator script
Hi, Steffen. baseURL and absRefPrefix aren't the same options with distinct names ;) absRefPrefix is independent of your host name, so it's / in case your TYPO3 installation is in your document root, /foo/bar/ in case if it's reachable through http://example.org/foo/bar/ etc. Thank you for an explanation! Now I got the idea. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] config.absRefPrefix and minificator script
On 5-1-2012 19:53, Steffen Gebert wrote: Hi Victor, I'm using TYPO3 4.6.3 and due to changes at RealURL manual, I've exchanged config.baseURL = http://{$BaseUrl}/ with config.absRefPrefix = http://{$BaseUrl}/ baseURL and absRefPrefix aren't the same options with distinct names ;) absRefPrefix is independent of your host name, so it's / in case your TYPO3 installation is in your document root, /foo/bar/ in case if it's reachable through http://example.org/foo/bar/ etc. Look at the description in TSref: - If this value is set, then all relative links in TypoScript are prepended with this string. Used to convert relative paths to absolute paths. Note: This values is automatically set to the dirname of the index.php script in case simulateStaticDocuments is set to "PATH_INFO". If you're working on a server where you have both internal and external access, you might do yourself a favor and set the absRefPrefix to the url and path of you site, e.g. http://www.typo3.com/. If you do not, you risk to render pages to cache from the internal network and thereby prefix image-references and links with a non-accessible path from outside. - This actually suggests to use the host name in the setting. Seems like the OP did find a bug... -- Kind regards / met vriendelijke groet, Jigal van Hemert. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english