LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-17-2003, 09:40 PM   #1
mla
Member
 
Registered: Sep 2003
Location: Canada
Posts: 86

Rep: Reputation: 15
Apache https question?


RH9
I installed Apache, placed index.html to /var/www/html.
It's functioning well.
I installed everything that is nessecery for HTTPS.
I can see now my test page through https.

My questions:

1. In what folder I have to place index.html for HTTPS connection?

when I point browser to http://10.0.0.50 it goes to /var/ww/html
when I point it to https://10.0.0.50 it goes to the test page

what is the default folder for https?

2. I would like that after accepting server sertificate, user will
not see web page. Instead just login box for accessing folder
with documents? Is it possible? How to bypass index.html?

3. In addition I would like that user will connects to https server (RH9) and will be able to access folders on win2K computer.

Thanks in advance for detailed instructions.
Michael.
 
Old 10-18-2003, 01:03 AM   #2
Dr.Fark
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
Question 1. Testing it on my system, https: requests go to the same folder that http: requests go to.
Question 2. Look at http://www.lugatgt.org/articles/apache/#toc_2_4 , or just do a google search for apache, and how to use htaccess. It seems like a pain,but htier are really just three or 4 steps involved.
Question 3. For accessing a win2k folder via apachie, what you'll need to do is install smbclient on the linux box, mount the folder using "mount -t smbfs -o username=YOUR_WINDOWS_USERNAME,password=THE_PASSWORD //WIN2K_IPADDRESS/SHARE /LOCAL_LINUX_MOUNT/MY_FOLDER" Of course the stuff in all caps is going to be changed for your needs. As far as mounting you can modify /etc/fstab (which you need to look up ) or just edit your /etc/rc.local script. Then you'll need to create symlinks to the windows folders under your /var/www/html folder, or just mount them strait to /var/www/ root (which I don't know if that's too good of an idea), and modify your /etc/https/conf/httpd.conf file to create another diectory. ---All this will take time for a newbie to learn, but if you separate the tasks of getting linux to mount a windows share, and then adding a folder to apache, you'll make things simple.
 
Old 10-18-2003, 07:17 AM   #3
mla
Member
 
Registered: Sep 2003
Location: Canada
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks Dr.
I will try 2. and 3.
IMHO 1. is not very right.
I can access both http and https pages.
Https shows test page that is not in /var/www/html (here is my index.html)
Test is in /var/www/error. And the page name is noindex.html.
That's why I think that index.html for https suppose to be in different place.
 
Old 10-18-2003, 04:20 PM   #4
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Rep: Reputation: 30
Quote:
Originally posted by mla
Thanks Dr.
I will try 2. and 3.
IMHO 1. is not very right.
I can access both http and https pages.
Https shows test page that is not in /var/www/html (here is my index.html)
Test is in /var/www/error. And the page name is noindex.html.
That's why I think that index.html for https suppose to be in different place.
It's actually possible to set DocumentRoot for HTTPS to a different directory than HTTP, however, I don't know why anyone would want to. It actually defeats the purpose of HTTPS. You would have to have a separate site for HTTP and HTTPS.

I would do a search of your httpd.conf and look for DocumentRoot. You want that the same for both http and https. On some configurations the SSL host has a separate config file, ssl.conf.

Mike

Last edited by MiscGeek; 10-18-2003 at 04:21 PM.
 
  


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
Trying to using HTTPS in Apache 2.0.54-10.1 Wimpie22 Linux - Software 1 08-24-2005 03:37 PM
can't switch https off with apache 2 barrys Mandriva 2 10-22-2004 06:56 AM
apache and https? xviddivxoggmp3 Linux - Software 3 04-15-2004 11:22 PM
Apache doesn't listen to 443 (https) yapp Linux - Networking 5 07-03-2003 06:23 PM
Apache https DavidPhillips Linux - General 3 03-11-2002 01:14 AM


All times are GMT -5. The time now is 03:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration