Molnár István írta:
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.
Végső soron proxyzással szépen működik, csak elég csúful néz ki a
configban, ezen még kell dolgoznom kell.
Tehát a megfejtés:
<VirtualHost *>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteCond %{REQUEST_URI}
!^/(web|c|jforum|wiki|image|flash|applets|captcha|wml)
RewriteRule ^/$ http://%{HTTP_HOST}/c
RewriteRule ^$ http://%{HTTP_HOST}/c
ProxyPass /jforum http://localhost:8080/jforum
ProxyPassReverse /jforum http://localhost:8080/jforum
ProxyPass /web http://localhost:8088/web
ProxyPassReverse /web http://localhost:8088/web
ProxyPass /c http://localhost:8088/c
ProxyPassReverse /c http://localhost:8088/c
ProxyPass /html http://localhost:8088/html
ProxyPassReverse /html http://localhost:8088/html
ProxyPass /flash http://localhost:8088/flash
ProxyPassReverse /flash http://localhost:8088/flash
ProxyPass /applets http://localhost:8088/applets
ProxyPassReverse /applets http://localhost:8088/applets
ProxyPass /wml http://localhost:8088/wml
ProxyPassReverse /wml http://localhost:8088/wml
ProxyPass /image http://localhost:8088/image
ProxyPassReverse /image http://localhost:8088/image
ProxyPass /captcha http://localhost:8088/captcha
ProxyPassReverse /captcha http://localhost:8088/captcha
ProxyPreserveHost On
ProxyVia Off
</VirtualHost>
Aztán próbáltam az alábbit is:
<VirtualHost *>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteCond %{REQUEST_URI} !^/(jforum|wiki)
RewriteRule ^/$ http://%{HTTP_HOST}/portal%{REQUEST_URI}
RewriteRule ^$ http://%{HTTP_HOST}/portal/%{REQUEST_URI}
ProxyPass /jforum http://localhost:8080/jforum
ProxyPassReverse /jforum http://localhost:8080/jforum
ProxyPass /portal http://localhost:8088/
ProxyPassReverse /portal http://localhost:8088/
ProxyPreserveHost On
ProxyVia Off
</VirtualHost>
De ez nem megy Object Not Found -ot kapok, Ezt azthiszem majd csak
később oldom meg, hogy ez is szép legyen
_________________________________________________
linux lista - [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux