# Css and other asset resources loading failed

**URL:** <https://talk.jekyllrb.com/t/css-and-other-asset-resources-loading-failed/4878>\
**Category:** Help\
**Created:** [August 20, 2020, 2:23pm UTC](https://talk.jekyllrb.com/t/css-and-other-asset-resources-loading-failed/4878 "2020-08-20T14:23:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harrypotterrrr](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/harrypotterrrr/32/2708_2.png) [@Harrypotterrrr](https://talk.jekyllrb.com/u/Harrypotterrrr)\
**Post date:** [August 20, 2020, 2:23pm UTC](https://talk.jekyllrb.com/t/css-and-other-asset-resources-loading-failed/4878/1 "2020-08-20T14:23:39Z")

</div>

## Environment

- I use [academicpages](https://github.com/academicpages/academicpages.github.io)
- Ruby gem or remote theme version:  
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86\_64-linux-gnu]  
gem 2.7.6
- Jekyll version: 3.8.7
- Git repository URL: [https://github.com/Harrypotterrrr/Homepage](https://github.com/Harrypotterrrr/Homepage)
- GitHub Pages hosted (if yes provide URL to site):
- Operating system: Linux ubuntu6-1 4.15.0-29-generic [#31](https://github.com/mmistakes/minimal-mistakes/pull/31)-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86\_64 x86\_64 x86\_64 GNU/Linux

## Expected behavior

Hi, I am using [academicpages](https://github.com/academicpages/academicpages.github.io), a repository forked from this minimal-misktake which is very suitable to the academic propose. I am trying to debug and modify my homepage by using `bundle exec jekyll serve --host 0.0.0.0 --port 8445 --incremental` on the remote server. Note that this remote server is the one with inner IP and cannot be accessed from outside, so I use port forward technique to propagate the port to the public server IP by using `ssh -NfR 8445:localhost:8445 root@106.13.xx.xx` .

I manage to see all the text of my homepage, while I fail to load any CSS and asset images etc. As the below figure shows:  
[![image](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/5/5447c9bbb9a651b1cf326f47f98a4661f42b4714.png)](https://user-images.githubusercontent.com/28552583/88963968-3c538a00-d2db-11ea-9d95-589a148561c9.png)

You can see the request is `http://0.0.0.0:8445/assets/css/main.css` . I change `0.0.0.0` to my public server IP `106.13.xx.xx` , that is  
`http://106.13.xx.xx:8445/assets/css/main.css` , I successfully get the `main.css` file as the following image shows, which means port forward success.  
[![image](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/c/cc12b1cb07411530f439158573cd7abd3d23293a.png)](https://user-images.githubusercontent.com/28552583/88964189-95bbb900-d2db-11ea-9f79-b84318bebbfc.png)

So I turn to the `_config.yml` to see if I could modify `host` or something else to direct assets request to `106.13.xx.xx` instead of `0.0.0.0` but finally I failed.

Struggling for hours, I have to ask you for help for I am a newbie in front-end tech.  
Hope I make my problem clear and easy to understand. I just wanna test my modification and debug on that remote server, which has an inner IP address and can not be accessed outside. I have no problem with deploying it to Github.  
Thanks for your help in advance!

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [August 20, 2020, 3:09pm UTC](https://talk.jekyllrb.com/t/css-and-other-asset-resources-loading-failed/4878/2 "2020-08-20T15:09:25Z")

</div>

how are you trying to link to the css? as long as you do a relative url I would think it would work.

What do you have in the config file for url and baseurl? baseurl should probably not be set.

A lot of themes probably use the url and baseurl as a prefix to the css, that is probably not going to work for your setup or at least may cause trouble.

---

<div class="post-metadata">

**Author:** ![Harrypotterrrr](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/harrypotterrrr/32/2708_2.png) [@Harrypotterrrr](https://talk.jekyllrb.com/u/Harrypotterrrr)\
**Post date:** [August 21, 2020, 9:49am UTC](https://talk.jekyllrb.com/t/css-and-other-asset-resources-loading-failed/4878/3 "2020-08-21T09:49:16Z")

</div>

Hi, thanks for your reply. I have solved this problem by using local port forwarding together with remote port forwarding tech. It is my fault to meet this kind of problem.
