PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : چگونگی مخفی کردن ورژن apache



Vahid
August 25th, 2008, 20:37
شاید براوتون پیش اومده باشه که بخوایند ورژن آپاچ رو مخفی کنید این از لحاظ امنیتی مهم هست


Apache/2.0.40 Server at www.mydomain.net (http://www.mydomain.net/) Port 80

باید ServerSignature رو off کرد در httpd.conf


pico /etc/httpd/conf/httpd.conf

وقتی وارد شدید Ctrl+w بزنید و ServerSignature رو off کنید و خارج شید

KamranOnline
August 28th, 2008, 11:53
این هم در نظر داشته باشید که دستور pico به طور پیش فرض نصب نشده و باید نصب کنید.
یا می توانید از vi یا nano استفاده کنید.

و ServerSignature رو هم option های دیگری هم داره

Vahid
August 28th, 2008, 16:54
چگونگی نصب pico


Steps To Install Pico

1. Login to your server via SSH as root.

2. Type: rpm -q pine
It should say: package pine is not installed

3. Type: wget ftp://rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/pine-4.44-18.i386.rpm

4. Now let's install the rpm we just downloaded.
Type: rpm -Uvh pine-4.44-18.i386.rpm

Now you are ready to use pico.

اموزش جامع کار با pico


What is PICO?

PICO is a very simple and easy-to-use text editor offering paragraph justification, cut/paste, and a spelling checker. (Pico is an acronym for PIne COmposer)

Commands:
The editing commands are displayed at the bottom of the screen and are envoked using CTRL-KEY combinations. (Key is the key letter such as CTRL-W) The ^ character is representing the CTRL and the letter that follows represents the KEY. For example ^W will be CTRL-W on your keyboard. You press the CTRL key hold it and then press the W key. Some commands will require input such as searching. The prompts will be at the bottom of the screen, above the command labels.

Start Pico:
Type: pico
This will tell PICO to open a file. If you do not specific a file you can start editing a blank file, and then save it as whatever you wish when you quit.

Save Your Changes:
Press: CTRL-O
You will be displayed / asked what file PICO should save the document as.
Press: Enter (Or rename file to your linking and then press enter)
PICO has now saved your document.

Exiting Pico:
Press: CTRL-X
You will be prompted "Save modified buffer" this means do you want to save your modified file.

PICO Commands:
CTRL-K will delete the entire line that the cursor is currently on (Cut Text)
CTRL-U will insert the previously deleted line of text at the current position (Un-Cut Text)
CTRL-W will bring up a box at the bottom of the document for you to search.
CTRL-C will cancel anything.
CTRL-T will bring up the spell checker.

Vahid
August 28th, 2008, 16:56
برای نصب هم میتونید از این دستور استفاده کنید
yum install pine
خودش همه کارا رومی کنه