Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Protecting settings.xml Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
V4g_Br4Ck3r
Newbie
Newbie
Avatar

Joined: 14 October 2011
Location: Brazil
Online Status: Offline
Posts: 7
Posted: 17 October 2011 at 3:47am | IP Logged Quote V4g_Br4Ck3r

I have a problem to set the access level of my settings file!

For if I type:
mail.server.com.br / data / settings / settings.xml

I see all the settings! But this is a security problem, because all my passwords are there!

How do I show access denied?
Back to Top View V4g_Br4Ck3r's Profile Search for other posts by V4g_Br4Ck3r
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 October 2011 at 3:53am | IP Logged Quote Igor

Out of box, WebMail Pro contains .htaccess file under the data folder with Deny from all directive there. In most cases, that would protect files and folders from accessing them directly. In case if that doesn't work for you, I suggest to revise configuration of your web server or virtual host and make sure Allow and Deny directives are accepted. For Apache web server, those directives are explained at their documentation page, and if you use a different web server check their security-related docs.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 18 October 2011 at 10:25am | IP Logged Quote Igor

By the way, there's another approach which might be easier to use in your case. Out of box, data folder is a direct subfolder of main WebMail Pro folder. However, you can move it to any different location which cannot be accessed via web browser (outside document root). You'll need to specify new filesystem path for that folder in inc_settings_path.php file and make sure the location is writable for web server.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
V4g_Br4Ck3r
Newbie
Newbie
Avatar

Joined: 14 October 2011
Location: Brazil
Online Status: Offline
Posts: 7
Posted: 19 October 2011 at 3:47am | IP Logged Quote V4g_Br4Ck3r

Hello, I've tried everything on the server!
Was to "AllowOverride NONE." And changed to All AuthConfig however did not work!

<Directory "/var/www/">
AllowOverride AuthConfig
Order allow, deny
allow from all
</ Directory>

In the end I ended up changing the location and name of the folder and changing the inc_settings_path.php!

For now I'll leave it at that! Thanks again!
Back to Top View V4g_Br4Ck3r's Profile Search for other posts by V4g_Br4Ck3r
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 19 October 2011 at 3:54am | IP Logged Quote Igor

Actually, you'd need AllowOverride Limit which handles host access while AuthConfig handles authorization only, see Apache documentation page for more details. But, as long as current solution works for you, you can certainly leave that the way it is now.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide