Sikerült végül részben megoldanom, de még nem teljes az öröm, mert:
<VirtualHost *>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www
ServerName liferay4
# atiras bekapcsolasa
<IfModule mod_rewrite.c>
ProxyRequests Off
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 5
# Az atiras szabalyai,
# a /wiki es /jforum format figyelmenkivul hagyom
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ http://%{HTTP_HOST}/weg/guest/home
RewriteCond %{REQUEST_URI} !^/(wiki|jforum)
RewriteRule ^/(.*)$ http://%{HTTP_HOST}:8880/$1 [P]
# a jforum masik csatornara
RewriteCond %{REQUEST_URI} ^/jforum
RewriteRule ^/(.*)$ http://%{HTTP_HOST}:8080/$1 [P]
</IfModule>
</VirtualHost>
A fenti rész végzi az átírást, de ha csak csupaszon írom a címet:
192.168.2.204 akkor elvégzi ugyan az átírást, de a böngésző címsorában
ott díszeleg a :8880. Ha a címet a teljes formában a teljes formában
írom: http://192.168.2.204/web/guest/home akkor viszont nem látszik a :8880.
Ez van a rewrite.log -ban, ha a teljes urlt írom be:
192.168.2.149 - - [30/Jun/2006:08:25:39 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (2) init rewrite engine
with requested uri /web/guest/home
192.168.2.149 - - [30/Jun/2006:08:25:39 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (3) applying pattern
'^/$' to uri '/web/guest/home'
192.168.2.149 - - [30/Jun/2006:08:25:39 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (3) applying pattern
'^/(.*)$' to uri '/web/guest/home'
192.168.2.149 - - [30/Jun/2006:08:25:39 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (4) RewriteCond:
input='/web/guest/home' pattern='!^/(wiki|jforum)' => matched
192.168.2.149 - - [30/Jun/2006:08:25:39 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (2) rewrite
/web/guest/home -> http://192.168.2.204:8880/web/guest/home
192.168.2.149 - - [30/Jun/2006:08:25:39 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (2) forcing
proxy-throughput with http://192.168.2.204:8880/web/guest/home
192.168.2.149 - - [30/Jun/2006:08:25:39 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (1) go-ahead with proxy
request proxy:http://192.168.2.204:8880/web/guest/home [OK]
És ez ha csak a csupasz címet:
192.168.2.149 - - [30/Jun/2006:08:27:08 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (2) init rewrite engine
with requested uri /c
192.168.2.149 - - [30/Jun/2006:08:27:08 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (3) applying pattern
'^/$' to uri '/c'
192.168.2.149 - - [30/Jun/2006:08:27:08 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (3) applying pattern
'^/(.*)$' to uri '/c'
192.168.2.149 - - [30/Jun/2006:08:27:08 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (4) RewriteCond:
input='/c' pattern='!^/(wiki|jforum)' => matched
192.168.2.149 - - [30/Jun/2006:08:27:08 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (2) rewrite /c ->
http://192.168.2.204:8880/c
192.168.2.149 - - [30/Jun/2006:08:27:08 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (2) forcing
proxy-throughput with http://192.168.2.204:8880/c
192.168.2.149 - - [30/Jun/2006:08:27:08 +0200]
[192.168.2.204/sid#8172f60][rid#82a1f58/initial] (1) go-ahead with proxy
request proxy:http://192.168.2.204:8880/c [OK]
Azt sem nagyon értem, hogy a /c -t honnan veszi, de azt hiszem összefügg
a kettő.
Szóval ha valaki tud segítsen
_________________________________________________
linux lista - linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux