IBM developerWorks
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old July 2nd, 2001, 11:29 PM
Helicon Helicon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 15 Helicon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Server Side Include

I have a small problem.

I cannot get includes to work under the apache ssl.
here is a test:

http://www.ranchomirage.org
https://www.ranchomirage.org

The menu and footer includes which are such as:
<!--#include virtual="/inc/footer.html" -->

does not work with the apache-ssl

It is a minor problem as I worked around it but it would be nice to enable such.

can anyone help?

This is what my conf for this domain is in apache-ssl
What am I doing wrong?

<VirtualHost 63.68.165.133>
ServerName www.ranchomirage.org
ServerAlias www.ranchomirage.org
DocumentRoot /home/sites/ranchomirage.org
ErrorLog /home/logs/error_ranchomirage.org.ssl.log
TransferLog /home/logs/access_ranchomirage.org.ssl.log
Options All MultiViews ExecCGI Includes
ScriptAlias /cgi-bin/ /home/sites/ranchomirage.org/cgi-bin/
SSLEngine On
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache-ssl/conf/ranchomirage.crt
SSLCertificateKeyFile /usr/local/apache-ssl/conf/ranchomirage.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/home/sites/ranchomirage.org/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>

Helicon

Reply With Quote
  #2  
Old July 3rd, 2001, 04:26 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1) You are missing a <Directory "/home/sites/ranchomirage.org">

2) Your line Options All MultiViews ExecCGI Includes should go within <Directory "/home/sites/ranchomirage.org">. A <Directory> block can also go within a <VirtualHost> block.

3) Your line Options All MultiViews ExecCGI Includes really should be: Options All MultiViews instead because All covers ExecCGI and Includes.

4) Your line ServerAlias www.ranchomirage.org is really useless there. First, you don't put a ServerAlias exactly the same as your default ServerName www.ranchomirage.org. Second, you seem to be using Name-based vhost configuration, your SSL site can only be www.ranchomirage.org. That said, using https://ranchomirage.org will give you the same site www.ranchomirage.org, but you will see tons of error as well as cn mismatch error because accessing to your secure site via https://ranchomirage.org in your configuration violates SSL standard. Check the recent thread in Apache message to find out why -> http://forums.devshed.com/showthrea...7358&forumid=15

5) Your line ScriptAlias /cgi-bin/ /home/sites/ranchomirage.org/cgi-bin/. This is not a personal preference, the purpose of ScriptAlias of Alias is for mapping path not within your docroot. You cgi-bin obviously is under your docroot. It somehow defeat the security purpose of ScriptAlias.

BTW, what is your default docroot? You may try <!--#include file="inc/footer.html" -->, which takes the relative path of your current html document. include virtual takes the URL path from the top.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Server Side Include


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway