Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

SSI

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache: Apache quits responding  
Author Message
EverettLindsay

External


Since: Jan 01, 2006
Posts: 5



(Msg. 1) Posted: Sun Jan 01, 2006 11:43 pm
Post subject: SSI
Archived from groups: alt>apache>configuration (more info?)

I'm a novice with Apache administration. I've spent the last six hours
trying to enable SSI. I'm building a site which will be hosted on a
remote server. To duplicate these conditions on my test server, I'm
enabling SSI through an .htaccess file instead of the httpd.config
file.

But first, I need to enable the httpd.config file to recognize
..htaccess files. The httpd.config file starts like this:

<Directory "/www/webroot">
Order allow,deny
AllowOverride none
Allow from all
</Directory>

When I change it to this:

<Directory "/www/webroot">
Order allow,deny
AllowOverride Options
Allow from all
</Directory>

it stops working. My understanding was that if I did this, then
created a file named .htaccess in the /www/webroot directory which
said:

Options +Includes

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

--that I would enable SSI for all files with the .shtml extension in my
webroot. However, when I restart the server and reload my page, I
receive an "Internal Server Error." I am doing something wrong?

(If it helps any, the only other set of <Directory> tags with a wider
scope looks like this:

<Directory />
Options None
AllowOverride None
Order allow,deny
Deny from all
</Directory>
)

 >> Stay informed about: SSI 
Back to top
Login to vote
EverettLindsay

External


Since: Jan 01, 2006
Posts: 5



(Msg. 2) Posted: Mon Jan 02, 2006 10:17 am
Post subject: Re: SSI [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Son of a gun, that did it!

THANK you!

> Why don't you add this inside your <Directory "/www/webroot">-Container
> and leave AllowOverride None? This wold be better in the aspect of
> performance issues.

Well, it's like I said before,

>> I'm building a site which will be hosted on a
>> remote server. To duplicate these conditions on my test server, I'm
>> enabling SSI through an .htaccess file instead of the httpd.config
>> file.

I've checked with the hosting company, and while they will not allow me
to dictate changes to the httpd.config file, they do allow the use of
..htaccess.

--E.

 >> Stay informed about: SSI 
Back to top
Login to vote
Robert Ionescu

External


Since: Nov 10, 2005
Posts: 21



(Msg. 3) Posted: Mon Jan 02, 2006 10:55 am
Post subject: Re: SSI [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

EverettLindsay.DeleteThis@gmail.com wrote:
> But first, I need to enable the httpd.config file to recognize
> ..htaccess files. The httpd.config file starts like this:
>
> <Directory "/www/webroot">
> Order allow,deny
> AllowOverride none
> Allow from all
> </Directory>
>
> When I change it to this:
>
> <Directory "/www/webroot">
> Order allow,deny
> AllowOverride Options
> Allow from all
> </Directory>

You must also set FileInfo to the AllowOverride directive to use AddType
and AddOutputFilter in a .htaccess file:

AllowOverride Options FileInfo

> it stops working. My understanding was that if I did this, then
> created a file named .htaccess in the /www/webroot directory which
> said:
>
> Options +Includes
>
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml

Why don't you add this inside your <Directory "/www/webroot">-Container
and leave AllowOverride None? This wold be better in the aspect of
performance issues.

<Directory "/www/webroot">
Order allow,deny
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Directory>

> --that I would enable SSI for all files with the .shtml extension in my
> webroot. However, when I restart the server and reload my page, I
> receive an "Internal Server Error."

I think it's from the missing AllowOverride FileInfo.
 >> Stay informed about: SSI 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]