apache de bir domaine virtualhost tanımı yapabiliyorum ama ip adresine göre
virtualhost tanımı yapamadı tabi ne demek istediğimi anlamadınız eminim
aşağıya örnek veriyorum.

 

Normal de bir domaine virtualhost tanımı için

<VirtualHost *:80>
        ServerName xxx.com
        DocumentRoot /home/xxx/xxx.com
        ServerAlias www.xxx.com 
        DirectoryIndex index.html index.htm index.shtml
        CustomLog    /var/log/domain-access.log combined
        ErrorLog logs/error_log
</VirtualHost>
 

Yapmak istediğim tanım ise şöyle

 

<VirtualHost *:80>
        ServerName 192.168.10.200/xxx
        DocumentRoot /home/xxx
        ServerAlias realIP/xxx <http://www.parahat.com> 
        DirectoryIndex index.html index.htm index.shtml
        CustomLog    /var/log/domain-access.log combined
        ErrorLog logs/error_log
</VirtualHost>

 

Apache web sunucumun doc root u ise /usr/local/www ben bilerek dosyaları
buraya koymuyorum /home/xxx klasorune kaydum /usr/local/www ye koydugum da
sorun yok 

Cevap