Need Apache help, "server-parsed" with "send-as-is".

Need Apache help, "server-parsed" with "send-as-is".

Post by luna.. » Mon, 07 May 2001 10:06:23



  Am using an Apache server, not directly under my control.
I can place "server-parsed" or "send-as-is" in my htaccess
file; but if I use both, "send-as-is" prevails and Apache
won't parse any SSI directives.
  Need a way to send a custom status code and content-type,
yet still use SSI. The htaccess file is my only control over
Apache. Is there any way to do this?

  Thank you.

 
 
 

Need Apache help, "server-parsed" with "send-as-is".

Post by Joshua Sliv » Mon, 07 May 2001 10:16:04



>   Am using an Apache server, not directly under my control.
> I can place "server-parsed" or "send-as-is" in my htaccess
> file; but if I use both, "send-as-is" prevails and Apache
> won't parse any SSI directives.
>   Need a way to send a custom status code and content-type,
> yet still use SSI. The htaccess file is my only control over
> Apache. Is there any way to do this?

No, not in Apache 1.3.  In Apache 2.0, mod_include is a filter, so
this should work.

--
Joshua Slive

http://slive.ca/

 
 
 

Need Apache help, "server-parsed" with "send-as-is".

Post by Paul Rubi » Mon, 07 May 2001 10:19:28



>   Am using an Apache server, not directly under my control.
> I can place "server-parsed" or "send-as-is" in my htaccess
> file; but if I use both, "send-as-is" prevails and Apache
> won't parse any SSI directives.
>   Need a way to send a custom status code and content-type,
> yet still use SSI. The htaccess file is my only control over
> Apache. Is there any way to do this?

As-is is for static pages.  You want non-parsed-headers (nph).
 
 
 

Need Apache help, "server-parsed" with "send-as-is".

Post by luna.. » Mon, 07 May 2001 10:53:08


  Ok. Is there any way to use non-parsed headers on a mostly
static page? (SSI only)
  I just tried a search for nph, but couldn't find any references
that didn't involve perl or cgi scripts.
  If there is no other way besides a script, what implementation
would involve the least server cpu-utilization? A pointer to an
example would be helpful.

  Thank you again.




>>   Am using an Apache server, not directly under my control.
>> I can place "server-parsed" or "send-as-is" in my htaccess
>> file; but if I use both, "send-as-is" prevails and Apache
>> won't parse any SSI directives.
>>   Need a way to send a custom status code and content-type,
>> yet still use SSI. The htaccess file is my only control over
>> Apache. Is there any way to do this?

>As-is is for static pages.  You want non-parsed-headers (nph).

 
 
 

Need Apache help, "server-parsed" with "send-as-is".

Post by Joshua Sliv » Mon, 07 May 2001 11:20:21



>   Ok. Is there any way to use non-parsed headers on a mostly
> static page? (SSI only)
>   I just tried a search for nph, but couldn't find any references
> that didn't involve perl or cgi scripts.
>   If there is no other way besides a script, what implementation
> would involve the least server cpu-utilization? A pointer to an
> example would be helpful.

No.  nph is only for CGI scripts.

Perhaps you could explain exactly why you are trying do this.
If you just want to add a couple HTTP headers, you can do this
with other modules.

--
Joshua Slive

http://slive.ca/

 
 
 

Need Apache help, "server-parsed" with "send-as-is".

Post by luna.. » Mon, 07 May 2001 11:39:49


  Yes. That is exactly what I'm trying to do. I want a
standard web page that can use SSI, and I need to control
the http headers including "status:" "location:" and
"content-type:".
  Which other modules should I use to do this?



>>   Ok. Is there any way to use non-parsed headers on a mostly
>> static page? (SSI only)
>>   I just tried a search for nph, but couldn't find any references
>> that didn't involve perl or cgi scripts.
>>   If there is no other way besides a script, what implementation
>> would involve the least server cpu-utilization? A pointer to an
>> example would be helpful.

>No.  nph is only for CGI scripts.

>Perhaps you could explain exactly why you are trying do this.
>If you just want to add a couple HTTP headers, you can do this
>with other modules.

>--
>Joshua Slive

>http://slive.ca/

 
 
 

Need Apache help, "server-parsed" with "send-as-is".

Post by Joshua Sliv » Mon, 07 May 2001 12:05:46



>   Yes. That is exactly what I'm trying to do. I want a
> standard web page that can use SSI, and I need to control
> the http headers including "status:" "location:" and
> "content-type:".
>   Which other modules should I use to do this?

Can you give some examples of EXACTLY what you need to do?

I can't recall whether or not SSI pages can have content-type's
other than text/html.  You can try using the AddType directive
in the server config.

The standard way of "controlling" the Location is with the Redirect
directive.  I am guessing that this is also what you need to change
the status.  However, if you need more flexibility, then you most
likely will need to use either CGI or a more powerful scripting
language (eg. PHP).

--
Joshua Slive

http://slive.ca/