webmin 标签文章 - 李海鑫个人博客

(2008-10-25)配置webmin通过apache访问

编辑文章 没有评论 :

本文HTML永久地址doc

昨天安装了webmin,一位朋友的vps主机使用的内部私有ip地址,如果需要访问,还需要在网关做端口转发,能否把访问webmin的10000端口地址,通过80端口的子目录访问,假设ip为:192.168.3.21 客户访问http://192.168.3.21/webmin 实际转发访问到http://192.168.3.21:10000,关于webmin安装请查看昨天的日志

WEBMIN安装手记doc

实际有四种解决办法,下面是用通过proxy模块进行配置

确保你服务器开启了mod_proxy

在/etc/httpd/conf/httpd.conf文件增加

<IfModule mod_proxy.c>ProxyRequests On
<Proxy /webmin>
Order allow,deny
Allow from all
</Proxy>
ProxyPass /webmin http://localhost:10000
ProxyPassReverse /webmin http://localhost:10000

在/etc/webmin/config未增加

webprefix=/webmin
webprefixnoredir=1
referer=apachehost

重启apache

通过上述4个步骤,就可以通过http://192.168.3.21/webmin访问webmin服务器了

参考资料:http://www.webmin.com/apache.html

(2008-10-25)webmin安装手记

编辑文章 没有评论 :

本文HTML永久地址doc

官方下载地址:http://sourceforge.net/projects/webadmin/

下载rpm包

wget http://downloads.sourceforge.net/webadmin/webmin-1.440-1.noarch.rpm

使用rpm命令安装

[root@http ~]# rpm -Uiv webmin-1.440-1.noarch.rpm
Preparing packages for installation...
Operating system is CentOS Linux
webmin-1.440-1
Webmin install complete. You can now login to http://http.15099.net:10000/
as root with your root password.
[root@http ~]#

这样就可以通过游览器访问http://ip地址:10000/访问了,但是这样是明文传输,我们需要设置通过https访问

另外: ◎使用SSL加密
1.安装SSL
Webmin → Webmin Configuration → SSL Encryption → download and install → make and install
2.启动SSL
Webmin → Webmin Configuration → SSL Encryption
设定
Enable SSL if available? Yes (启动SSL)
Redirect non-SSL requests to SSL mode? Yes (自动转换HTTP网页到HTTPS)
Save储存设定

◎变更连接Port
Webmin → Webmin Configuration → Ports and Addresses
Listen on port 10000更改为想要使用的Port
Save储存设定

◎变更使用语言
Webmin → Webmin Configuration → Language
Display in language更改为Traditional Chinese或想使用的语系
Change Language储存设定