Εγκατάσταση Apache 2 με SSL

E-mail Εκτύπωση PDF
Αξιολόγηση Χρήστη: / 1
ΧείριστοΆριστο 

Απο κονσόλα βάζουμε τις εξής εντολές:

#apt-get install apache2

#apt-get install apache2-mpm-prefork

Περιμένουμε τα .deb πακέτα να γίνουμε εγκατάσταση.
Μετά τρέχουμε το script "apache2-ssl-certificate"

#apache2-ssl-certificate

Μετά τρέχουμε το script "a2enmod ssl"

#a2enmod ssl

Αυτό το script θα δημιουργήσει αυτόματα ένα symbolic link ανάμεσα στους φακέλους mods- available και mods- enable. (αυτοί οι φακέλοι βρίσκονται στο /etc/apache2)

Μετά κάνουμε copy το αρχείο /etc/apache2/sites-available/default στον ίδιο φάκελο και το ονομάζουμε ssl.

#cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl

Μετά δημιουργούμε ένα symbolic link στο αρχείο ssl που μόλις δημιουργήσαμε.

#ls -s /etc/apache2/sites-available/ssl /etc/apache2/sites-available

ή

τρέχουμε ξανά το script a2enmod ssl

#a2enmod ssl

Το αρχείο ρυθμίσεων του Apache server βρίσκεται στο path /etc/apache2/apache2.conf Ανοίγουμε το αρχείο απο κονσόλα με vim και κάνουμε όποιες απαραίτητες ρυθμίσεις θέλουμε. Τώρα πρέπει να κάνουμε restart τον Apache server.(σημειώστε ότι μετά απο οποιδήποτε αλλαγή σο αρχείο ρυθμίσεων ο apache server πρέπει να γίνεται restart.)

#/etc/init.d/apache2 "option"

σαν option έχουμε τις επιλογές restart, stop, start. Οπόταν για να κάνουμε restart τον apache server γράφουμε στην κονσόλα :

#/etc/init.d/apache2/restart

Μετά και το restart του apache server πρέπει να αλλάξουμε το αρχείο ports.conf. Αυτό γιατί απο default ο apache server "ακούει" στο Port 80. Εφόσον θέλουμε υποστήριξη ssl πρέπει να αλλάξουμε το port 80 στο port 443. Αυτό επειδή ο apache server "ακούει" στο port 443 όσον αφορά το ssl. Οπόταν όταν θέλουμε υποστήριξη ssl στον apache server πρέπει να έχουμε το port 443, αλλίως βάζουμε το port 80 που είναι το default port του apache server.

Ανοίγουμε το αρχείο /etc/apache2/ports.conf και κάνουμε τις αλλαγές που είπαμε πιο πάνω.

Αυτό χρειάζεται να το κάνουμε και στο αρχείο /etc/apache2/sites-available/ssl.

 

Μετά ανοίγουμε το αρχείο /etc/apache2/apache2.conf και προσθέτουμε τα παρακάτω στο αρχείο:

SSLEngine On

SSLcertificateFile /etc/apache2/ssl/apache.pem

Μετά ανοίγουμε το αρχείο /etc/apache2/ssl/apache.pem και βάζουμε το path που έχουμε το certificate file και το κλειδί(key).

Παράδειγμα:

Ex:-SSLCertificateFile /etc/apache2/ssl/online.test..net.crt

SSLCertificateKeyFile /etc/apache2/ssl/online.test..net.key

Μετά ανοίγουμε ξανά το αρχείο /etc/apache2/apache2.conf και κάνουμε βάζουμε τα εξής στο αρχείο:

ServerSignature Off

ServerTokens ProductOnly

Για υποστήριξη των php και cgi scripts πρέπει να κάνουμε επίσης εγκατάσταση τα ακόλουθα πακέτα:

libapache2-mod-php4,php4-cli,php4-common και php4-cgi.

Οπόταν απο κονσόλα βάζουμε:

#apt-get install libapache2-mod-php4 php4-cli php4-common php4-cgi

Τέλος ανοίγουμε το αρχείο /etc/apache2/apache2.conf και προσθέτουμε την παρακάτω γραμμή στον κώδικα:

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.shtml

Μετά κάνουμε restart τον apache server και πλέον έχουμε εγκατεστημένο τον apache2 server στο παρών μηχάνημα με υποστήριξη ssl.






Μοιραστείτε αυτό το άρθρο
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Dig Me Joomla Free PHP

Σχόλια
Προσθήκη νέου Αναζήτηση RSS
Γράψτε σχόλιο
Όνομα:
Email:
 
Τίτλος:
 
Please input the anti-spam code that you can read in the image.
Τελευταία Ενημέρωση ( Πέμπτη, 30 Απρίλιος 2009 19:05 )  

Seach By Google

Translate this website :

Επιλογές


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Programming


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Fedora


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

CentOS


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Linux


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Ubuntu


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Debian


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99


Προτεινόμενα άρθρα


Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030
Joomla 1.5 Featured Articles

Δημοφιλή Περιεχόμενα


Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Τελευταία Σχόλια

Προτεινόμενα tutorials


Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3029

Deprecated: Function eregi() is deprecated in /home/flakgr/public_html/administrator/components/com_sh404sef/sh404sef.class.php on line 3030
Joomla 1.5 Featured Articles