LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 01-16-2009, 10:19 PM   #1
rajaguru14
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

<VirtualHost 192.168.1.5:80>
Documentroot /var/www/html/
DirectoryIndex index.html
ServerAdmin root@station5.example.com
ServerName station5.example.com
</VirtualHost>

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 station5.example.com:443
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: station5.example.com

it came as http://station5.example.com
I want it to come as https://station5.example.com, 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
billymayday
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 http://www.linuxquestions.org/questi...-rhel5-697542/
 
Old 01-17-2009, 07:04 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:15 PM.

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