Problem with aliases

yosef nginx-forum at forum.nginx.org
Thu Jul 1 20:37:56 UTC 2021


Hi Francis,

First of all, thank you very much for your help :) I took your advice,
unfortunately I still cant get this working, now the browser is not
downloading the file, instead is showing me this message "No input file
specified" let me show you what my code looks like now: 

server {

listen 80;
listen [::]:80;


index index.php;

server_name 173.230.131.168;


location ^~ /proj1 {
alias /var/www/proj1/public_html;
try_files $uri $uri/ /index.php?q=$uri&$args;

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}

}




location ^~ /proj2 {
alias /var/www/proj2/public_html;
try_files $uri $uri/ /index.php?q=$uri&$args;


location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}

}

}

Whats wrong now?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291964,291970#msg-291970



More information about the nginx mailing list