Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

tried to follow the steps of symfony-project tutorial with Propel:

http://www.symfony-project.org/jobeet/1_4/Propel/en/03

I am running Lubuntu with nginx. The project jobeet is running on chrome, but the pages are missing the pictures and the css styles. this is what i get in the chrome console when loading localhost.jobeet.com/frontend_dev.php/job :

 Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/sf.png". job:238
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/config.png". job:242
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/view.png". job:243
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/log.png". job:244
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/memory.png". job:245
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/time.png". job:246
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/database.png". job:247
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/close.png". job:249
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/toggle.gif". job:255
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/info.png". job:515
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/warning.png". job:516
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost.jobeet.com/sf/sf_web_debug/images/error.png". job:517


other than that, page loads and everything seems to be in order. this is my etc/nginx/sites-available/jobeet file:

server {
#listen 80;

server_name localhost.jobeet.com;

#root /var/www/mysite.com/web;
root /home/sfprojects/jobeet/web;
index index.php index.html index.htm;

#access_log /var/log/nginx/mysite.com.access.log;
#error_log /var/log/nginx/mysite.com.error.log;

location ~ ^/(index|frontend|frontend_dev|backend|backend_dev)\.php$ {
  include fastcgi_params;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_param PATH_INFO $fastcgi_path_info;
  fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  fastcgi_param HTTPS off;
  #fastcgi_pass   127.0.0.1:9000;
  fastcgi_pass unix:/tmp/php5-fpm.sock;
}

location / {
  #index index.php;
  #try_files $uri /index.php?$args;
  try_files $uri $uri/ /index.html;
}
location ^~ /sf/ {
      #alias /usr/share/php/data/symfony/web/sf/;
#root /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf/;
alias /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf;
fastcgi_pass unix:/tmp/php5-fpm.sock;
}
location ~ "^(.+\.php)($|/)" {
      fastcgi_split_path_info ^(.+\.php)(.*)$;

      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param SCRIPT_NAME $fastcgi_script_name;
      fastcgi_param PATH_INFO $fastcgi_path_info;
      #fastcgi_pass   127.0.0.1:9000;
      fastcgi_pass unix:/tmp/php5-fpm.sock;
      include        fastcgi_params;
 }
location ~* \.(eot|ttf|woff|png)$ {
  add_header Access-Control-Allow-Origin *;
  fastcgi_pass unix:/tmp/php5-fpm.sock;
}

}
Tried to add the alias to sf in many ways found on google and here, couldn't get it to work. What am i doing wrong here? Appriciate any help, will attach more info if needed..

share|improve this question
    
Are you sure these requests are going to your server? localhost.jobeet.com is a parked-domain page on a public address. Have a look at your nginx logs to see if it's actually getting any requests. –  pjmorse Oct 15 '12 at 17:01
    
yes, i'm sure. as i said, i can edit it and see other changes take effect. –  user1555863 Oct 16 '12 at 9:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.