FreeHostia Forums
http://forum.freehostia.com/

Problem with CSS and JS aggregation in Drupal
http://forum.freehostia.com/viewtopic.php?f=4&t=65241
Page 1 of 1

Author:  jasom [ Wed Jul 16, 2014 6:42 am ]
Post subject:  Problem with CSS and JS aggregation in Drupal

Hi,
I have problem with CSS and JS aggregation in Drupal. When I turn on JS na CSS aggregation in admin/config/development/performance all JS and CSS disappear from site. It because no aggregated CSS and JAVASCRIPT created within drupal directory /sites/default/files/css and /sites/default/files/js/ can be accessible. All folders have chmod 777.

When I try to open for example sitename.com/sites/default/files/js/js_KCd8rbJYUruV1tRJnh4um34UYvyhlrSVCPR1jNko2h8.js I get:

Quote:
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
sitename.com
Wed Jul 16 06:39:28 2014
Apache mod_fcgid/2.3.7 mod_auth_pgsql/2.0.3


What's in matter?

Author:  jasom [ Wed Jul 16, 2014 3:00 pm ]
Post subject:  Re: Problem with CSS and JS aggregation in Drupal

Error was removed using freehostia support. They renamed htaccess file to "a.htaccess" and it contain this code:

Code:
# Turn off all options we don't need.
Options None
Options +FollowSymLinks

# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
  # Override the handler again if we're run later in the evaluation list.
  SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>

# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
  php_flag engine off
</IfModule>

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/