LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Reply
  Search this Thread
Old 11-15-2013, 11:40 PM   #1
diaablo2
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
Question problem in hosting apache based https server on centos 6.3!!


I have configured apache based http and that worked well. But what are the requirement for https. Should i use mod_ssl or open_ssl. What are the differences. And please provide me steps for configuring https. Thanks in advance!!
 
Old 11-16-2013, 02:57 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Quote:
Originally Posted by diaablo2 View Post
I have configured apache based http and that worked well. But what are the requirement for https. Should i use mod_ssl or open_ssl. What are the differences. And please provide me steps for configuring https. Thanks in advance!!
Maybe this will help: Setting up an SSL secured Webserver with CentOS
 
1 members found this post helpful.
Old 11-16-2013, 04:08 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,545

Rep: Reputation: 136Reputation: 136
If you want to host real world websites on that server you need SSL certificates from a certification authority. You have to pay money for it and gain less security than promised as some of the CAs cooperate with NSA and maybe others who pay.
 
Old 11-18-2013, 09:16 PM   #4
diaablo2
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unhappy Stuck in some minor problems

Quote:
Originally Posted by druuna View Post


That was great tutorial and easy one too.. Anyways thnaks a lot for the link and also please continue working this way.
And when i open the page that i hosted 'suppose "www.diwas.com" ' , directory shows and i have to again click in my index.html to get what i wanted. why is that so?

My detail configuration are:-
i am running centos 6.3 32bit in vmware

/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.13.134 www.diwas.com diwas.com

/etc/httpd/conf/httpd.conf
VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory /var/www/html/apachetest/>
AllowOverride All
</Directory>
ServerAdmin pradhan.diwas@gmail.com
DocumentRoot /var/www/html/apachetest
ServerName www.diwas.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

and my index.html is inside /var/www/html/apachetest

ca.key
ca.csr
ca.crt
are created in the same place as mentioned inside /etc/.......
please help and also https works fine but only i need to know
Cant i type www.diwas.com to achieve https://www.diwas.com rather than always typing https://www.diwas.com
please help!!!!!!!!!!!!!
 
Old 11-19-2013, 02:50 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Quote:
Originally Posted by diaablo2 View Post
And when i open the page that i hosted 'suppose "www.diwas.com" ' , directory shows and i have to again click in my index.html to get what i wanted. why is that so?
Apaches DirectoryIndex should take care of this. Have a look here: Apache HTTP Server Modules and here Apache Display / Change a Default Page Other Than index.html

Quote:
Cant i type www.diwas.com to achieve https://www.diwas.com rather than always typing https://www.diwas.com
The http:// part is the default used by browsers. If you enter an address without it, the browser automatically puts this in front of the address.

There are ways to automatically redirect http to https. Here are a few links:
-(browser side) Some browsers have a plugin that can do this (example: HTTPS Everywhere).
-(server side) You can also let the server do all the work: Apache SSL in htaccess examples or Apache: Redirect http to https Apache secure connection force HTTPS Connections.
 
  


Reply


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
hosting asp.NET website on linux based server using Tomcat Apache harrybazeegar Linux - Server 3 06-02-2007 06:47 AM
Apache Virtual Name-Based Hosting and Default Site Poetics Linux - Server 4 03-31-2007 11:28 PM
Apache and IP - Based virtual Hosting shawnbishop Linux - Software 2 10-27-2006 09:56 AM
Config file for Apache name-based virtual hosting mnm_mc Linux - Software 5 03-22-2006 03:29 AM
Trouble with Named based Virtual hosting in Apache 2 IanChristie Linux - Networking 16 11-07-2003 02:04 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration