Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess delemma 1

Status
Not open for further replies.

Cadwalader

IS-IT--Management
Feb 12, 2002
297
US
How goes it?

I have an SSI that I need to run on a virtual host. There is NO .htaccess file what so ever yet. It appears as though httpd.conf is pretty much unmodified, except for the basics and the v-hosting. I have root access (although I'd rather not go that route).

this is the .htaccess file:

AuthName AddHandler server-parsed .html

Am I missing anything?
Any suggestions? Hope I was of some help...
--OR--
Thanks for the help...
--Rich
 
Hi mate,

What version of Apache are you running?

I might be missing something but why do you have an AuthName?

Also, you will need to make sure that htaccess has the permission to override the default set-up for the necessary directories.

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Hey Wullie,

I don't know why I have an AuthName. It was out of desperation that it's in there. I go to one site that says you need this and this, I go to another that says you only need this. I am so lost it's not funny (well, maybe it is funny..hehehe).

What do I need to do? I enabled "Includes" in the options setting in httpd.conf, and some other stuff that I can't remember right now...

Apache 1.3.26 (I think it's ...26)

thanks for the help.
:)
Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Hi mate,

The contents of your htaccess should be as follows:



AddHandler server-parsed .html



Note: It is highly advisable not to use this configuration unless there is only a few files in this directory. This makes the server check every html file for SSI, not just the ones that actually contain it.

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Hey Wullie,

It's still not parsing. I am aware of the server loading.

Could it be something in the httpd.conf?

I have been screwing with this for four days now, and I am getting nowhere, except for frustrated...[bugeyed] Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Hi mate,

Above you said I enabled "Includes" in the options setting in httpd.conf,

You also need to give htaccess permission to override the server default for the config.

This is done using the AllowOverride directive.

Try changing what you currently have for that directory to the following:

AllowOverride All

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
heheheh
AAAhhahhahahaha

Wullie, if I could reach ya, I'd kiss ya!!! (not really, but you get the piont)

Ok, I got that SSI working on my little, built-from-free-spare-parts server, I have to get the same exact thing working on a live server with virtual hosting.(keep that in mind)

On my server, (not the live one) I set every AllowOverride to All. Is that going to be a problem with a live server witrh virtual hosting? (ie security, current config) Or is there just *one* AllowOverride that has to be changed? Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top