顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


主題 - kinux

頁: 1 2 [3]
61
Network 討論版 / apache problem
« 於: 2002-04-18 12:21 »
Hi all,

I do it with following process but no work.  What's the problem??
Anyone help me????


[ 須輸入認證資料才能瀏覽網頁  | 如何避免以瀏覽目錄方式看到檔案表列  | 只允許特定網域才能瀏覽網頁  | Home ]
 新建祕密基地 所屬資料夾(本範例是假設祕密基地位於 /usr/local/apache/sec )

cd /usr/local/apache
mkdir sec

這個祕密基地必須要有二個檔案:
.htaccess 設定檔
.htpasswd 帳號、密碼檔


建立 /usr/local/apache/sec/.htaccess

cd /usr/local/apache/sec

.htaccess 檔案的範例如下:(使用vi編輯器)

AuthName "祕密基地"
AuthType Basic
AuthUserFile "/usr/local/apache/sec/.htpasswd"
require valid-user


建立 /usr/local/apache/sec/.htpasswd

用 touch 指令建立空檔案:
touch .htpasswd

再用 htpasswd 指令一筆筆新增帳號與密碼(htpasswd程式應當與httpd放在同一資料夾中,找找看。):
htpasswd -m .htpasswd $username (一次建立一筆,$username是帳號,系統稍後會要求您輸入密碼)
htpasswd -b .htpasswd $username $passwd (一次建立一筆,$username是帳號,$passwd是該帳號之密碼,系統不會出現要求您輸入密碼的對話)
只有打htpasswd的話,系統會顯示出相關的語法。


編輯 Apache Server 的設定檔:httpd.conf
自行加入下列四行:
Alias /sec/ "/usr/local/apache/sec/"
<Directory "/usr/local/apache/sec">
   AllowOverride All
</Directory>
(如果還有其他目錄要如此,請比照。)


重新啟動 Apache Server
apachectl restart

使用網頁瀏覽器測試祕密基地
在網址列輸入 httpd://貴校網址/sec/
例如

thx

62
BSD 討論版 / 怎樣在FreeBSD 上看到中文.
« 於: 2002-04-01 14:10 »
hi,

怎樣在FreeBSD 上看到中文.
請指教..

thx

63
Hi all,

I want to know

how to start the service automatically in FreeBSD when the server rebooted.


Thx

64
Hi,

I just follow the instructions to set my Proftpd on my server,
i found your instructions lack one thing

is it you need to chmod 711 to the file proftpd.sh when the admin
mv /usr/local/etc/rc.d/proftpd.sh.sample /usr/local/etc/rc.d/proftpd.sh

then

The ftp service can start.

thx

65
BSD 討論版 / How to make a boot disk of freebsd
« 於: 2002-03-31 18:07 »
各位大哥:

請問怎樣將1.4M的boot disk copy 進floppy, 因為floppy 只有1.38M大在windows 上.

help!!!

thx

66
Linux 討論版 / RedHat Linux problem
« 於: 2002-03-31 09:47 »
Hi all,

I want to know how to startup the service on a server when the server is bootup in Red Hat Linux 7.2 since it seems different from the previous version, it do not use the command "ntsysv" or "setup"
to choose the service i need to start.

it prompted like this:
# ntsysv
bash: ntsysv: command not found

Should anybody can reply me as soon as possible.

many thanks

67
BSD 討論版 / something about Lastlog
« 於: 2002-03-27 18:20 »
Hi, all

I found that every time i log in to the server, the server will have a record and can be see with "last" command, but the record alway increase when i login times increase, so i keyin the "last" command, several page appears on the screen.

Anyone know what can i do to decrease the record appear on the screen to only one page????????

thx

68
BSD 討論版 / about shadow passwd file
« 於: 2002-03-27 18:15 »
Hi, all
 
As you know the passwd file in Linux has been shadow, so the hacker cannot read it easily,  But in FreeBSD, there is no shadow on that file, what can i do to make it more secure.

Help! hElp! heLp! helP!

thanks

69
Linux 討論版 / HELP
« 於: 2002-03-23 23:14 »
Hi,

When I use chmod to change the passwd file to 400, then the user log to the server , it promts like this.

Last login: Sat Mar 23 22:43:48 2002 from XXXXXXX <--not related
id: cannot find name for user ID 500
id: cannot find name for user ID 500
[I have no name!@rh70 gy]$ ls
 
What can i do to change the login to " [gy@rh70 gy]$ " but no need to change the right of passwd???

thx

kinux

70
BSD 討論版 / Upgrade FreeBSD
« 於: 2002-03-19 11:57 »
Hi all,
                     
我想知道升級FreeBSD kernel 由4.2 去 4.5. 我應怎樣做????

thanks


71
BSD 討論版 / 有没有人set 過VPND on FREEBSD.
« 於: 2002-03-18 06:31 »
Hi, 各位大哥:

請問有没有人set 過VPND on FREEBSD.

怎樣config.

thx

72
各位大哥:

小弟剛由/usr/ports/ftp/wu-ftpd 中download了wu-ftpd-2.6.1, 但是不知怎樣config. 不知config file在where.
敬請指教

Thanks

73
BSD 討論版 / how to install from /usr/ports
« 於: 2002-03-04 02:21 »
各位大哥:

小弟剛安裝好Freebsd, 但不能安裝package由/usr/ports,我在/usr/ports/ftp/www/apache13 的directory 中make,
Result:
fbsd# cd apache13
fbsd# ls
Makefile        distinfo        pkg-comment     pkg-plist
README.html     files           pkg-descr
fbsd# make
>> apache_1.3.14.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
>> Attempting to fetch from http://www.apache.org/dist/.
fetch: apache_1.3.14.tar.gz: Not Found
>> Attempting to fetch from ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apa
che/dist/.
fetch: apache_1.3.14.tar.gz: File unavailable (e.g., file not found, no access)
>> Attempting to fetch from ftp://ftp.rge.com/pub/infosystems/apache/dist/.
fetch: apache_1.3.14.tar.gz: File unavailable (e.g., file not found, no access)
>> Attempting to fetch from ftp://apache.compuex.com/pub/apache/dist/.
fetch: apache_1.3.14.tar.gz: Operation timed out
>> Attempting to fetch from ftp://apache.arctic.org/pub/apache/dist/.
fetch: apache_1.3.14.tar.gz: Undefined error: 0
>> Attempting to fetch from ftp://ftp.epix.net/pub/apache/dist/.
fetch: apache_1.3.14.tar.gz: File unavailable (e.g., file not found, no access)
>> Attempting to fetch from ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apach
e/dist/.
fetch: apache_1.3.14.tar.gz: Not logged in
>> Attempting to fetch from ftp://ftp.connectnet.com/pub/www/apache/.
fetch: apache_1.3.14.tar.gz: File unavailable (e.g., file not found, no access)
>> Attempting to fetch from ftp://apache.technomancer.com/mirrors/apache/dist/.
fetch: apache_1.3.14.tar.gz: Undefined error: 0
>> Attempting to fetch from ftp://ftp.raver.net/pub/ftp.apache.org/.
fetch: apache_1.3.14.tar.gz: Not logged in
>> Attempting to fetch from ftp://www3.service.digital.com/apache/dist/.
fetch: apache_1.3.14.tar.gz: Undefined error: 0
>> Attempting to fetch from ftp://galileo.galilei.com/pub/apache/.
fetch: apache_1.3.14.tar.gz: Operation timed out
>> Attempting to fetch from ftp://ftp.mtnranch.net/pub/apache/dist/.
fetch: apache_1.3.14.tar.gz: Service not available, closing control connection
>> Attempting to fetch from ftp://ftp.iodynamics.com/pub/mirror/apache/dist/.
fetch: apache_1.3.14.tar.gz: Not logged in
>> Attempting to fetch from ftp://apache.nextpath.com/pub/apache/dist/.
fetch: apache_1.3.14.tar.gz: Operation timed out
>> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: apache_1.3.14.tar.gz: File unavailable (e.g., file not found, no access)
>> Couldn't fetch it - please try to retrieve this
>> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/www/apache13.
*** Error code 1

Stop in /usr/ports/www/apache13.
*** Error code 1

Stop in /usr/ports/www/apache13.
*** Error code 1

Stop in /usr/ports/www/apache13.
*** Error code 1

Stop in /usr/ports/www/apache13.
*** Error code 1

Stop in /usr/ports/www/apache13.
*** Error code 1

Stop in /usr/ports/www/apache13.

這是什麼問題???????



74
every BIG BROTHER,

Help me!!!!!

how to install GCC compiler on solaris 8 as i download to my solaris server but i don't know how to make it work.
How to compile, any command recommand to me.

Thanks very much

Kinux

頁: 1 2 [3]