Update 'RevProxyAdvanced.sh'
This commit is contained in:
@@ -136,7 +136,7 @@ cat <<EOF > /etc/nginx/sites-available/"$domain"
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name $domain www.$domain;
|
server_name $domain www.$domain;
|
||||||
root /var/www/$domain/html/;
|
root /var/www/$domain/html;
|
||||||
index index.php index.htm index.html;
|
index index.php index.htm index.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
@@ -173,15 +173,15 @@ cat <<EOF > /etc/nginx/sites-available/"$domain"
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
|
|
||||||
root /usr/share/nginx/example.com;
|
root /var/www/$domain/html;
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
server_name example.com www.example.com;
|
server_name example.com www.example.com;
|
||||||
location / {
|
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;
|
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
|
||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user