Good day.

I recently updated to Fedora 18, I encountered Apache2.

For the safety of the developed sites, a separate disk partition is allocated for virtual hosts. The disk is mounted in /srv

If you have all the rights and configured selinux (tried to disconnect), you will get 403 Forbidden Outside the mounted disk partition, everything works

 ServerRoot "/etc/httpd"Listen 80Include conf.modules.d/*.confUser apacheGroup apacheServerAdmin gedweb@blog.dev<Directory /> AllowOverride All Require all denied</Directory>DocumentRoot "/var/www/html"<Directory "/var/www"> AllowOverride None Require all granted</Directory><Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride All Require all granted</Directory><IfModule dir_module> DirectoryIndex index.html</IfModule><Files ".ht*"> Require all denied</Files>ErrorLog "logs/error_log"LogLevel warn<IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog "logs/access_log" combined</IfModule><IfModule alias_module> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</IfModule><Directory "/var/www/cgi-bin"> AllowOverride None Options None Require all granted</Directory><IfModule mime_module> TypesConfig /etc/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType text/html .shtml AddOutputFilter INCLUDES .shtml</IfModule>AddDefaultCharset UTF-8MIMEMagicFile conf/magicEnableSendfile onNameVirtualHost *:80IncludeOptional conf.d/*.conf 

conf.d / vhost.conf

  <VirtualHost *:80> ServerName blog.dev ServerAlias www.blog.dev DocumentRoot /srv/www/blog </VirtualHost> 

Here is the error log:

 [Mon Jan 21 17:51:31.080295 2013] [core:crit] [pid 2873] (13)Permission denied: [client 127.0.0.1:36802] AH00529: /srv/www/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/srv/www/' is executable 
  • Config in studio. without extra lines. - pyatak
  • cut as best I could =) - Gedweb
  • The disk is mounted in / srv. I don’t see paths starting with / srv in the config. - pyatak
  • corrected, just tried to transfer to the home directory using userdir - the result is the same - Gedweb
  • With the rights exactly all good, owner who? Is there no htaccess in / srv / www / blog, and what about 403 in the Apache logs? - pyatak

1 answer 1

 sudo a2enmod rewritesudo /etc/init.d/apache2 restart 

Try, I think it will not be worse. This is the inclusion of the rewrite module in appache2.

Here they write available. For a similar problem.