You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Doumani <fu...@comcast.net> on 2004/02/23 03:27:05 UTC

[users@httpd] 3 newbie questions....

Hello,

I have tried finding the answers for these three questions on apache.org but
have not been able to solve the problems:

1) I've configured the httpd.conf file to parse .shtml files starting from
the root dir of the virtual host by adding the following:

    <Directory "/wampp2/htdocs/hokkeko">
      Options +Includes
      AddType text/html .shtml
      AddOutputFilter INCLUDES .shtml
    </Directory>

but only files in the root directory are being parsed... files in child dirs
are not parsed and the pages hang in the browser. Could it be because there
are other occurences of the "AddType text/html .shtml" and the
"AddOutputFilter INCLUDES .shtml" commands in other locations in the conf
file? Please see ** below.
___________________

2) when including javascript file such the following, they are not being
parsed....

<SCRIPT LANGUAGE="JavaScript1.2"
SRC="/toolkit/javascript/sitelib.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2"
SRC="/toolkit/javascript/menuparams.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2"
SRC="/toolkit/javascript/menuarrays.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2"
SRC="/toolkit/javascript/menuengine.js"></SCRIPT>

I added "AddHandler Javascript .js" to the following Directory container:

<DIRECTORY "/wampp2/htdocs/">
        Options Indexes FollowSymLinks MultiViews Includes ExecCGI
        AddHandler server-parsed .shtml
        AddHandler cgi-script .cgi
        AddHandler Javascript .js
        AllowOverride none
        Order allow,deny
        Allow from all
</DIRECTORY>
_________________

3) Is it possible for two sites defined in two different virtualhost
containers to share a common directory that is outside of the root dir
structure for those virtual hosts??? for example,

one site has C:/wampp2/apache/htdocs/domain1/
and the other:  C:/wampp2/apache/htdocs/domain2/

Is it possible to have each site access files in the following directory?

C:/wampp2/apache/htdocs/common/

Thank you in advance for your assitance!!

best,

John D.



**  Occurences of the commands to parse .shtml files **
-----------------(1)----------------
<Directory "/wampp2/htdocs">



#

# Possible values for the Options directive are "None", "All",

# or any combination of:

#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews

#

# Note that "MultiViews" must be named *explicitly* --- "Options All"

# doesn't give it to you.

#

# The Options directive is both complicated and important.  Please see

# http://httpd.apache.org/docs-2.0/mod/core.html#options

# for more information.

#

                Options Indexes FollowSymLinks MultiViews Includes ExecCGI

        AddHandler server-parsed .shtml

        AddHandler cgi-script .cgi

# ReadmeName footer.html

#

# AllowOverride controls what directives may be placed in .htaccess files.

# It can be "All", "None", or any combination of the keywords:

#   Options FileInfo AuthConfig Limit

#



        AllowOverride none
        Order allow,deny


</Directory>



----------------(2)----------------- 

<Directory "/wampp2/htdocs/grizzly">

      Options +Includes

      AddType text/html .shtml

      AddOutputFilter INCLUDES .shtml

</Directory>





 -------------------------------(3)----------------------------------

#

# "/wampp2/apache/cgi-bin" should be changed to whatever your ScriptAliased

# CGI directory exists, if you have that configured.

#

<Directory "/wampp2/cgi-bin">

    AllowOverride None

    Options Includes ExecCGI

        AddHandler server-parsed .shtml

        AddHandler cgi-script .cgi .pl

    Order allow,deny

    Allow from all

</Directory>





---------------(4)----------------- 

# In the addhandler section

# Filters allow you to process content before it is sent to the client.

#

# To parse .shtml files for server-side includes (SSI):

# (You will also need to add "Includes" to the "Options" directive.)

#



      AddType text/html .shtml

      AddOutputFilter INCLUDES .shtml







---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org