Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-30, 00:00:13

Author Topic: Kloxo apache virtualhost config is inconvenience for deny request from .htaccess  (Read 2328 times)

0 Members and 1 Guest are viewing this topic.

Offline laipg

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
When i using apache as webserver added new domain, kloxo auto generate new virtualhost config for apache. But when i need for security reason (Deny request to some folders by .htaccess file). it's very inconvenience. I need change config by hand.
I think generate template should change, default for web is
Code: [Select]
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch

<IfModule mod_php5.c>
php_admin_value open_basedir "/home/admin:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script:/home/kloxo/httpd/disable/:"
</IfModule>
</Location>
I think should remove Allow from all. Because if have it, my .htaccess Order Allow,Deny not working
I hope new version will change it
« Last Edit: 2015-12-02, 16:33:58 by laipg »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Reason for disable 'Allow from all'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline laipg

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
If not remove this line, .htaccess file deny access won't work
example:
Code: [Select]
Deny from AllSommetime need it for security reason.
« Last Edit: 2015-12-03, 16:25:34 by laipg »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.075 seconds with 20 queries.

web stats analysis