(Ask) Menambah Domain di Wordpress + Nginx

Discussion in 'VPS (Virtual Private Server)' started by Otong, 17 Aug 2016.

Thread Status:
Not open for further replies.
  1. Otong

    Otong Beginner 2.0

    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Maaf Tuan numpang nanya. Cara menambah domain di Wordpress yang pakai Nginx bagaimana ya Tuan ? Contohnya :
    Domain utama : example.com
    Domain alternatif : example.net
    Mohon bantuannya ya Tuan. Terima kasih :)

    Tambahan :
    Saya menggunakan EasyEngine untuk menginstal Wordpress di VPS
     
  2. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,648
    Likes Received:
    753
    Trophy Points:
    113
    Belum pernah pakai EasyEngine
    Tapi teknisnya ini cukup bermain di vhost saja atau server blok nya nginx
     
  3. heru nugroho

    heru nugroho Beginner 2.0

    Messages:
    41
    Likes Received:
    2
    Trophy Points:
    8
    newbie bantu jawab ya
    bisa di edit nginx config untuk domain itu Tuan. biasanya ada di /etc/nginx/site-enabled/example.com.conf atau /etc/nginx/conf.d/example.com.conf
    tinggal tambahkan saja yang tadinya hanya
    Code:
    server_name example.com;
    menjadi
    Code:
    server_name example.com example.net;
    CMIIW
     
  4. Otong

    Otong Beginner 2.0

    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Terima kasih Tuan. Saya paham sekarang. Selain itu, apakah ada yang harus diatur lagi ?
     
  5. Otong

    Otong Beginner 2.0

    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Garis besarnya yang diatur di Vhost atau Server Blok Nginx bagaimana ya Tuan ? Terima kasih sebelumnya.
     
  6. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,648
    Likes Received:
    753
    Trophy Points:
    113
    Kurang lebih misalnya :
    nano /etc/nginx/sites-available/example.com
    Code:
    server {
               listen 80;
               server_name example.com;
               return 301 http://www.example.com$request_uri;
    }
    server {
               listen 80 default_server;
               root /home/example/public_html;
               index index.php index.html index.html;
               server_name www.example.com;
               access_log /home/example/logs/access.log;
               error_log /home/example/logs/error.log;
    location / {
                   try_files $uri $uri/ /index.php?$args;
                  }
    ------
    ------
    ------
    }
    
     
  7. Otong

    Otong Beginner 2.0

    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Terima kasih Tuan. Saya coba dulu. Semoga tidak terjadi error :113:
     
  8. idnix

    idnix Hosting Guru

    Messages:
    1,003
    Likes Received:
    189
    Trophy Points:
    63
    mapping domain maksudnya ya
     
  9. Otong

    Otong Beginner 2.0

    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Intinya Addon domain kalau pakai cPanel Tuan :4:
    Bagaimana ya Tuan caranya ?
     
  10. idnix

    idnix Hosting Guru

    Messages:
    1,003
    Likes Received:
    189
    Trophy Points:
    63
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...