Hello, I am using Apache2045 I want to use 2 host names with apache : http://mainhost.firm.com and http://host2.firm.com
When a client type http://mainhost.firm.com on his browser, i want my Apache to serve from "apache_home/htdocs/" directory. When a client type http://host2.firm.com on his browser, i want my Apache to serve from "apache_home/htdocs/host2/" directory. To achieve this goal, i use name based virtual hosting (is this wright choice?). I added the lines, below, to httpd.conf file. It doesnt work. What is wrong? Thanks and best regards, Emre KUNT NameVirtualHost 10.11.91.55 <VirtualHost *> DocumentRoot apache_home/htdocs ServerName mainhost.firm.com ErrorLog logs/mainhost.firm.com_error.log CustomLog logs/mainhost.firm.com_access.log common </VirtualHost> <VirtualHost *> DocumentRoot apache_home/htdocs/host2 ServerName host2.firm.com ErrorLog logs/host2.firm.com_error.log CustomLog logs/host2.firm.com_access.log common </VirtualHost> =================================================================== Bu e-mail mesaji ve ekleri, isimleri yazili alicilar disindaki kisilere aciklanmamasi, dagitilmamasi ve iletilmemesi gereken kisiye ozel ve gizli bilgiler icerebilir. Mesajin muhatabi degilseniz lutfen gonderici ile irtibat kurunuz, mesaj ve eklerini siliniz. E-mail sistemlerinin tasidigi guvenlik risklerinden dolayi, mesajlarin gizlilikleri ve butunlukleri bozulabilir, mesaj virus icerebilir. Bilinen viruslere karsi kontrolleri yapilmis olarak yollanan mesajin sisteminizde yaratabilecegi olasi zararlardan Sirketimiz (T.H.Y. A.O.) sorumlu tutulamaz. This email and its attachments may contain private and confidential information intended for the use of the addressee only, which should not be announced, copied or forwarded. If you are not the intended recipient, please contact the sender, delete the message and its attachments. Due to security risks of email systems, the confidentiality and integrity of the message may be damaged, the message may contain viruses. This message is scanned for known viruses and our Company (Turkish Airlines Inc.) will not be liable for possible system damages caused by the message.