Hi there,
I´ve got some question concerning .htaccess over web admin panel.
I´ve tested with two test domains.
Domain A has several subdomains - one of the subdomains has an existing TYPO3 with its own .htaccess. When I want to secure the folder via web panel I can choose the folder, user etc. and click "protect it" - everything works find BUT where does imscp save the .htaccess file? As there already exists an htaccess file in the htdocs directory, and it is not overwritten, I don´t know where imscp saves the self created htacces? The database doesn´t show anything (table htaccess) except "status ok". (directory is /"subdomain"/htdocs)
Domain B has some quite unusual behaviour? When adding a protected area I can choose everything and successfully create the protected area - but then for some directories the status is "unexpected error" - the affected directories are the parent directories for the subdomains - is this normal? (example: the subdomain is sub01 - it doesn´t create it for the directory sub01 but for sub01/htdocs).
Last thing - it is not possible to create ONE .htaccess for the main domain and the subdomains, am I right?
Thanks in advance
Simon
Funny thing:
- [Fri Oct 9 13:58:28 2015] [debug] iMSCP::EventManager::register: Registering listener on the afterHttpdBuildConfFile event from Servers::httpd::apache_fcgid::_init
- [Fri Oct 9 13:58:28 2015] [debug] Modules::Abstract::_runAction: Calling action deleteHtaccess on Servers::httpd
- [Fri Oct 9 13:58:28 2015] [debug] iMSCP::Config::_init: Tying /etc/imscp/apache/apache.data
- [Fri Oct 9 13:58:28 2015] [debug] iMSCP::Config::_loadConfig: Loading /etc/imscp/apache/apache.data
- [Fri Oct 9 13:58:28 2015] [debug] iMSCP::Config::_parseConfig: Parsing /etc/imscp/apache/apache.data
- [Fri Oct 9 13:58:28 2015] [debug] iMSCP::File::save: Saving file /var/www/virtual/xxxxx.de/dvv/htdocs/.htaccess
- [Fri Oct 9 13:58:28 2015] [debug] iMSCP::File::mode: Changing mode for /var/www/virtual/xxxxx.de/dvv/htdocs/.htaccess to 640
- [Fri Oct 9 13:58:28 2015] [debug] iMSCP::File::owner: Changing owner and group for /var/www/virtual/xxxxx.de/dvv/htdocs/.htaccess to 1003:1003
But the .htaccess is not changed, its still the symlink to the TYPO3 .htaccess file...
AAAAH, i´ve seen it myself - imscp changes the TYPO3 .htaccess file - it just inserts its own settings - is this okay? Is this done via find and replace?