Yii Framework Forum: Running Yii Using Nginx, Javascript Files Are Not Loaded - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Running Yii Using Nginx, Javascript Files Are Not Loaded Rate Topic: -----

#1 User is offline   jcagentzero 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 58
  • Joined: 14-October 11
  • Location:Philippines

Posted 28 June 2014 - 04:09 AM

Hi All,

Greetings!

I recently tried to use nginx as my server for my yii application. I was able to setup nginx and other needed application. I also used the http://www.yiiframew...he-nginx-config as reference for my nginx configuration. I got it working but when I viewed my site, I observed that it only load css files, images but some of js files are not loaded, for example the jquery.js, fyi my setup is working in apache. If you have any idea or a version of nginx config that works in your setup. It is much appreciated.
Thank you and regards,

jcagentzero

http://www.jundycosmod.com

If you think this post is helpful, please don't hesitate to click + button.
0

#2 User is offline   Belitsoft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 21-July 14
  • Location:Belarus, Minsk

Posted 22 July 2014 - 02:30 AM

Hi

Could you please look at your page source code and say what path it tries to use to load jquery.js?

Also please show what you've got in your nginx config.

thank you.
0

#3 User is offline   jcagentzero 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 58
  • Joined: 14-October 11
  • Location:Philippines

Posted 24 July 2014 - 11:30 PM

Hi Belitsoft,

Thanks for replying. I don't know why but I compressed my web app directory using ftp and unzip it. That's where I encountered the issue. Then I tried directly uploading the web app directory and it works. All js files are now loaded.
Thank you and regards,

jcagentzero

http://www.jundycosmod.com

If you think this post is helpful, please don't hesitate to click + button.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users