Virtual Host Menggunakan Apache di Ubuntu
berikut ini adalah langkah langkahnya
1 install apache
#sudo apt-get install apache2
Secara default, document root apache terletak di /var/www, dan konfigurasi file terletak di /etc/apache2/apache2.conf. Konfigurasi tambahan terletak di /etc/apache2, seperti /etc/apache2/mods- enabled (untuk module apache), /etc/apache2/sites-enabled (untuk virtual hosts), dan /etc/apache2/conf.d.
2. Kita nonaktifkan dulu default virtual host apachenya
#sudo a2dissite default
Kemudian restar apacenya
sudo /etc/init.d/apache restart
Setiap konfigurasi virtual host tersimpan dalam sebuah file yang diberi nama domain dan terletak pada direktori /etc/apache2/sites-available/. Dalam contoh ini, saya akan membuat file dengan basis nama domain ophan.com dan gatot.com
3. pertama, saya buat dulu file ophan.com di /etc/apache2/sites-available
#sudo nano /etc/apache2/sites-available/ophan.com
dan masukkan konfigurasi berikut:
<VirtualHost *:80>
ServerAdmin admin@ophan.com
ServerName ophan.com
ServerAlias www.ophan.com
DocumentRoot /home/www/ophan.com/html/
ErrorLog /home/www/ophan.com/logs/error.log
CustomLog /home/www/ophan.com/logs/access.log combined
</VirtualHost>
4.Selanjutnya membuat file konfigurasi gatot.com
sudo nano /etc/apache2/sites-available/gatot.com
<VirtualHost *:80>
ServerAdmin admin@gatot.com
ServerName gatot.com
ServerAlias www.gatot.com
DocumentRoot /home/www/gatot.com/html/
ErrorLog /home/www/gatot.com/logs/error.log
CustomLog /home/www/gatot.com/logs/access.log combined
</VirtualHost>
5.kemudian membuat direktori yang saya butuhkan:
$sudo mkdir -p /home/www/ophan.com/html
$sudo mkdir /home/www/ophan.com/logs
$sudo mkdir -p /home/www/gatot.com/html
$sudo mkdir /home/www/gatot.com/logs
Sekarang, restart apache untuk mengetahui hasil perubahan
Lakukan reload konfigurasi setelah anda melakukan editing file virtual host
Saturday, 5 October 2013
Friday, 4 October 2013
Power Syndrome
Posted By: Rufaidah-network - 02:14
Power Syndrome
istilah power syndrom adalah orang yg haus kekuasaan apalagi bagi yang akan pensiun pada jabatan itu
namun power syndrom bersifat atau berlaku umum
Ini nampak dan muncul pada orang yang sedang memburu/berhasrat sangat kuat, gila/haus pada suatu kekuasaan/jabatan sehingga khawatir bahkan panik kalo sampai keingininannya tidak tercapai. Maka tidak aneh, perilakunya bisa bermacam-macam dari yang wajar/normal dan sehat seperti kampanye program, lobi, bikin tim sukses dll. Namun ada yang sampai tidak sehat spt menyuap/money politik, fitnah/adu domba, menekan bawahan/ pendukung lain calon, membunuh karakter lawan, menjilat atasan, janji-janji ini itu kepada calon pendukung, merdukun dlsb. karena saking semangatnya, biasanya kalau gagal langsung 'mutung', patah nyali, isolasi diri dari komunitas semula dll. Tetapi kalo berhasil meraih keuasaan sikapnya menjadi otoriter, arogan, korup dan lali purwaduksina (ibarat, kacang lupa akan kulitnya). Istilah di masyarakat "mbalekne modal".
Penyebabnya seperti di bawah ini
- Kehilangan harga diri; hilangnya jabatan menyebabkan hilangnya perasaan atas pengakuan diri.
- Kehilangan fungsi eksekutif; fungsi yang memberikan kebanggaan diri.
- Kehilangan perasaan sebagai orang yang memiliki arti dalam kelompok tertentu.
- Kehilangan orientasi kerja.
- Kehilangan sumber penghasilan terkait dengan jabatan terdahulu.
Biasanya power syndrome banyak menyerang seseorang yang baru pensiun, terkena PHK, seseorang yang pernah mengalami kecacatan karena kecelakaan, menjelang tua atau orang yang turun jabatan, dsb. Hal ini semakin diperparah dengan kondisi mindset individu yang mengatasnamakan jabatan sebagai sesuatu yang sangat membanggakan pada dirinya. Semua ini bisa membuat individu pada frustasi dan menggiring pada gangguan psikologis, fisik serta sosial.
Kesimpulanya sebagai berikut
Power Syndrome adalah gejala-gejala setelah berakhirnya kekuasaan. Gejala ini umumnya terjadi pada orang-orang yang tadinya mempunyai kekuasaan, namun ketika sudah tidak berkuasa lagi, seketika itu terlihat gejala-gejala kejiwaan yang biasanya bersifat negatif atau emosi yang kurang stabil. Faktor-faktor penyebab Power Syndrome :
Pensiun, PHK atau pudarnya ketenaran seorang artis adalah salah satu dari faktor tersebut, kejadian traumatik juga misalnya kecelakaan yang dialami oleh seorang pembalap, yang menyebabkan kakinya harus diamputasi, powers syndrome hampir selalu dialami terutama orang yang sudah lanjut usia dan pensiun dari pekerjaannya
Power Syndrome adalah gejala-gejala setelah berakhirnya kekuasaan. Gejala ini umumnya terjadi pada orang-orang yang tadinya mempunyai kekuasaan, namun ketika sudah tidak berkuasa lagi, seketika itu terlihat gejala-gejala kejiwaan yang biasanya bersifat negatif atau emosi yang kurang stabil. Faktor-faktor penyebab Power Syndrome :
Pensiun, PHK atau pudarnya ketenaran seorang artis adalah salah satu dari faktor tersebut, kejadian traumatik juga misalnya kecelakaan yang dialami oleh seorang pembalap, yang menyebabkan kakinya harus diamputasi, powers syndrome hampir selalu dialami terutama orang yang sudah lanjut usia dan pensiun dari pekerjaannya
Mudah mudahan tidak terjadi di daerahku
Sunday, 29 September 2013
Removing Squid proxy cache server manually
Posted By: Rufaidah-network - 21:38
Removing Squid proxy cache server manually
If you want to delete an object in the Squid proxy cache server, which you can do is the manual way, as we will discuss how the machine memaintenance our proxy, the following can be run manually clear the cache in squid proxy.
Removing Squid proxy cache manually :
1. Stop the running squid process
# /etc/init.d/squid stop
2. Clean all swap squid cache directory
here I have a partition cache5
root@Lpse:/home/ophan# rm -rf /cache1/*
root@Lpse:/home/ophan# rm -rf /cache2/*
root@Lpse:/home/ophan# rm -rf /cache3/*
root@Lpse:/home/ophan# rm -rf /cache4/*
root@Lpse:/home/ophan# rm -rf /cache5/*
3 Make / buil return swap squid cache directory
# squid -z
4. Running back squid proxy server
# /etc/init.d/squid start
If you want to delete an object in the Squid proxy cache server, which you can do is the manual way, as we will discuss how the machine memaintenance our proxy, the following can be run manually clear the cache in squid proxy.
Removing Squid proxy cache manually :
1. Stop the running squid process
# /etc/init.d/squid stop
2. Clean all swap squid cache directory
here I have a partition cache5
root@Lpse:/home/ophan# rm -rf /cache1/*
root@Lpse:/home/ophan# rm -rf /cache2/*
root@Lpse:/home/ophan# rm -rf /cache3/*
root@Lpse:/home/ophan# rm -rf /cache4/*
root@Lpse:/home/ophan# rm -rf /cache5/*
3 Make / buil return swap squid cache directory
# squid -z
4. Running back squid proxy server
# /etc/init.d/squid start
Install Proxy Lusca di ubuntu 12.04
Posted By: Rufaidah-network - 20:24
saya anggap anda semua sudah berhasil install ubuntu 12.04.2 lts 64bit di komputer masing-masing
masuk ke rootnya
### update ubuntunya dan install packet2 yang dibutuhkan untuk lusca_fmi
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install squid -y
apt-get install squid squidclient squid-cgi -y
apt-get install gcc -y
apt-get install build-essential -y
apt-get install sharutils -y
apt-get install ccze -y
apt-get install libzip-dev -y
apt-get install automake1.9 -y
apt-get install libfile-readbackwards-perl
### remove squid3 yang ikut terinstall saat update ubuntu
apt-get remove squid3
apt-get remove --purge squid3
### install lusca_fminya
wget http://proxy-ku.googlecode.com/files/LUSCA_FMI.tar.gz
tar xzvf LUSCA_FMI.tar.gz
cd LUSCA_FMI/
make distclean
### compile Lusca_FMInya
./configure
--prefix=/usr
--exec_prefix=/usr
--bindir=/usr/sbin
--sbindir=/usr/sbin
--libexecdir=/usr/lib/squid
--sysconfdir=/etc/squid
--localstatedir=/var/spool/squid
--datadir=/usr/share/squid
--enable-http-gzip
--enable-async-io=24
--with-aufs-threads=24
--with-pthreads
--enable-storeio=aufs
--enable-linux-netfilter
--enable-arp-acl
--enable-epoll
--enable-removal-policies=heap
--with-aio --with-dl
--enable-snmp
--enable-delay-pools
--enable-htcp
--enable-cache-digests
--disable-unlinkd
--enable-large-cache-files
--with-large-files
--enable-err-languages=English
--enable-default-err-language=English
--with-maxfd=65536
make && make install
### install perintah squid autostart dan stop
cd /etc/init.d/
wget http://proxy-ku.googlecode.com/files/squid
### beri permision untuk squid autostart dan stopnya
chmod +x /etc/init.d/squid
/etc/init.d/squid stop
### setting squid.conf dan storeurl.pl
cd /etc/squid/
copy squid.conf yang di http://www.facebook.com/download/preview/429491200494513
ambil storeurl.pl nya di https://tempat-sampah.googlecode.com/svn-history/r59/storeurl.pl
### beri permision untuk squid.conf dan storeurl.pl
chown proxy:proxy /etc/squid/squid.conf
chmod 777 /etc/squid/squid.conf
chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl
### beri permision cache nya
chown proxy:proxy /cache
chmod 777 /cache
kalo ada banyak direcktory cachenya tinggal ditambahin aja cache1 atau cache2 dan seterusnya
### buat access.log cache.log dan yt.log nya
cd /var/log/
mkdir squid
cd /var/log/squid/
touch access.log
touch cache.log
touch yt.log
chown proxy:proxy access.log
chown proxy:proxy cache.log
chown proxy:proxy yt.log
chmod 777 access.log
chmod 777 cache.log
chmod 777 yt.log
### build squidnya
squid -f /etc/squid/squid.conf -z
squid -NDd1
/etc/init.d/squid restart
### reboot squidnya
reboot
### setting nat di mikrotiknya
# ip proxy : 192.168.0.2
# ip client/lan : 192.168.1.1/24
/ip firewall address
add list=proxy-list address=192.168.0.0/24 (ip subnet proxy)
/ip firewall nat
add chain=dstnat src-address=192.168.1.0/24 (ip subnet client/lan) protocol=tcp dst-port=80,8080 src-address-list=!proxy action=dst-nat to-address=192.168.0.2 to-port=3128 comment="Direct to Proxy"
/ip firewall mangle
add chain=forward DSCP-Tos=12 action=mark-packet new-packet-mark=Proxy-HIT
/queues
add name=proxy-hit parent=global-out packet-mark=Proxy-HIT queue-type=default priority=3 max-limit=50M
### setelah reboot pc ubuntu cek apakah squid sudah jalan
/etc/init.d/squid status
tail -f /var/log/squid/access.log | ccze
masuk ke rootnya
### update ubuntunya dan install packet2 yang dibutuhkan untuk lusca_fmi
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install squid -y
apt-get install squid squidclient squid-cgi -y
apt-get install gcc -y
apt-get install build-essential -y
apt-get install sharutils -y
apt-get install ccze -y
apt-get install libzip-dev -y
apt-get install automake1.9 -y
apt-get install libfile-readbackwards-perl
### remove squid3 yang ikut terinstall saat update ubuntu
apt-get remove squid3
apt-get remove --purge squid3
### install lusca_fminya
wget http://proxy-ku.googlecode.com/files/LUSCA_FMI.tar.gz
tar xzvf LUSCA_FMI.tar.gz
cd LUSCA_FMI/
make distclean
### compile Lusca_FMInya
./configure
--prefix=/usr
--exec_prefix=/usr
--bindir=/usr/sbin
--sbindir=/usr/sbin
--libexecdir=/usr/lib/squid
--sysconfdir=/etc/squid
--localstatedir=/var/spool/squid
--datadir=/usr/share/squid
--enable-http-gzip
--enable-async-io=24
--with-aufs-threads=24
--with-pthreads
--enable-storeio=aufs
--enable-linux-netfilter
--enable-arp-acl
--enable-epoll
--enable-removal-policies=heap
--with-aio --with-dl
--enable-snmp
--enable-delay-pools
--enable-htcp
--enable-cache-digests
--disable-unlinkd
--enable-large-cache-files
--with-large-files
--enable-err-languages=English
--enable-default-err-language=English
--with-maxfd=65536
make && make install
### install perintah squid autostart dan stop
cd /etc/init.d/
wget http://proxy-ku.googlecode.com/files/squid
### beri permision untuk squid autostart dan stopnya
chmod +x /etc/init.d/squid
/etc/init.d/squid stop
### setting squid.conf dan storeurl.pl
cd /etc/squid/
copy squid.conf yang di http://www.facebook.com/download/preview/429491200494513
ambil storeurl.pl nya di https://tempat-sampah.googlecode.com/svn-history/r59/storeurl.pl
### beri permision untuk squid.conf dan storeurl.pl
chown proxy:proxy /etc/squid/squid.conf
chmod 777 /etc/squid/squid.conf
chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl
### beri permision cache nya
chown proxy:proxy /cache
chmod 777 /cache
kalo ada banyak direcktory cachenya tinggal ditambahin aja cache1 atau cache2 dan seterusnya
### buat access.log cache.log dan yt.log nya
cd /var/log/
mkdir squid
cd /var/log/squid/
touch access.log
touch cache.log
touch yt.log
chown proxy:proxy access.log
chown proxy:proxy cache.log
chown proxy:proxy yt.log
chmod 777 access.log
chmod 777 cache.log
chmod 777 yt.log
### build squidnya
squid -f /etc/squid/squid.conf -z
squid -NDd1
/etc/init.d/squid restart
### reboot squidnya
reboot
### setting nat di mikrotiknya
# ip proxy : 192.168.0.2
# ip client/lan : 192.168.1.1/24
/ip firewall address
add list=proxy-list address=192.168.0.0/24 (ip subnet proxy)
/ip firewall nat
add chain=dstnat src-address=192.168.1.0/24 (ip subnet client/lan) protocol=tcp dst-port=80,8080 src-address-list=!proxy action=dst-nat to-address=192.168.0.2 to-port=3128 comment="Direct to Proxy"
/ip firewall mangle
add chain=forward DSCP-Tos=12 action=mark-packet new-packet-mark=Proxy-HIT
/queues
add name=proxy-hit parent=global-out packet-mark=Proxy-HIT queue-type=default priority=3 max-limit=50M
### setelah reboot pc ubuntu cek apakah squid sudah jalan
/etc/init.d/squid status
tail -f /var/log/squid/access.log | ccze
Mikrotik 4 WAN Load Balancing using PCC
Posted By: Rufaidah-network - 00:36
/ip address
add address=192.168.11.1/24
network=192.168.0.0 broadcast=192.168.0.255 interface=Lan
add address=192.168.11.2/24
network=192.168.1.0 broadcast=192.168.1.255 interface=PUBLIC1
add address=192.168.12.2/24
network=192.168.2.0 broadcast=192.168.2.255 interface=PUBLIC2
add address=192.168.13.2/24
network=192.168.3.0 broadcast=192.168.3.255 interface=PUBLIC3
add address=192.168.14.2/24
network=192.168.4.0 broadcast=192.168.4.255 interface=PUBLIC4
/ip firewall mangle
add chain=input
in-interface=PUBLIC1 action=mark-connection new-connection-mark=PUBLIC1_conn
add chain=input
in-interface=PUBLIC2 action=mark-connection new-connection-mark=PUBLIC2_conn
add chain=input
in-interface=PUBLIC3 action=mark-connection new-connection-mark=PUBLIC3_conn
add chain=input
in-interface=PUBLIC4 action=mark-connection new-connection-mark=PUBLIC4_conn
add chain=output
connection-mark=PUBLIC1_conn action=mark-routing new-routing-mark=to_PUBLIC1
add chain=output
connection-mark=PUBLIC2_conn action=mark-routing new-routing-mark=to_PUBLIC2
add chain=output
connection-mark=PUBLIC3_conn action=mark-routing new-routing-mark=to_PUBLIC3
add chain=output
connection-mark=PUBLIC4_conn action=mark-routing new-routing-mark=to_PUBLIC4
add chain=prerouting
dst-address=192.168.1.0/24 action=accept in-interface=Lan
add chain=prerouting
dst-address=192.168.2.0/24 action=accept in-interface=Lan
add chain=prerouting
dst-address=192.168.3.0/24 action=accept in-interface=Lan
add chain=prerouting
dst-address=192.168.4.0/24 action=accept in-interface=Lan
add chain=prerouting
dst-address-type=!lan in-interface=Lan
per-connection-classifier=both-addresses-and-ports:4/0 action=mark-connection
new-connection-mark=PUBLIC1_conn passthrough=yes
add chain=prerouting
dst-address-type=!lan in-interface=Lan
per-connection-classifier=both-addresses-and-ports:4/1 action=mark-connection
new-connection-mark=PUBLIC2_conn passthrough=yes
add chain=prerouting
dst-address-type=!lan in-interface=Lan
per-connection-classifier=both-addresses-and-ports:4/2 action=mark-connection
new-connection-mark=PUBLIC3_conn passthrough=yes
add chain=prerouting
dst-address-type=!lan in-interface=Lan
per-connection-classifier=both-addresses-and-ports:4/3 action=mark-connection
new-connection-mark=PUBLIC4_conn passthrough=yes
add chain=prerouting
connection-mark=PUBLIC1_conn in-interface=Lan action=mark-routing
new-routing-mark=to_PUBLIC1
add chain=prerouting
connection-mark=PUBLIC2_conn in-interface=Lan action=mark-routing
new-routing-mark=to_PUBLIC2
add chain=prerouting
connection-mark=PUBLIC3_conn in-interface=Lan action=mark-routing
new-routing-mark=to_PUBLIC3
add chain=prerouting
connection-mark=PUBLIC4_conn in-interface=Lan action=mark-routing
new-routing-mark=to_PUBLIC4
/ip route
add
dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_PUBLIC1
check-gateway=ping
add
dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_PUBLIC2
check-gateway=ping
add
dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=to_PUBLIC3
check-gateway=ping
add
dst-address=0.0.0.0/0 gateway=192.168.4.1 routing-mark=to_PUBLIC4
check-gateway=ping
add
dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
add
dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping
add dst-address=0.0.0.0/0
gateway=192.168.3.1 distance=3 check-gateway=ping
add
dst-address=0.0.0.0/0 gateway=192.168.4.1 distance=4 check-gateway=ping
/ip firewall nat
add chain=srcnat
out-interface=PUBLIC1 action=masquerade
add chain=srcnat
out-interface=PUBLIC2 action=masquerade
add chain=srcnat
out-interface=PUBLIC3 action=masquerade
add chain=srcnat
out-interface=PUBLIC4 action=masquerade
Subscribe to:
Comments (Atom)
Popular
Tags
Videos