由 txkss 在 08-30-2004 22:23 发表:
问:关于一个DNS的问题
我在Apache中设置了可以给本机系统上的每一个帐户都提供web服务的功能
正常情况下用户要这样访问他们的主页 http://ip_address/~username
不过这样会很麻烦啊
我想知道我在本机上配置了DNS
应该怎么样写一条A记录让其它用户输入一个比较好记而且方便的名子就可以自动跳过 http://ip_address/~username这样一个地址上呢?
谢谢大家
请帮忙
由 Snoopy 在 08-31-2004 04:57 发表:
不懂你的意思
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 txkss 在 08-31-2004 18:33 发表:
配置每个用户的web站点的意图是使在安装了Apache的本地计算机上,拥有用户帐户的每个用户都能够架设自己单独的web站点。
要配置每个用户的WEB站点,我们只需经过下面的配置步骤: 修改主配置文件启用每个用户的WEB站点配置 修改主配置文件为每个用户的WEB站点目录配置访问配制
#vi /etc/httpd/conf/httpd.conf
1<ifmodule mod_userdir.c=""> Userdir disable ……安全起见不让超级用户使用自己的站点 #UserDir public_html Look at the # 配置对每个用户WEB站点目录的设置
2
3</ifmodule>
1<directory *="" home="" public_html=""> # AllowOverride FileInfo AuthConfig Limit
2
3# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
4
5# <limit get="" options="" post="">
6
7# Order allow,deny
8
9# Allow from all
10
11# </limit>
12
13# <limitexcept get="" options="" post="">
14
15# Order deny,allow
16
17# Deny from all
18
19# </limitexcept>
20
21#</directory>
为了测试我们以前的设置是否已经起了作用我们将创建一个测试页面。其实名一个用户的个人WEB站点的设置步骤都是这样一个样子的。
#adduser testweb #passwd testweb #Alt+2-------testweb login #mkdir public_html #cd public_html #vi index.html-----Hello linux----wq
通过上面的设置接下来用户就可以在浏览器中进行测试查看了访问的格式为 http://IP _address or FQDN/~username 比如用户计算机的IP地址为192.168.1.156,用户名为testweb那么它的访问地址就是 http://192.168.1.156/~testweb
这样能明白我的意思吗?
这样给系统每个用户都提供这种服务
但使用都