css, js и изображение не загружаются в поддомен с использованием codeigniter - PullRequest
0 голосов
/ 22 февраля 2019

CSS, JS и изображения не загружаются с помощью codeigniter на поддомене, созданном в Ubuntu.

https://fmbhq.duckdns.org/user/login

также https://fmbhq.duckdns.org перенаправляется на https://www.www.fmbhq.duckdns.org/fmbhq/index.php/fmbhq/index.php/

css файл не загружается https://fmbhq.duckdns.org/assets/css/font.css

Мои файлы находятся в / var / www / html / fmbhq

Мой .htaccess в папке fmbhq равен

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L] 

Мой файл настроек в / etc / apache2 / sites-available доступен для

<VirtualHost *:80>
ServerAdmin support@weconnectdirect.com
ServerName fmbhq.duckdns.org
DocumentRoot /var/www/html/fmbhq/index.php

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.fmbhq.duckdns.org [OR]
RewriteCond %{SERVER_NAME} =fmbhq.duckdns.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

Пожалуйста, помогите Спасибо

1 Ответ

0 голосов
/ 22 февраля 2019

Если ваши файлы имеют значение /var/www/html/fmbhq, DocumentRoot в вашем файле conf неправильный.должно быть DocumentRoot /var/www/html/fmbhq

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...