|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Server Side Include |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|