Hello
How can i enable/disable this option for user accounts?
Thanks
Hello
How can i enable/disable this option for user accounts?
Thanks
You can disable .htaccess for a particular domain by editing the /etc/httpd/conf/httpd.conf file & following the below mentioned steps:
Open the /etc/httpd/conf/httpd.conf file.
Search for the "AllowOverride None" string.
it'd look like :
Append it by:<Directory "/">
AllowOverride None
</Directory>
Such that it looks like:<Directory "/home/username/public_html">
AllowOverride None
</Directory>
Doing so would disable the .httaccess for that particular username/domain.<Directory "/">
AllowOverride None
</Directory>
<Directory "/home/username/public_html">
AllowOverride None
</Directory>
Regards,
Viraj
http://www.host.co.in
DEDICATED HOSTING|WINDOWS VPS|LINUX VPS |WINDOWS HOSTING
CPANEL HOSTING|RESELLER HOSTING|SEMI-DEDICATED HOSTING
Phone:0253-2342932|Mobile:+91-9860900069
Support/Billing/Sales:24x7x365 sales@host.co.in | support@host.co.in
And to enable it?
.htaccess is enabled by default.
Remember, do not modify httpd.conf directly. Use the include files instead as mentioned in the EasyApache documentation: cPanel - The Easy Apache Configuration System - Adding Custom Directives to httpd.conf
Actually viraj made a typographical error just as a matter
of technical correction. The root directory location
section ("/") of your httpd.conf file has a default setting
of "AllowOverride All" which means to allow
.HTACCESS files instead of "AllowOverride None".
(If you search for "AllowOverride None" in that section
then you probably wouldn't find anything unless your
httpd.conf file has already been misconfigured)
After that, you should indeed put "AllowOverride None"
in a separate location as viraj told you and that part
of what they told you is correct. Although a better
way to do that might be to do it as a vhost include
file just so you don't have to constantly re-edit your
main httpd.conf file or have to remember to keep
it matched up to your actual active accounts.
It apparently gets better and better (yes that was sarcasm) ...
Last night I took apart a server and went over all the configuration
lines in httpd.conf and the other files loaded and found that the
configuration for .HTACCESS was indeed accurate in the main
files but not listed for the virtualhost.
Thinking the directives might actually need to be in the virtualhost
sections as well, I ran a few more test with those added and the
Apache server restarted but no such luck there either but then
I ran tests with Auth (Deny From / Allow From) directives added
directly to the httpd.conf file and found those don't work either!
So in a nutshell, the servers are not only not reading the .HTACCESS
commands but they apparently are ignoring all authentication commands
entirely which is now making me wonder if MOD_AUTH was forgotten
in the Apache Build. If you go into Easy_Apache, it's not listed as a
build option but you would think Cpanel would know to add that one
by default into the build.
Anyway, bottom line is the servers aren't processing any authentication
commands whatsoever irregardless of .HTACCESS or HTTPD.CONF location
and the .HTACCESS files aren't being parsed at all despite configuration.
I would recommend working with our technical analysts so they can diagnose what is causing this behavior on your server(s): http://tickets.cPanel.net/submit
Regards,
Viraj
http://www.host.co.in
DEDICATED HOSTING|WINDOWS VPS|LINUX VPS |WINDOWS HOSTING
CPANEL HOSTING|RESELLER HOSTING|SEMI-DEDICATED HOSTING
Phone:0253-2342932|Mobile:+91-9860900069
Support/Billing/Sales:24x7x365 sales@host.co.in | support@host.co.in