Answer the question
In order to leave comments, you need to log in
Why do symlinks with different names but the same purpose behave differently in NGINX?
OS: Ubuntu 20.04
server {
listen 80 default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
set $root_path /var/www/html;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root_path$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT $root_path;
}
}
ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
ln -s /usr/share/postfixadmin/public /var/www/html/pfa
rm /var/www/html/pfa
ln -s /usr/share/postfixadmin/public /var/www/html/postfixadmin
Answer the question
In order to leave comments, you need to log in
Nginx does not have caching
enabled by default .
The browser may have cached.
Check how it works what you set up with CURL or at least from incognito mode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question