Здравствуйте, не работает следующий конфиг на apache 2.4, как исправить?:
<VirtualHost *:80>
ServerName IP или Домен
DocumentRoot /var/www
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
А вот, .htaccess:
AddDefaultCharset utf-8
RewriteBase /
Options -Indexes FollowSymLinks MultiViews
RewriteEngine on
RewriteBase /acp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^acp /acp/index.php [L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(?!acp).* index.php [L]
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
php_value max_execution_time 500
php_value max_input_time 500
php_value upload_max_filesize 30M
php_value post_max_size 30M
php_flag short_open_tag = On