V
V
Valter Funk2014-02-06 18:46:41
Apache HTTP Server
Valter Funk, 2014-02-06 18:46:41

Apache: why no access to css?

Yesterday I suffered with the problem of Closed access to the folder , I solved it using the apache2.conf settings, for this I registered

<Directory /home/www-data/>
  Options Indexes FollowSymLinks
  AllowOverride None
  Require all granted
</Directory>

Now the problem is different, I can go to the site blog.loc (located in /home/www-data/www/blog)
But when I go to blog.loc, css files (located in home/www-data/www/blog/) are not loaded css), when you try to open the css file directly, it opens
Forbidden

You don't have permission to access /aeron/css/whhg.css on this server.

First of all, I checked error.log apache2, here's what I found there:
AH00529: /home/www-data/www/blog/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/www-data/www/blog/css/' is executable, referer: http://blog.loc/

Probably an error due to the lack of .htaccess, I thought and added the .htaccess file with the following content to home/www-data/www/blog and to home/www-data/www/blog/сss
Directory Index index index.html
order deny,allow 
allow from all

To no avail. Tell me what's the matter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan, 2014-02-06
@L3n1n

Apache gives statics and not nginx for example?
You don't have permission to access /aeron/css/whhg.css on this server.
And deal with the addresses..
../blog/сss and /aeron/css/ seem to be completely different folders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question