labais Posted December 21, 2003 Report Share Posted December 21, 2003 Paskaidrojiet ka lai panaak, ka panaakta online subdomeenu izveide Liidziigi ir te http://free.eclub.lv/?eclub=reg ka online reziimaa tiek izveidots subdomeens? Link to comment Share on other sites More sharing options...
Roze Posted December 21, 2003 Report Share Posted December 21, 2003 Vispaar jau domaaju ka vinji neko nemaina apache configaa (lai gan kas zin), jo tas principaa daraas savadaak.. Vai nu tiek customizeets pats webserveris (mainiita source utt) vai arii teiksim izmantotas taa iespeejas. Apache gadijumaa tas ir mod_rewrite http://httpd.apache.org/docs/misc/rewriteguide.html : Taa kaa saits pats uz briidi bija down (noslodze) (vismaz es netiku normaali klaat) tad paarposteeshu attieciigo sample risinaajumu sheit: Vaia rii Google keshaa var palasiit http://66.102.11.104/search?q=cache:rvesIf...&hl=en&ie=UTF-8 Virtual User Hosts Description: Assume that you want to provide www.username.host.domain.com for the homepage of username via just DNS A records to the same machine and without any virtualhosts on this machine. Solution: For HTTP/1.0 requests there is no solution, but for HTTP/1.1 requests which contain a Host: HTTP header we can use the following ruleset to rewrite http://www.username.host.com/anypath internally to /home/username/anypath: RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.[^.]+\.host\.com$ RewriteRule ^(.+) %{HTTP_HOST}$1 [C] RewriteRule ^www\.([^.]+)\.host\.com(.*) /home/$1$2 Taalaak jau jaaskataas kaada ir DNS konfiguraacija: 1) var teiksim pielikt visus *.domeens.lv lai resolveetos uz muusu webserveri (manupraat vienkaarshaakais) 2) attieciigi ar php (vai vienalga ko citu) mainam savu zone failu un rehashojam dns serveri.. Link to comment Share on other sites More sharing options...
Recommended Posts