Harijs Posted January 11, 2010 Report Share Posted January 11, 2010 (edited) Tātad kadu laiku man stāv majaslapa, bet es gribu atvērt velvienu uz šī paša pc ar citu domenu kā to izdarīt ? (piemeram 1 majaslapa ir mapē htdocs otra htdocs2 un kur visu nokonigurēt lai strādātu ? ir xampp un apache. 100% ka atbilde jau ir kautkur forumā , es pēc ilgas meklēšanas tā arī to neatradu. Edited January 11, 2010 by Harijs Quote Link to comment Share on other sites More sharing options...
Kaklz Posted January 11, 2010 Report Share Posted January 11, 2010 Pameklē vēlreiz pēc virtualhosts :) Quote Link to comment Share on other sites More sharing options...
Harijs Posted January 11, 2010 Author Report Share Posted January 11, 2010 (edited) nuu izlasiju visu iespejamo te par virutalhost sapratu ka jameklē ir kaut kurā configā.. tā nu atradu httpd-vhosts.conf kurā ir <VirtualHost *:80> ServerAdmin postmaster@dummy-host.localhost (1. kas preciizi butu jaraksta te ?) DocumentRoot "D:/xampp/htdocs2/" (2. der? ja man eksiste tada mape kur glabatos otra web faili.) ServerName Serverblabla (3. der? ) ServerAlias www.dummy-host.localhost (4. ko rakstiit te ja es negribu pieveinot savam esošajam domenam klāt sub domen bet gribu pilnigi citu domen ? piemeram gribu gl.govs.lv bet man jau stav hl.vista.lv) ErrorLog "logs/dummy-host.localhost-error.log" (5. kas te ?) CustomLog "logs/dummy-host.localhost-access.log" combined (6. uun kas te ? ) </VirtualHost> Edited January 11, 2010 by Harijs Quote Link to comment Share on other sites More sharing options...
2easy Posted January 11, 2010 Report Share Posted January 11, 2010 ļoti labi to pavisam nesen aprakstīja Aleksejs http://php.lv/f/topic/15258-isti-nezinu-ka-saucas-laikam-ka-kkas-ar-sabdomeniem/page__view__findpost__p__117677 atrast var pēc "virtualhost" (bez "s" galā) Quote Link to comment Share on other sites More sharing options...
Harijs Posted January 11, 2010 Author Report Share Posted January 11, 2010 # You may use the command line option '-S' to verify your virtual host , kur tieši ir tas command line ? itkaa atradu makecert.bat kautkas nesanaak neko ierakstiit nevaru Quote Link to comment Share on other sites More sharing options...
suport Posted January 11, 2010 Report Share Posted January 11, 2010 pache httpd.conf faila beigas iekope shito padarishanu ;) NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /cels/uz/episko/www/direktoriju/ ServerName * <Directory "/cels/uz/www/root/"> allow from all Options +Indexes </Directory> </VirtualHost> Quote Link to comment Share on other sites More sharing options...
Harijs Posted January 11, 2010 Author Report Share Posted January 11, 2010 kā saprast šo ? viens domens iet. uz otra izmetas error Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster. Error 403 Quote Link to comment Share on other sites More sharing options...
Val Posted January 11, 2010 Report Share Posted January 11, 2010 or the directory is read-protected. http://translate.google.com/ Quote Link to comment Share on other sites More sharing options...
Harijs Posted January 11, 2010 Author Report Share Posted January 11, 2010 (edited) liels paldies visiem kas centas palīdzēt :) Edited January 11, 2010 by Harijs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.