LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-21-2003, 10:00 PM   #1
chiefobeef
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
Apache & Includes


I am having some problems getting SSIs to work with Apache, in Mandrake Linux 9.1.

I am confused because I have followed the directions on apache.org. I guess my question is does it matter where I put my directives in terms of .conf files. I have httpd.conf, httpd2.conf and commonhttpd.conf. So I am sort of confused. I checked and httpd.conf is loading mod_includes. Here's my commonhttpd.conf:

Quote:
### Common server configuration
#
User apache
Group apache

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents.
#
ServerAdmin root@localhost

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# DO NOT MODIFY THIS ONE, USE httpd.conf and httpd-perl.conf
#DocumentRoot /var/www/html


#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
# Also, for security, we disable indexes globally
#
<Directory />
Options +Includes -Indexes FollowSymLinks
AllowOverride None
</Directory>

#Restricted set of options
AddType text/html .shtml
AddHandler server-parsed .shtml

#<Directory />
# Options +Includes +Multiviews -Indexes
# AllowOverride None
# <IfModule mod_access.c>
# Order deny,allow
# Deny from all
# </IfModule>
#</Directory>

 
Old 10-22-2003, 12:02 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,591

Rep: Reputation: 96
Re: Apache & Includes

Quote:
Originally posted by chiefobeef
I am having some problems getting SSIs to work with Apache, in Mandrake Linux 9.1.

I am confused because I have followed the directions on apache.org. I guess my question is does it matter where I put my directives in terms of .conf files. I have httpd.conf, httpd2.conf and commonhttpd.conf. So I am sort of confused. I checked and httpd.conf is loading mod_includes. Here's my commonhttpd.conf:
You most likely have not uncommented the line to load the includes module in the /etc/apache/http.conf file from my install:
Code:
LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
If you want to use a index.shtml then you will have to change these lines to have it first on the directory index line.
Code:
<IfModule mod_dir.c>
    DirectoryIndex index.shtml index.htm index.html index.cgi
</IfModule>
If it does not find your other .shtml files you have to uncomment the same AddHandler and AddType that are at the bottom of the file that are in your post. You have to re-start apache for the changes to take effect.
 
Old 10-22-2003, 12:43 AM   #3
chiefobeef
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Re: Re: Apache & Includes

Once again, I solved my own stupid error.

And once again it had nothing to do with config, but rather file permissions. I didn't have execute permissions on the include file set. :sigh: Do they make a book called "Linux File Permissions" because I need to read it.

Last edited by chiefobeef; 10-22-2003 at 01:13 AM.
 
  


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
ISS & ASP/.NET or Apache & PHP fuelinjection General 3 12-06-2005 08:41 AM
Apache 2.0 Problem with Includes anilnatha Linux - Software 1 04-20-2005 07:20 AM
SElinux & php4 & interbase & apache maxut Linux - Security 0 03-15-2005 05:57 AM
Apache / PHP4 includes problem? DevlshOne Red Hat 0 01-06-2004 10:18 PM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 PM.

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