2012 年二月 一 二 三 四 五 六 日 « 一 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 近期评论
- wlx [微博 ] 发表在《google彻底被封?》
- snake 发表在《google彻底被封?》
- Andrew Pelt 发表在《debian testing上安装oracle 10g》
- tiplip 发表在《webmap.cn使用的WEBGIS技术》
- 求助Evolution问题!! 发表在《evolution crashed in gutsy alpha》
分类目录
标签
anjuta apache backup breezy c++ compile convert dapper debian dns edgy evolution feisty firefox flash gnome gobang GRASS gutsy humor intrepid Linux mailman MapServer mysql openoffice Oracle php phpbb postfix PostGIS postgresql qgis sarge scim skype subversion svn tomcat ubuntu utf8 westdc Windows wordpress 中文
Tag Archives: apache2
ubuntu oneiric apache2.2 tomat7 mod_jk geonetwork
在一台新服务器上安装了ubuntu oneiric 11.10中安装apache2.2 tomcat7,现在想通过mod_jk把二者桥接起来。 1. 首先安装 sudo apt-get install tomcat7 apache2 libapache2-mod-jk 2. 修改workers.properties sudo nano /etc/libapache2-mod-jk/workers.properties 把其中一行: workers.tomcat_home=/usr/share/tomcat6 替换为: workers.tomcat_home=/usr/share/tomcat7 3. 配置tomcat7 sudo nano /etc/tomcat7/server.xml 把port 8009这行的默认注释给去掉: <Connector port=”8009″ protocol=”AJP/1.3″ redirectPort=”8443″ /> 并添加host中添加自己的应用: <Context path=”/geonetwork” docBase=”/var/www/xining/geonetwork/web/geonetwork/” crossContext=”false” debug=”0″ reloadable=”false” … Continue reading
Posted in Linux, Program
Tagged apache2, geonetwork, java, mod_jk, oneiric, tomact7, ubuntu
Leave a comment
Why can’t I use SSL with name-based/non-IP-based virtual hosts?
参考apache的文档: Why can’t I use SSL with name-based/non-IP-based virtual hosts? The reason is very technical, and a somewhat “chicken and egg” problem. The SSL protocol layer stays below the HTTP protocol layer and encapsulates HTTP. When an SSL connection (HTTPS) … Continue reading
整合phpbb3和svn服务
整合,题目有点大,呵呵。 其实就是把SVN的用户控制交给phpbb3来进行处理。 要求SVN必须采用apache2/mod_auth_mysql来进行控制的。 然后在phpbb3的后台创建一个新的用户组,用于控制可以访问SVN服务的用户。然后在mysql里创建一个视图,提取用户名称和密码。注意,PHPBB3采用的加密方式是直接MD5。假设创建的组名为svn: create view svnauth (username,passwd,groups) as select users.username,users.user_password,groups.group_name from groups,user_group left join users on user_group.user_id=users.user_id where groups.group_name=”svn” and user_group.group_id=groups.group_id ; 然后在apache2的site文件里设置为: Auth_MySQL_Encryption_Types PHP_MD5 这样就可以了,具体的操作还需要参考之前的文章:安装subversion: ssl+auth_mysql+mod_svn。 估计还需要mysql 5的支持,不知道mysql 4是否支持视图。
安装subversion: ssl+auth_mysql+mod_svn
此处采取的方案是: ubuntu feisty, apache2, auth_mysql, ssl, mod_svn。 其中,apache2+auth_mysql的安装及设置参考前面的文章:http://wlx.westgis.ac.cn/409/ apache2+ssl的安装和设置参考:http://wlx.westgis.ac.cn/407/ 然后开始安装: sudo aptitude install subversion libapache2-svn libapache-mod-dav 添加代码库 sudo mkdir /var/svn sudo svnadmin create /var/svn/$REPOS sudo nano .htaccess 设置存取权限 sudo chown -R www-data:www-data /var/svn/$REPOS sudo chmod -R g+ws /var/svn/$REPOS 配置 参考: … Continue reading
apache2下使用mysql进行身份认证
服务器平台为ubuntu feisty,首先确认apache2已经安装好。 然后安装auth-mysql支持并启用此模块: sudo aptitude install libapache2-mod-auth-mysql sudo a2enmod auth_mysql 要建立一个数据库用于认证,并建立一个用户表存贮用户信息。 mysql -uroot create database svn; grant all on svn.* to svn@localhost identified by ‘mypwd’; flush privileges; use svn; create table auth( `username` varchar(25) NOT NULL default ”, `passwd` varchar(25) … Continue reading