Note that there are some explanatory texts on larger screens.

plurals
  1. PONGINX Config PHP Trouble
    primarykey
    data
    text
    <p>I am relatively new to NGINX, I admit (less than 24 hours), but, I got it basically configured. I'm setting up a site for a friend, and I saw an example of some code that uses subdomains like in the code below. But, in the subdomain, PHP won't work. It just asks me to download the file if I go to "subdomain.domain.tld", but, if I go to "subdomain.domain.tld/index.php", it says "No input file specified." The subdomain is phpmyadmin, by the way.</p> <pre><code>server { listen 80; server_name irc.physibots.info; rewrite (.*) http://physibots.info:3989; } server { listen 80; server_name "~^([a-z]+)?.physibots.info"; root /home/virtual/physibots.info/subdomains/$1; index index.php index.html index.html; location / { autoindex on; } location ~ \.php { try_files $uri /error.html fastcgi_index index.php; fastcgi_pass unix:/tmp/php.socket; include fastcgi_params; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } } #server { # listen 443; # server_name localhost; # # charset utf-8; # # ssl on; # ssl_certificate server { listen 80; server_name physibots.info default; root /home/virtual/physibots.info/public_html; index index.php index.html index.html; location / { autoindex on; } location ~ \.php { try_files $uri /error.html fastcgi_index index.php; fastcgi_pass unix:/tmp/php.socket; include fastcgi_params; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload