|
藍森林 http://www.lslnet.com 2006年4月6日 20:18
如何使虛擬主機用戶chroot
就是把每個用戶chroot在他自己的目錄中?
是apache的虛擬用戶 |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "haohaoo" 發表:[/i]
就是把每個用戶chroot在他自己的目錄中?
是apache的虛擬用戶[/quote]
If your system is using FreeBSD, just use jail to finish it..
But i haven't test jail on my system..
it may need sometime to do so... |
如何使虛擬主機用戶chroot
把FollowSymLinks去掉 |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "i2era"]把FollowSymLinks去掉[/quote 發表:[/i]
Default seems do not allowed..
i remember on my Solaris apache.. |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "kinux" 發表:[/i]
Default seems do not allowed..
i remember on my Solaris apache..[/quote]
but the default setting at FreeBSD is not:
<Directory />;
Options FollowSymLinks
AllowOverride None
</Directory>; |
如何使虛擬主機用戶chroot
use Linux
I will try later
thanks |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "i2era" 發表:[/i]
but the default setting at FreeBSD is not:
<Directory />;
Options FollowSymLinks
AllowOverride None
</Directory>;[/quote]
use like it
<Directory />;
Options None
AllowOverride None
</Directory>;
?? |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "i2era" 發表:[/i]
but the default setting at FreeBSD is not:
<Directory />;
Options FollowSymLinks
AllowOverride None
</Directory>;[/quote]
Oh, i make it wrong, on Solaris is also..
But at Alias with no FollowSymLinks Options.. |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "haohaoo" 發表:[/i]
use like it
<Directory />;
Options None
AllowOverride None
</Directory>;
??[/quote]
yes,and check VirtualHost DocumentRoot setting |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "i2era" 發表:[/i]
yes,and check VirtualHost DocumentRoot setting[/quote]
what's to the VirtualHost DocumentRoot seting? |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "haohaoo" 發表:[/i]
what's to the VirtualHost DocumentRoot seting?[/quote]
it maybe like that:
<VirtualHost *>;
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>;
你要檢查/www/docs/dummy-host.example.com這個目錄
的權限,不能讓它有Options FollowSymLinks |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "i2era" 發表:[/i]
it maybe like that:
<VirtualHost *>;
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog log..........[/quote]
我已經在httpd.conf中設置全局變量都為
<Directory />;
Options None
AllowOverride None
</Directory>;
了啊,可是還是不能chroot |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "haohaoo" 發表:[/i]
我已經在httpd.conf中設置全局變量都為
<Directory />;
Options None
AllowOverride None
</Directory>;
了啊,可是還是不能chroot[/quote]
局部的設置回覆蓋 <Directory />; 的設置的 |
如何使虛擬主機用戶chroot
[quote][i]原帖由 "i2era" 發表:[/i]
局部的設置回覆蓋 <Directory />; 的設置的[/quote]
我知道局部優先,可是我VirtualHost中只有設置 cgi的啊,沒有Options FollowSymLinks 啊!
<Directory "/home/bbs/cgi-bin">;
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>; |
如何使虛擬主機用戶chroot
ttt |
如何使虛擬主機用戶chroot
up |
如何使虛擬主機用戶chroot
up three |
如何使虛擬主機用戶chroot
呵呵… 空間商都一個樣… |
| |