1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
server {
listen 80;
listen [::]:80;
server_name localhost;
index index.php index.html;
root /usr/share/postfixadmin/public;
# hint: if you want a subpath setup like this (like the apache config):
# make a symlink: /var/www/html/postfixadmin -> /usr/share/postfixadmin/public
# and use the following line, instead of the one above:
# root /var/www/html;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_param HTTP_HOST $host;
include snippets/fastcgi-php.conf;
}
}
|