MRatWork Forum by Mustafa Ramadhan - [Resolved] Custom Server Alias

Sponsor:
Server and Web Integrator
Link:
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:

MRatWork Forum | Please login or register. | 2017-11-07, 18:50:46

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- [Resolved] Custom Server Alias

« previous next »

- Print

Pages: [1] Go Down

### Author Topic: [Resolved] Custom Server Alias (Read 801 times)

0 Members and 1 Guest are viewing this topic.

#### donnyset

- Junior Member
- Posts: 7
- Karma: +0/-0

##### [Resolved] Custom Server Alias

« on: 2017-01-11, 08:10:04 »
Selamat siang.
Mau tanya setting server alias di kloxo.
Jadi begini, saya ada 2 folder
/home/donny/domain.com
/home/donny/sub.domain.com
saya mau buat semua domain.com atau www.domain.com ke /home/donny/domain.com
Sedangkan *.domain.com (acak.domain.com, apasaja.domain.com, random.domain.com) ke
/home/donny/sub.domain.com
Saya sudah coba server alias.
Tetapi server alias ini hanya bisa ke 1 folder.
jadi baik domain.com atau apasaja.domain.com semua larinya ke
/home/donny/domain.com
Apakah setting ini memungkinkan?
« Last Edit: 2017-01-12, 08:16:25 by donnyset »
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: Custom Server Alias

« Reply #1 on: 2017-01-11, 09:14:14 »
Sulit diimplementasikan karena *.domain.com adalah sub dari domain.com (sebagaimana halnya www/webmail/cp/stats sub dari domain.com).
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### donnyset

- Junior Member
- Posts: 7
- Karma: +0/-0

##### Re: Custom Server Alias

« Reply #2 on: 2017-01-11, 11:39:39 »
Baik Pak, terima kasih atas jawabannya.
Saya coba cari solusi lain.
Terima kasih
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: Custom Server Alias

« Reply #3 on: 2017-01-11, 11:50:23 »
Setahu saya wordpress multisite bisa melakukan hal seperti ini. Artinya setiap subdomain punya tampilan sendiri-sendiri.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### donnyset

- Junior Member
- Posts: 7
- Karma: +0/-0

##### Re: Custom Server Alias

« Reply #4 on: 2017-01-11, 19:06:24 »
Iya Pak.
Sepertinya bisa kutak katik htaccess pakai mod rewrite. Ini lagi di coba-coba.
Jika bisa, nanti saya share disini juga.
Terima kasih ya Pak.
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: Custom Server Alias

« Reply #5 on: 2017-01-11, 19:39:32 »
Bisa saja hal ini dilakukan melalui customize pada web configs.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### donnyset

- Junior Member
- Posts: 7
- Karma: +0/-0

##### Re: Custom Server Alias

« Reply #6 on: 2017-01-12, 04:41:35 »
Pak,
maksudnya customize web config itu apa ya Pak?
httpd.conf?
Terima kasih
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: Custom Server Alias

« Reply #7 on: 2017-01-12, 05:34:44 »
Infokan dulu 'sh /script/sysinfo'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### donnyset

- Junior Member
- Posts: 7
- Karma: +0/-0

##### Re: Custom Server Alias

« Reply #8 on: 2017-01-12, 05:54:34 »
Ini Pak:
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2017010601
- Web: hiawatha-10.4.0-f.1.mr.el6.x86_64
- PHP: php54s-5.4.45-1.ius.centos6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: demo.demodemo.com
C. Services:
1. MySQL: MariaDB-server-10.0.28-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.centos6.x86_64
- Multiple:
* php52m-5.2.17-102.mr.el6
* php53m-5.3.29-1.ius.centos6
* php54m-5.4.45-1.ius.centos6
* php55m-5.5.38-1.ius.centos6
* php56m-5.6.29-1.ius.el6
* php70m-7.0.14-2.ius.el6
* php71m-7.1.0-3.ius.el6
- Used: php56m-fpm
- Multiple: disable
3. Web Used: apache
- Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.43-2.el6.x86_64
- Nginx: nginx-1.11.8-1.el6.ngx.x86_64
- Apache: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event
- Secondary PHP: off
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
- smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- spam: bogofilter-1.2.4-1.el6.x86_64
7. Stats: awstats
D. Memory:
total used free shared buffers cached
Mem: 490 468 21 0 40 202
-/+ buffers/cache: 226 264
Swap: 0 0 0
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 2.8G 16G 15% /
*** Process Time: 00:00:00:14.14851 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: Custom Server Alias

« Reply #9 on: 2017-01-12, 06:19:23 »
Kirim (via PM ke saya) file .conf dari domain yang anda inginkan yang berada di /opt/configs/apache/conf/domains.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### donnyset

- Junior Member
- Posts: 7
- Karma: +0/-0

##### Re: Custom Server Alias

« Reply #10 on: 2017-01-12, 06:30:07 »
Baik Pak.
sudah saya PM
Terima kasih ya Pak
Logged

#### donnyset

- Junior Member
- Posts: 7
- Karma: +0/-0

##### Re: Custom Server Alias

« Reply #11 on: 2017-01-12, 08:16:07 »
Resolved.
Dibantu Pak Mustafa.
Caranya :
1. Copy file 'domain.com.conf' dan 'sub.domain.com.conf' dari '/opt/configs/apache/conf/domains' ke '/opt/configs/apache/conf/customs'
2. Edit file pada '/opt/configs/apache/conf/customs' dengan mengganti:
- 'ServerAlias www.domain.com *.domain.com' menjadi 'ServerAlias www.domain.com' (pada 'domain.com.conf')
- 'ServerAlias www.sub.domain.com' menjadi 'ServerAlias www.sub.domain.com *.domain.com' (pada 'sub.domain.com.conf'
3. Jalankan 'sh /script/fixweb; sh /script/restart-web'
4. Pastikan untuk 'domain.com' ada 'server alias' berupa '*' sehingga terlihat pada 'dns settings' untuk domain ini
5. Karena ada limitas, sehingga kalau ke www.domain.com juga akan diteruskan ke sub.domain.com, maka ditambahkan .htaccess di sub.domain.com
buat .htaccess di sub.domain.com
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
Terima kasih dibantu ya Pak. Donasi meluncur ya Pak.
Terima kasih kloxo, sudah terbantu setup server bisa kilat.
Logged

- Print

Pages: [1] Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- [Resolved] Custom Server Alias

Top 4 Global Search Engines: Google Bing Baidu Yahoo

- Design By SMFSimple.com
- SMF 2.0.14 | SMF © 2017, Simple Machines

Page created in 0.04 seconds with 17 queries.

Mirror created by MasterkinG32.CoM