aldis Posted October 14, 2007 Report Share Posted October 14, 2007 Caur httpd_vhosts.conf es sapratu kā var uzlikt piemēram redirect kādam folderim nosakot to pēc ienākošā DNS! <VirtualHost *:80> ServerAdmin email@email.com DocumentRoot "C:/www/WEBs" ServerName webs.adrese.lv ServerAlias webs.adrese.lv </VirtualHost> <VirtualHost *:80> ServerAdmin email@email.com DocumentRoot "C:/www/huhu" ServerName huhu.adrese.lv ServerAlias huhu.adrese.lv </VirtualHost> Bet es programmēju savu serveri [uz winsock balstitu], loti vajadzigs butu ka ietu TRIATEL.. u.t.t.. lietotajiem kam tikai atlauts 80 ports! Bet uz 80 porta man jau staav apache server! TĀ tad... man jautajums butu taads.. vai es caur apache serveri varetu forvardeet ienakoso Klienta informaciju uz savu progoto serveri.. kursh piemeram stav uz 5656 porta! Link to comment Share on other sites More sharing options...
Roze Posted October 14, 2007 Report Share Posted October 14, 2007 Jā var.. Tam jaizmanto mod_proxy modulis (jabūt ielādētam arī proxy_http ) <VirtualHost *:80> ServerName kautkas.adrese.lv ProxyPass / http://127.0.0.1:5656/ ProxyPassReverse / http://127.0.0.1:5656/ </VirtualHost> Attiecīgi visi pieprasījumu uz konkrēto virtualhostu (kautkas.adrese.lv) tiks forwardēti uz tavu webserveri kas klausās uz 5656 porta.. Link to comment Share on other sites More sharing options...
aldis Posted October 17, 2007 Author Report Share Posted October 17, 2007 Paldies roze! Meeginashu! Itkaa jau tas nav web servers ko taisu, vnk.. ja klient progai vajadzes jams apachem piekonektesies liidziigi kaa k-kaads interneta browsers! Bet informacija straumesies savadaka izpildijumaa! :) Link to comment Share on other sites More sharing options...
Recommended Posts