On Fri, May 28, 2010 at 8:29 AM, gping <gping2005@xxxxxxxxxxxxxxx> wrote: > > I am using Fedora 10 httpd. By default, I can http:// and https:// to the > host. > Now I want to > > 1. disable http:// ie disable port 80 and keep https:// or port 443 only. > I am still using the default DocumentRoot /var/www/html/. > I am confused if I should use Listen 443 or Listen x.x.x.x:443 or ServerName > aaa.com:443 . > because when I /etc/init.d/httpd restart, it complainted 443 is already > bind... > > 2. I use openssl to self-signed a certificate: > openssl genrsa -des3 -out server.key 4096 > openssl req -new -key server.key -out server.csr > openssl x509 -req -days 365 -in server.csr -signkey server.key -out > server.crt > > Then I add > SSLEngine on > SSLCertificateFile /home/test/server.crt > SSLCertificateKeyFile /home/test/server.key > just below the line of DocumentRoot > > but the https:// result is it still showed default system certificate > (something like localhost..) not my self-signed one. > > At this stage I dont plan to use <VirtualHost> ... to include the above > certificate. > Could someone please help. Thanks a lot. > -- > View this message in context: http://old.nabble.com/install-certificate-on-httpd-tp28702259p28702259.html > Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > Fedora's default httpd installation configures mod_ssl in /etc/httpd/conf.d/ssl.conf Edit that and your problem should be solved. I think you're trying to edit the configuration right into /etc/httpd/conf/httpd.conf ? -- Nilesh Govindarajan Facebook: nilesh.gr Twitter: nileshgr Website: www.itech7.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx