Roundcube Community Forum
News and Announcements => General Discussion => Topic started by: _Toby_ on January 12, 2016, 05:26:35 PM
-
Hi!
I got a problem with my setup. http://myserver.xxx/roundcube/logs/sendmail is readable from anywhere.
The folder is not browsable but the log is accesible if I type it in like above.
Is there any way to prevent this? I'm concerned that all contacts I have sent mail to can get there email addresses on various spam lists.
I'm using roundcube 1.1.4 on a ubuntu trusty server with apache.
Thanks in advance.
Regards,
Toby
-
The best thing to do is to change the document root to the public_html folder, that way none of the system files are accessible.
-
Just for completeness... Roundcube ships with a .htaccess file which blocks direct access through the webserver to the config, temp and logs folders. See https://github.com/roundcube/roundcubemail/blob/master/INSTALL#L158 for more info. There are other things too like PHP limits set in the .htaccess file so you might also want to check why that file is not being used by Apache.
-
Thanks to both of you.
I had to enable the module rewrite in Apache as well as setting the AllowOverride All in the global config.
Now it works and it's not possible to access the file.