<*VirtualHost* 192.168.10.200:80> gibi /xxx içinde



Alias /xxx /home/okan/domain gibi...



On 2/4/07, Serdar EMIRCI <[EMAIL PROTECTED]> wrote:

 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




--
http://www.knyksl.com/

Cevap