Erinevus lehekülje "Apache Tomcat" redaktsioonide vahel
1. rida: | 1. rida: | ||
+ | ===Sissejuhatus=== | ||
+ | |||
+ | Apache Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process. | ||
+ | |||
===Install=== | ===Install=== | ||
− | Installime tomcat | + | Installime tomcat serveri |
− | |||
− | |||
cd /usr/ports/www/jakarta-tomcat5 | cd /usr/ports/www/jakarta-tomcat5 |
Redaktsioon: 11. juuni 2007, kell 23:59
Sisukord
Sissejuhatus
Apache Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process.
Install
Installime tomcat serveri
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
Seadistus
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/
Seame ka veebi administraatorile parooli
avame kaustas /usr/local/jakarta-tomcat5.0/conf faili tomcat-users.xml
ja muudame selle sisu selliseks
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <user username="kasutaja" password="salasona341" roles="manager"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> </tomcat-users>
avades nüüd veebi
www.mingine.ee tervitab meid jakarta avaleht kus saame manager alla logida enda kasutaja ja parooliga ja lisada wad'e näiteks. Java koodi konteinereid.