Bu Konuyu Okuyanlar: 1 ZiyaretÇi
Cevapla 
 
DeÄŸerlendir:
  • 0 Oy - 0 Yüzde
  • 1
  • 2
  • 3
  • 4
  • 5
Apache Web Sunucu
03-17-2010, 02:53 PM
Mesaj: #1
Apache Web Sunucu
Apache Web Sunucu

SSL için php problem yaratiyor calismiyor.
Ben Guests cannot see links in the messages. Please register to forum by clicking href="member.php?action=register">here to see links. sayfasindaki ornegi birebir uyguladim php'siz oldu.


--enable-module=rewrite --enable-shared=rewrite

FreeType İçin: Guests cannot see links in the messages. Please register to forum by clicking href="member.php?action=register">here to see links.


.1 Apache'de php4 ayarların yapılması
Şimdi Apache'nin ayar dosyalarında php4 ile ilgili ayarları yapalım.

cd apache
cd conf
nano -w httpd.conf

Apache'nin tüm ayarlarının yapıldığı httpd.conf dosyasında aşağıdaki iki satırı bularak önlerinde bulunan # işaretlerini kaldırmamız gerekmektedir.

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Buna ek olarak eğer php3 dosyalarınızın da php4 olarak çalıştırılmasını isterseniz, şöyle bir satır ekleyebilirsiniz.

AddType application/x-httpd-php .php3

Php4 ile php3 arasında fazla bir uyumsuzluk bulunmamaktadır (bilinen uyumsuzlukların tam listesi, Guests cannot see links in the messages. Please register to forum by clicking href="member.php?action=register">here to see links. sayfasından alınabilir. Ama problem yaşarsanız, Apache'ye hem php4 hem de php3'ü modül olarak aynı anda ekleyebilir ve kullanabilirsiniz



4.3 Apache'nin başlatılması
Artık Apache'mizi başlatabiliriz.

cd ../bin
./apachectl startssl

Burada sayısal sertifikanın yapımı sırasında size sorulan şifreyi girmeniz gerekmektedir.

Artık Apache sunucumuz hem http://sunucunuz (normal bağlantı), hem de https://sunucunuz (şifrelendirilmiş bağlantı) adreslerinde hizmet vermeye başlamıştır. Herhangi bir web browser ile bağlanabilirsiniz.




+--------------------------------------------------------+
| You now have successfully built and installed the |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the |
| (initially created or preserved) configuration files |
| |
| /www5/conf/httpd.conf
| |
| and then you should be able to immediately fire up |
| Apache the first time by running: |
| |
| /www5/bin/apachectl start
| |
| Or when you want to run it with SSL enabled use: |
| |
| /www5/bin/apachectl startssl
| |
| Thanks for using Apache. The Apache Group |
| Guests cannot see links in the messages. Please register to forum by clicking href="member.php?action=register">here to see links. |
+--------------------------------------------------------+


Sertifikanın sunucuya yüklenmesi. Apache Mod SSL

Step one: Copy your certificate to file

You will receive an email from InstantSSL with the certificate in the email (yourdomainname.crt). When viewed in a text editor, your certificate will look something like:

-----BEGIN CERTIFICATE-----
MIAGCSqGSIb3DQEHAqCAMIACAQExADALBgkqhkiG9w0BBwGggDCCAmowggHXAhAF
UbM77e50M63v1Z2A/5O5MA0GCSqGSIb3DQEOBAUAMF8xCzAJBgNVBAYTAlVTMSAw
(.......)
E+cFEpf0WForA+eRP6XraWw8rTN8102zGrcJgg4P6XVS4l39+l5aCEGGbauLP5W6
K99c42ku3QrlX2+KeDi+xBG2cEIsdSiXeQS/16S36ITclu4AADEAAAAAAAAA
-----END CERTIFICATE-----

Copy your Certificate into the directory that you will be using to hold your certificates. In this example we will use /etc/ssl/crt/. Both the public and private key files will already be in this directory. The private key used in the example will be labeled private.key and the public key will be yourdomainname.crt.

It is recommended that you make the directory that contains the private key file only readable by root.

Step two: Install the Intermediate Certificates

You will need to install the chain certificates (intermediates) in order for browsers to trust your certificate. As well as your SSL certificate ( yourdomainname.crt) three other certificates, named GlobalSignRootCA.crt, GlobalSignPartnersCA.crt and ComodoClass3SecurityServicesCA.crt, are also attached to the email from InstantSSL. Apache users will not require these certificates. Instead you can install the intermediate certificates using a 'bundle' method.

In the Virtual Host settings for your site, in the httpd.conf file, you will need to add the following SSL directives.This may be achieved by:

1. Copy this ca-bundle file to the same directory as httpd.conf (this contains all of the ca certificates in the InstantSSL chain).

2. Add the following line to httpd.conf (assuming /etc/httpd/conf is the directory mentioned in 1.), if the line already exists amend it to read the following:

SSLCertificateChainFile /etc/httpd/conf/ca-bundle

If you are using a different location and certificate file names you will need to change the path and filename to reflect your server.

The SSL section of the updated httpd config file should now read similar to this example (depending on your naming and directories used):

//Locate Certificate File:
SSLCertificateFile /etc/ssl/crt/yourdomainname.crt
//Locate Private Key File:
SSLCertificateKeyFile /etc/ssl/crt/private.key
//Locate CA Chain bundle file:
SSLCertificateChainFile /etc/httpd/conf/ca-bundle



Save your httpd.conf file and restart Apache. You can most likely do so by using the apachectl script:

apachectl stop
apachectl startssl

You are now all set to start using your InstantSSL certificate with your Apache + ModSSL

Özdemir Şarman
aka (Charmant-zavanetratan)
Web Sayfasını Ziyeret Edin Tüm Mesajlarını Bul
Alıntı Yaparak Cevapla
Cevapla 


'Apache Web Sunucu' Konusunu PaylaÅŸ
  • RSS
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Facebook
  • Reddit
  • Google
  • YahooMyWeb
  • E-mail

Benzeyen Konular
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Aynı sunucu üzerinde birden çok Exim MTA çalıştırmak root 1 166 11-29-2011 05:59 PM
Son Mesaj: root
  ADIM ADIM APACHE 1.3.31 + PHP 4.3.8 + MOD_SSL 2.8.19-1.3.31 ozsarman 0 285 03-17-2010 02:52 PM
Son Mesaj: ozsarman
  Apache ve Mysql Tuning ozsarman 0 275 03-17-2010 02:51 PM
Son Mesaj: ozsarman
  MRTG ile Windows 2000 sunucu performansını grafiklemek ozsarman 0 276 03-17-2010 02:51 PM
Son Mesaj: ozsarman
  Apache Ve Referrer Log ozsarman 0 258 03-17-2010 02:39 PM
Son Mesaj: ozsarman
  Apache Hata Mesajlarının Düzenlenmesi ozsarman 0 254 03-17-2010 02:38 PM
Son Mesaj: ozsarman
  Apache .htaccess Rewrite ozsarman 0 418 03-17-2010 02:36 PM
Son Mesaj: ozsarman
  Fedora 4 Apache 2.x üzerinde Türkçe sayfa ayarları ozsarman 0 363 03-17-2010 11:05 AM
Son Mesaj: ozsarman
  POSTFIX HA MAİL SUNUCU OPTİMİZASYONU ozsarman 0 249 03-17-2010 10:47 AM
Son Mesaj: ozsarman
  Ntp Sunucu Kurulumu ozsarman 0 1,315 03-15-2010 06:51 PM
Son Mesaj: ozsarman

Forum Atla:


İletişim | SistemOdasi.net | Yukarıya dön | İçeriğe Dön | RSS
site ekle
Zirve100
Toplist