Update 'RevProxyAdvanced.sh'

This commit is contained in:
tbergervoet
2018-09-26 12:11:04 +00:00
parent f823206986
commit e0dadd1267

View File

@@ -136,7 +136,7 @@ cat <<EOF > /etc/nginx/sites-available/"$domain"
server {
listen 80;
server_name $domain www.$domain;
root /var/www/$domain/html/;
root /var/www/$domain/html;
index index.php index.htm index.html;
location / {
@@ -173,15 +173,15 @@ cat <<EOF > /etc/nginx/sites-available/"$domain"
server {
listen 80 default_server;
root /usr/share/nginx/example.com;
root /var/www/$domain/html;
index index.php index.html index.htm;
server_name example.com www.example.com;
location / {
try_files $uri $uri/ /index.php;
try_files \$uri \$uri/ /index.php;
}
location ~ \.php$ {
location ~ \.php\$ {
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
include snippets/fastcgi-php.conf;
}