Vagrant ubuntu / trusty64 apache2.4.7 не показывает файлы * .css

У меня есть виртуальная среда в Vagrant ubuntu/trusty64. Используется фалкон фреймворк. Установите

> apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Server built:   Jan 14 2016 17:45:23

/etc/apache2/sites-avaliable/mysite.conf

<VirtualHost 192.168.33.10:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /vagrant/
    ServerName site.loc
    ServerAlias www.site.loc
    <Directory /vagrant/>
        AllowOverride All
        Options Indexes FollowSymLinks
        Require all granted
        EnableMMAP Off
        EnableSendFile off
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

html файл /public/index.php

<!doctype html>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="/src/css/test.css" type="text/css">
  </head>
  <body>

  </body>
</html>

css файл /src/css/test.css

body {
  background: red;
}

.htaccess /.htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^$ public/ [L]
  RewriteRule (.*) public/$1 [L]
</IfModule>
-1
задан 8 June 2016 в 20:47

1 ответ

Я решил эту проблему, поместив мою src папку в тот же каталог как index.php

0
ответ дан 8 June 2016 в 20:47

Другие вопросы по тегам:

Похожие вопросы: