LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-28-2003, 11:00 PM   #1
ohe
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Rep: Reputation: 0
default index file for ssl


Can someone tell me how to set the default index.htm or shtml file for ssl. I have ssl running fine, but if I type in the the site address as https://www.mydomain.org I get the Apache defalt page and not my index.htm.

Any ideas on how to change this?

Thanks,
Tony
 
Old 09-29-2003, 02:00 PM   #2
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Re: default index file for ssl

Quote:
Originally posted by ohe
Can someone tell me how to set the default index.htm or shtml file for ssl. I have ssl running fine, but if I type in the the site address as https://www.mydomain.org I get the Apache defalt page and not my index.htm.

Any ideas on how to change this?

Thanks,
Tony
Please provide more info, what kind of version of apache do you use? An example for apache2, check the config file in:

/etc/apache2/conf/modules.d/41_mod_ssl.default-vhost.conf

Make sure that the path is correct (something like: "DocumentRoot "/home/httpd/htdocs/myhttps-part/")

b.t.w. does it read your index.html by typing: https://www.mydomain.org or does it also read the apache default index.html ? If that's the case, check the: /etc/apache2/conf/commonapache2.conf and search for the line like:

<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Defau
lt.htm default.htm
</IfModule>

Hope this helps,

Last edited by daveo; 09-29-2003 at 02:03 PM.
 
Old 09-29-2003, 04:42 PM   #3
ohe
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
I worked it out. I edited the sll.conf to read default as /var/www/shtml and I place an index.htm file in there and it now reads it.
 
  


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
Apache Default Index Cool_Hand_Luke Linux - Newbie 7 03-25-2005 12:16 PM
How to change the default index.html in Apache bngrhl Linux - Newbie 2 06-08-2004 02:47 PM
Apache segmentation fault with with default index files paijm021 Linux - Software 13 04-22-2004 09:51 AM
Apache won't default to index.html TexasDex Linux - Software 5 04-05-2004 09:33 AM
index.asp as default page daveuk Linux - Software 2 09-13-2002 02:51 AM


All times are GMT -5. The time now is 02:13 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