Tekil Mesaj gösterimi
  #2 (permalink)  
Alt 28.11.07, 05:14 PM
Tahsin ALTAY - ait Kullanıcı Resmi (Avatar)
Tahsin ALTAY Tahsin ALTAY isimli Üye şimdilik offline konumundadır
SysAdmin
 
Üyelik tarihi: May 2007
Mesajlar: 451
Tecrübe Puanı: 43
Tahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond reputeTahsin ALTAY has a reputation beyond repute
Çok güzel bir durum otomatik olarak ip ye index atıyorsun yani Eğer bundan kurtulmak istiyorsan hemen yapman gereken şey şu /usr/local/apache/conf/httpd.conf (senin cpanel kullanıcısı olduğun aklım var değilsen bu dosyayı bul) dosyasını aç


siteler böyle bloklarda saklanıyor ya bunu bul göreceksin ki ip den açılan ilk bu site. Yani ilk virtualhost olarak geçen site bunu önlemek için ne edeceğiz

<VirtualHost 62.xx.xx.xx>
ServerAlias www.xxxx.xxx.tr
ServerAdmin webmaster@xxxx.xxx.tr
DocumentRoot /home/xxx/public_html
ServerName xxx.xxxx.tr
..
..
..
..
..
..
</VirtualHost>

NameVirtualHost 62.xx.xx.xx:80

<VirtualHost 62.xx.xx.xx>
ServerName xxxx.xxxxxx.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>

<Location /whm-server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
ExtendedStatus On


bu kodları ekleyeceğiz. Nereye? Hemen o bloğun üzerine. Peki son hali nasıl olacak.

NameVirtualHost 62.xx.xx.xx:80

<VirtualHost 62.xx.xx.xx>
ServerName xxxx.xxxxxx.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>

<Location /whm-server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
ExtendedStatus On

<VirtualHost 62.xx.xx.xx>
ServerAlias www.xxxx.xxx.tr
ServerAdmin webmaster@xxxx.xxx.tr
DocumentRoot /home/xxx/public_html
ServerName xxx.xxxx.tr
..
..
..
..
..
..
</VirtualHost>


kaydedip çık ve apache reSTART yap sorunun artık çözülmüş olmalı
Alıntı ile Cevapla