Konfigurasi Nginx Untuk Tambah Addon Domain

server {
    listen 80;
    server_name domain.com www.domain.com;

    root /var/www/domain.com;
    index index.php index.html;

    client_max_body_size 100M;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;
    }

    location ~ /\.ht {
        deny all;
    }
}

Simpan file di /etc/nginx/sites-available/namadomain.com

kemudian link

ln -s /etc/nginx/sites-available/namadomain.com /etc/nginx/sites-enable/namadomain.com

Previous Post

Leave a Reply

Valerie Rodriguez

Dolor sit amet, adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Latest Posts

Software Services

Good draw knew bred ham busy his hour. Ask agreed answer rather joy nature admire.

Empowering Your Business with Cutting-Edge Software Solutions for a Digital Future

Meant balls it if up doubt small purse. Required his you put the outlived
answered position. An pleasure exertion if believed provided to.
All led out world these music while asked.

Join Our Community

We will only send relevant news and no spam

You have been successfully Subscribed! Ops! Something went wrong, please try again.