Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 01-16-2009, 10:19 PM   #1
LQ Newbie
Registered: Nov 2008
Posts: 23

Rep: Reputation: 15
HTTPS Webserver Configuration

I have configured web server in HTTPS in RedHat ( RHEL5 )

I changed the file

# /etc/httpd/conf/httpd.conf

Documentroot /var/www/html/
DirectoryIndex index.html

and I created the certificate in

# cd /etc/pki/tls/certs/
# make server.key
# make server.crt
# cp server.key /etc/pki/tls/private/

and then I edited the file

# cd /etc/httpd/conf.d/ssl.conf

these are the following lines that I edited

85 ServerName
112 SSLCertificateFile /etc/pki/tls/certs/server.crt
119 SSLCertificateKeyFile /etc/pki/tls/private/server.key

then I restarted the service httpd

the I opened the brower and then I entered the URL:

it came as
I want it to come as, automatically

Note: One of my friend told me , ServerAlias should be used , but I cant understand

Kindly please help me , Thanks in advance

Last edited by rajaguru14; 01-17-2009 at 12:22 AM.
Old 01-16-2009, 10:23 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Reported as double post of
Old 01-17-2009, 07:04 AM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

configuration, https, server, web

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid configuration question. Client => HTTPS => proxy => HTTP => webserver newhere Fedora 5 02-21-2009 01:33 PM
HTTPS Configuration rajaguru14 Linux - Newbie 3 01-17-2009 01:22 AM
Allow only ssl, https:// not http:// on apache2 webserver, Linux therapeias Linux - Server 1 04-11-2008 04:03 PM
Squirrelmail webserver configuration selestin Mathew Linux - Server 1 12-03-2007 07:01 AM
Setting up secure apache2 webserver https access on suse linux 9.2 svanati SUSE / openSUSE 4 12-21-2004 08:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration