Erinevus lehekülje "Apache Tomcat" redaktsioonide vahel
Allikas: Kuutõrvaja
1. rida: | 1. rida: | ||
+ | |||
+ | Install | ||
+ | |||
+ | Installime tomcat server | ||
+ | Open-source Java web server by Apache, 5.0.x branch | ||
+ | |||
+ | |||
+ | cd /usr/ports/www/jakarta-tomcat5 | ||
+ | make install clean | ||
+ | |||
+ | Palutakse tirida seejärel seoses litsentsitingimustega java ning paigutada see /usr/ports/distfiles | ||
+ | |||
+ | seejärel apache paigaldus | ||
+ | |||
+ | cd /usr/ports/www/apache2 | ||
+ | make with_PROXY_MODULES=yes install clean | ||
+ | |||
+ | avame /etc kaustas rc.conf ja lisame | ||
+ | |||
+ | apache2_enable="YES" | ||
+ | tomcat50_enable="YES" | ||
+ | |||
+ | Stardime java serveri | ||
+ | |||
+ | /usr/local/etc/rc.d/tomcat50 start | ||
+ | |||
+ | seadistame nüüd apache. Läheme lihtsamat teed ja kasutame mod_proxy't mod_jk asemel. | ||
+ | |||
+ | Loome virtualhost httpd.conf'i | ||
+ | |||
+ | <VirtualHost *:80> | ||
+ | ServerName www.mingine.ee | ||
+ | ProxyPass / http://localhost:8180/ | ||
+ | ProxyPassReverse / http://localhost:8180/ | ||
+ | </VirtualHost> | ||
+ | |||
+ | selleks ,et wad failide lisamine toimiks tuli minul vähemalt kasutada veel käsku | ||
+ | |||
+ | chown -R www:www /usr/local/jakarta-tomcat5.0/webapps/ | ||
+ | |||
+ | avades nüüd veebi | ||
+ | |||
+ | www.mingine.ee tervitab meid jakarta avaleht | ||
+ | |||
+ | |||
+ | |||
+ | |||
http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html | http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html |
Redaktsioon: 6. veebruar 2007, kell 17:28
Install
Installime tomcat server Open-source Java web server by Apache, 5.0.x branch
cd /usr/ports/www/jakarta-tomcat5 make install clean
Palutakse tirida seejärel seoses litsentsitingimustega java ning paigutada see /usr/ports/distfiles
seejärel apache paigaldus
cd /usr/ports/www/apache2 make with_PROXY_MODULES=yes install clean
avame /etc kaustas rc.conf ja lisame
apache2_enable="YES" tomcat50_enable="YES"
Stardime java serveri
/usr/local/etc/rc.d/tomcat50 start
seadistame nüüd apache. Läheme lihtsamat teed ja kasutame mod_proxy't mod_jk asemel.
Loome virtualhost httpd.conf'i
<VirtualHost *:80>
ServerName www.mingine.ee ProxyPass / http://localhost:8180/ ProxyPassReverse / http://localhost:8180/
</VirtualHost>
selleks ,et wad failide lisamine toimiks tuli minul vähemalt kasutada veel käsku
chown -R www:www /usr/local/jakarta-tomcat5.0/webapps/
avades nüüd veebi
www.mingine.ee tervitab meid jakarta avaleht