Update 'RevProxyAdvanced.sh'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user