nginx error: "No input file specified" when website in subdirectory nginx error: "No input file specified" when website in subdirectory nginx nginx

nginx error: "No input file specified" when website in subdirectory


Yes! I got it working. Thanks to Joe Niland who told the solution.

I actually tried it once but I may have missed the '/' before the joomla/index.php....

The working /etc/nginx/sites-available/site configuration is now:

server { listen 80; root /var/www; index index.php index.html index.htm; location / {      try_files $uri $uri/ /joomla/index.php?q=$request_uri; } location ~ \.php$ {        fastcgi_pass unix:/var/run/php5-fpm.sock;        fastcgi_index index.php;        include fastcgi_params; } }


Look below for config setting

server {     listen 80;     root /var/www;     index index.php index.html index.htm;     location / {          try_files $uri $uri/ /index.php?q=$request_uri$args;     }     location ~ \.php$ {            root /var/www;            fastcgi_pass unix:/var/run/php5-fpm.sock;            fastcgi_index index.php;            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;            include fastcgi_params;     }     }