'Apache-RevProxNGINX-Installer.sh' updaten
This commit is contained in:
@@ -70,7 +70,7 @@ systemctl reload apache2
|
||||
|
||||
mkdir -p /var/www/"$domain"/public_html
|
||||
cat <<EOF > /etc/apache2/sites-available/"$domain".conf
|
||||
<VirtualHost *:80>
|
||||
<VirtualHost *:8080>
|
||||
ServerAdmin $email
|
||||
ServerName $domain
|
||||
ServerAlias www.$domain
|
||||
@@ -126,7 +126,7 @@ server {
|
||||
try_files \$uri \$uri/ /index.php;
|
||||
}
|
||||
|
||||
location /.php\$ {
|
||||
location ~ \.php$ {
|
||||
proxy_pass http://$server_ip:8080;
|
||||
proxy_set_header Host \$host;
|
||||
proxy_set_header X-Real-IP \$remote_addr;
|
||||
|
||||
Reference in New Issue
Block a user