|
Regular expression i htaccess regex, PCRE, POSIX, upotreba Apache .htaccess , mod_rewrite |
|
Alati teme | Način prikaza |
09. 10. 2007. | #1 |
Milan Cvejic
Wrote a book
|
Apache NameVirtualHost problem....
Pozdrav, imam problem sa konfigurisanjem Apache2 servera, i to konkretno sa
virtuelnim hostovima... grrrrr... :izfrustriranismajli: naime problem je sledeci imam par virtuelnih hostova i stalno dobijam warning tipa: Kôd:
[warn] VirtualHost xxx:80 overlaps with VirtualHost xxx_neki_drugi:80, the first has precedence, perhaps you need a NameVirtualHost directive Kôd:
NameVirtualHost xxx:80 <VirtualHost*:80> ServerName xxx ServerAdmin webmaster@localhost DocumentRoot /var/www/ ProxyPass /test http://test_IP/test ProxyPassReverse /testi http://test_IP/test <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place #RedirectMatch ^/$ /apache2-default/ </Directory> </VirtualHost> Kôd:
ProxyPass /test http://test_IP/test ProxyPassReverse /testi http://test_IP/test Hvala unapred...
__________________
http://weevify.com |
09. 10. 2007. | #2 |
profesionalac
Qualified
Datum učlanjenja: 10.02.2006
Poruke: 181
Hvala: 2
20 "Hvala" u 11 poruka
|
NameVirtualHost *:80 ? (wild guess)
|
09. 10. 2007. | #3 |
Milan Cvejic
Wrote a book
|
To postoji u konfiguracionom fajlu... mislim sve izgleda kako treba... mora da sam negde
zametnuo koje slovo...
__________________
http://weevify.com |
09. 10. 2007. | #4 |
Dejan Katašić
Wrote a book
Datum učlanjenja: 10.06.2005
Lokacija: Novi Sad
Poruke: 1.017
Hvala: 129
86 "Hvala" u 43 poruka
|
Možda je dovoljna zvezdica umesto xxx:80 (zbog porno filtera ;-)
Evo kako je to kod mene u lokalu: Kôd:
NameVirtualHost *:80 <VirtualHost *:80> ServerName sokoban DocumentRoot c:/_www/site/sokoban </VirtualHost> ... |
09. 10. 2007. | #5 |
profesionalac
Qualified
Datum učlanjenja: 10.02.2006
Poruke: 181
Hvala: 2
20 "Hvala" u 11 poruka
|
hm, mislio sam na ovaj deo:
NameVirtualHost xxx:80 vs: NameVirtualHost *:80 izgleda mi cudno na prvi pogled cela ova konfiguracija, plus ako imas vise IP adresa (ako me secanje dobro sluzi - a ne sluzi me), recimo kombinacija <VirtualHost *:80> ... <VirtualHost IP:80> takodje pravi slican problem. ne znam kakva ti je cela konfiguracija, ali ovo mi je prvo upalo u oci. takodje, ne znam da li sam te dobro shvatio, ali ukoliko imas NameVirtualHost xxx:80 u svakom fajlu sa ovakvim pojedinacnim konfiguracijama, svakako nece raditi kako bi trebalo - samo izvuci NameVirtualHost *:80 u httpd.conf i skloni pojedinacne NameVirtualHost xxx:80, nadam se da pomaze. |
09. 10. 2007. | #6 |
Goran Pilipović
Sir Write-a-Lot
|
Ako staviš
NameVirtualHost xxx:80 Onda moraš i <VirtualHost xxx:80> Znači da ponoviš isto. Ako koristiš * onda ideš sa: NameVirtualHost *:80 <VirtualHost*:80>
__________________
Goran Pilipović a.k.a. Ugly Fingers Bradley f.k.a. bluesman I don't always know what I'm talking about but I know I'm right! |
09. 10. 2007. | #7 |
Milan Cvejic
Wrote a book
|
Hvala ljudi, resen problem, u konfiguraciji mi je i stojalo
NameVirtualHost *:80 <VirtualHost*:80> a ne NameVirtualHost xxx:80 <VirtualHost*:80> tako da je sa te strane sve bilo u redu, problem mi je predstavljao modul za reversni proxy... njegova default konfiguracija se nije svidjala mojoj... hihihihi... Hvala josh jedanput
__________________
http://weevify.com |
|
|
Slične teme | ||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
PHP, Apache - problem u konfiguraciji | Miroslav | PHP | 11 | 07. 10. 2009. 20:09 |
Apache reversni proxy i trailing slash problem... | LiquidBrain | Regular expression i htaccess | 3 | 12. 10. 2007. 17:57 |
Problem sa cookies na Apache-Localhost | srdjan | PHP | 20 | 11. 05. 2007. 01:18 |
PHP, Apache - I want to get out | analyzer | PHP | 19 | 19. 03. 2007. 22:51 |
Apache 2.2 i .htaccess ? | BluesRocker | Regular expression i htaccess | 5 | 27. 12. 2006. 15:36 |