mex Posted December 21, 2007 Report Share Posted December 21, 2007 Pirms 2 nedēļām es sev izveidoju Vhostus un oo.lv ! Tas izskatās aptuveni tā lapa.oo.lv , lol.lapa.oo.lv. Esmu redzējis daudz pamācības par šito lietiņu, bet nevienas rezultāts nedarbojas. Kā izveidot Virtual Host uz Windows (priekš AppServ) Ejam uz http://oo.lv un reģistrējamies. Izveidojam uz savas IP subdomainu no oo.lv, bet tā lai būtu ieķeksēts Wildcard. Tagad ejam uz C:\AppServ\Apache2.2\conf un atveram failu httpd.conf ar notepad (es vēru ar notepad 2, jo tad var atrast viegli rindiņas ciparus ) httpd.conf failā atrodam rindiņu (manā gadījumā) 561 vai arī vnk nospied Ctrl+F un sameklējam rindiņu #Include conf/extra/httpd-vhosts.conf #Include conf/extra/httpd-vhosts.conf aizvietojam ar Include conf/extra/httpd-vhosts.conf Tagad saglabā failu httpd.conf un ver ciet! Tagad dodies uz C:\AppServ\Apache2.2\conf\extra un atver, ar notepad, failu httpd-vhosts.conf Tajā failā vienkārši visu izdzēs ārā! Pilnīgi visu kas tur rakstīts! Un ieraxti tur rindiņu NameVirtualHost *:80 Pēc rindiņas NameVirtualHost *:80 ieraksti: <VirtualHost *:80> ServerName lapa.oo.lv DocumentRoot "C:/appserv/www" <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory "C:/appserv/www"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Tagad mums darbojas subdomains lapa.oo.lv, kura lasīs failus no foldera C:/appserv/www Un pēc tās garās penteres uzdrukā: <VirtualHost *:80> ServerName kkas.lapa.oo.lv DocumentRoot "C:/appserv/kkas" <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory "C:/appserv/kkas"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Tagad darbojas sub,subdomains kkas.lapa.oo.lv, kurš lasīs failus no foldera C:/appserv/kkas Saglabājam failu httpd-vhosts.conf un veram ciet ! Ejam uz folderi C:\AppServ\Apache2.2 un palaižam failu apache_servicefix.bat Tā tu vari pievienot tik cik daudz gribi tos virtual hotus. Ja kkas nesanāk, tad PM man, jeb labāk meklē mani skype (skype lietotājvārds manā sigā) Vēlu veiksmi ! Link to comment Share on other sites More sharing options...
theNTH Posted December 21, 2007 Report Share Posted December 21, 2007 Monstrs. Paldies Link to comment Share on other sites More sharing options...
mex Posted December 21, 2007 Author Report Share Posted December 21, 2007 NPK Starp citu, pat officiālajā appserv mājas lapā bij kkas samurgots par šito un neko jēdzīgu uzbliezt nevarēja Link to comment Share on other sites More sharing options...
Kiwix Posted December 21, 2007 Report Share Posted December 21, 2007 (edited) Es Tev ieteiktu veidot pamācības, kuras ir pieprasītas. Kas tagad būs, ja katrs lo** liks piem. pamācību kā uzlikt skype vai ko tml.... Edited December 21, 2007 by kiwix Link to comment Share on other sites More sharing options...
kaza4ok Posted December 21, 2007 Report Share Posted December 21, 2007 kiwix, idiot pasaki vēl, ka tu šito jau zināji, kau jau nokačāji AppServ va ne? P.S. norm pamācība Link to comment Share on other sites More sharing options...
theNTH Posted December 21, 2007 Report Share Posted December 21, 2007 pieprasītas. Kas tagad būs, ja katrs lo** liks piem. pamācību kā uzlikt skype vai ko tml.... Itkā tu macēji likt vhost, vai ne? Link to comment Share on other sites More sharing options...
lazda2 Posted December 21, 2007 Report Share Posted December 21, 2007 (edited) big thanks!! nemaz nezinaaju ka sito uz oo.lv var pat uzlikt!! liels paldies Edited December 21, 2007 by lazda2 Link to comment Share on other sites More sharing options...
Kiwix Posted December 21, 2007 Report Share Posted December 21, 2007 P.S. norm pamācība Pamācība ir laba.. bet to var arī atrast @ google.lv Link to comment Share on other sites More sharing options...
lazda2 Posted December 21, 2007 Report Share Posted December 21, 2007 @ gogle.lv viss buus anglu valodaa un ne tik labi izskaidrots!! vieniigais kur latviesu valodaa vareeja buut sii pamaaciiba tas ir php.lv forums Link to comment Share on other sites More sharing options...
DeimoN Posted December 21, 2007 Report Share Posted December 21, 2007 hm, piemeeram, var sataisiit taa ka man uz cita PC ir tas vhosts sataisiits, bet es vinnu varu lietot uz sava PC ? Link to comment Share on other sites More sharing options...
RavenHolm Posted December 21, 2007 Report Share Posted December 21, 2007 Domēnam ir jābūt piesaistītam servera IP ja to tu domāji. Link to comment Share on other sites More sharing options...
eM` Posted December 21, 2007 Report Share Posted December 21, 2007 (edited) kautko šādu meklēju pirms pusotra gada. Janhouse blogā atradu Un šis nav nekāds sūds, bet gan laba lieta tiem, kuri nodarbojās ar kautko vairāk, kā mājaslapu un cs serveri. Edited December 21, 2007 by eM` Link to comment Share on other sites More sharing options...
lazda2 Posted December 22, 2007 Report Share Posted December 22, 2007 sitas noder statiem baniem varbuut arii forumam vai arii taisiit subdomainus par $ Link to comment Share on other sites More sharing options...
Chiky Posted December 23, 2007 Report Share Posted December 23, 2007 ko piemeeram darit ja tev ir mainiiga ip adrese ? Link to comment Share on other sites More sharing options...
Nou-N Posted December 23, 2007 Report Share Posted December 23, 2007 Heiyaa, plds... Tiešām noderēēs ! Link to comment Share on other sites More sharing options...
mex Posted December 23, 2007 Author Report Share Posted December 23, 2007 (edited) Jā var ! <VirtualHost (IP adrese kurai būs virsū subdomains):80> ServerName haiz.wormyROX.lv DocumentRoot "C:/appserv/www" <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory "C:/appserv/www"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Hmm. Nesēdz ārā ne PC, ne modemu ! Edited December 23, 2007 by mex Link to comment Share on other sites More sharing options...
DeimoN Posted December 23, 2007 Report Share Posted December 23, 2007 tnx Link to comment Share on other sites More sharing options...
mex Posted December 23, 2007 Author Report Share Posted December 23, 2007 Kādu jums vajag nākamo pamācību ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now