LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-10-2006, 08:17 AM   #1
Mr_Oz
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Rep: Reputation: 0
Enabling SSI with Apache


Hi,

I need to enable Server Side Includes on my Apache server. I have found information but I am just a little confused on where to put the information I reaearched. For exmaple some sites tell me to put in the Oprion +Includes in the http.conf file. Problem is, i do not know where to put these statements. I use the UserDir so users can use their home directories as web sites? Can someone just walk me through exactly what I need to do.

Thanks.
 
Old 04-11-2006, 06:41 PM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
look in /etc for a folder called "apache[2]" or "http[d]"

the httpd.conf file should be below that point.
 
Old 04-11-2006, 06:45 PM   #3
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
They go inside a Directory section.
If you only want it to apply to the userdir's, put it in the /home/*/public_html.
If you want it to be global, or under DocumentRoot, put it in the appropriate Directory section for that.

----------------------------------------------------------------------
...and it looks like secesh got to this while I was typing.

Last edited by RHELL; 04-11-2006 at 06:58 PM.
 
Old 04-11-2006, 08:42 PM   #4
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
eh. i prefer to put them under a "files" directive. that way, all *.shtml files can be included, no matter what directory they are in.
 
Old 04-12-2006, 07:59 AM   #5
Mr_Oz
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks guys. Here is my UserDir code. Is where is this correct?


<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
#Options MultiViews SymLinksIfOwnerMatch
Options MultiViews Indexes ExecCGI
Options Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
 
  


Reply



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
Enabling SSI in Apache2.0 lawadm1 Linux - Software 1 08-11-2004 09:11 AM
Enabling SSI so I can use a site counter? WorldBuilder Linux - Networking 3 12-15-2003 10:13 AM
SSI and Apache 2 krumholz Linux - General 6 10-05-2003 07:50 PM
ssi in apache lustra Linux - Networking 0 02-28-2002 06:41 PM
Apache and SSI? phek Linux - Newbie 2 10-24-2001 04:26 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:56 AM.

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
Open Source Consulting | Domain Registration