waplet Posted January 12, 2011 Report Share Posted January 12, 2011 Ir domēns piemeram.id.lv. Tas novirzas uz manu IP adresi. Ejot caur šo domēnu es pats netieku caur savu datoru uz savu webserveri. Bet piemēram, ja kāds cits iet tad tiek. Porti ir forwardēti pareizi, jo tad citi netiktu iekšā manā webserverī, bet pašlaik ir tā, ka caur IP vai arī domēnu es pats netieku savā webserverī. Vienkārši ilgi lādē un beigas no response. Ir kāds risinājums? Link to comment Share on other sites More sharing options...
nemakuphp Posted January 12, 2011 Report Share Posted January 12, 2011 Ja tev Windows PC, izmanto hosts failu - C:/Windows/system32/drivers/etc/hosts, lai no tava domēna tevi met uz lokālo IP Link to comment Share on other sites More sharing options...
waplet Posted January 12, 2011 Author Report Share Posted January 12, 2011 Jā, bet tur tā lieta. Man ir vhosts. adrese.id.lv vhost'o uz citu mapi localhost uz citu vhost'u tāpēc tā nevaru. localhst = path /www/ adrese.id.lv path ../adrese/ un tāpēc hosts faila ideju esmu atmetis. Link to comment Share on other sites More sharing options...
nemakuphp Posted January 12, 2011 Report Share Posted January 12, 2011 adrese.id.lv iekš hosts faila liec uz 127.0.0.1 Link to comment Share on other sites More sharing options...
waplet Posted January 12, 2011 Author Report Share Posted January 12, 2011 Nop nestradā, tāpat aizietas un manējo lokālhostu un aiziet uz parasto vhostu. Tomēr citiem atver īsti vhostu Link to comment Share on other sites More sharing options...
nemakuphp Posted January 12, 2011 Report Share Posted January 12, 2011 hmm, kaut kā jocīgi. Paskatīšos kā man stāv salikts Vhosti: http://paste.php.lv/703327005763e036def6c82cdc27e0f0?lang=text Hosts: http://paste.php.lv/7b6a21d9a492f7a0b2aa5a977d3adb6a?lang=text Link to comment Share on other sites More sharing options...
waplet Posted January 12, 2011 Author Report Share Posted January 12, 2011 Manējais, vaitad baigi atšķiras? <VirtualHost *:80> #ServerAdmin emjeis DocumentRoot "D:/AppServ/draugiem" ServerName adrese.id.lv,www.adrese.id.lv ServerAlias adrese.id.lv,www.adrese.id.lv ErrorLog "logs/draugiem-error.log" CustomLog "logs/draugiem-access.log" common </VirtualHost> <VirtualHost waplet:80> ServerAdmin waplet DocumentRoot "D:/AppServ/www" ServerName waplet ErrorLog "logs/local-error.log" CustomLog "logs/local-access.log" common </VirtualHost> Iepriekš man viss gāja, bet kad nomainīja rūteri, tad notiek tāda lieta. Bet visi porti ir forwardēti pareizi, nezinu kāpēc neļauj konekšon uz sevi. Lynksis WRT54G(?) nezinu pēdējo. un hosts ir vienīgi 127.0.0.1 localhost , jo ja ir 127.0.0.1 adrese.id.lv tad met uz to pašu lokalhostu, nezinu kāpēc apache nepaņem to server name. Link to comment Share on other sites More sharing options...
nemakuphp Posted January 12, 2011 Report Share Posted January 12, 2011 Kāpēc tev pie otrā Vhosta ir waplet:80" Saku, pamēģini kā man, pirmais localhost, pēctam tas adrese.id.lv Iekš Rūtera man ir Virtual Server salikts Win7, Apache 2.2.14 Link to comment Share on other sites More sharing options...
waplet Posted January 12, 2011 Author Report Share Posted January 12, 2011 Kas tas par Virtual Server, un kāds Tev rūteris? Link to comment Share on other sites More sharing options...
waplet Posted January 12, 2011 Author Report Share Posted January 12, 2011 Lockojam ciet. Viss beidzot aizgāja. Hosts. 127.0.0.1 adrese.id.lv <VirtualHost *:80> ServerAdmin waplet DocumentRoot "D:/AppServ/www" ServerName waplet ErrorLog "logs/local-error.log" CustomLog "logs/local-access.log" common </VirtualHost> <VirtualHost *:80> ServerAdmin adrese.id.lv DocumentRoot "D:/AppServ/draugiem" ServerName adrese.id.lv ServerAlias adrese.id.lv ErrorLog "logs/draugiem-error.log" CustomLog "logs/draugiem-access.log" common </VirtualHost> Ideāli. Neko tādu nebiju gaidījis :) Link to comment Share on other sites More sharing options...
Recommended Posts