|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Not sure if this is the right group, so if anyone has a better
suggestion please let me know. I run Apache 2.x under Win2K for development, but host on a *nix box. Currently I have a set of pages that uses SSI include virtual commands to embed common content into all the pages. I have a navigation panel that I want to behave a certain way. When that particular page is being viewed, I want to change the text link to a different style, as a visual clue what page is being viewed. This works perfectly on my system at home, but when uploaded to my host, I get an error for the external file that is being called in. I have no idea why it would work at home and not on my host. As far as I can see I'm using XSSI commands but the host server should be able to handle them, it is 1.3.34. All other included files work fine. Here is an example of what the external file does: <!--#if expr = "'$DOCUMENT_NAME' = 'contact.shtml'"--> <div style="line-height:2">Contact Us</div> <!--#else--> <div style="line-height:2"><a href="contact.shtml">Contact Us</a></div> <!--#endif --> What happens is, when each page is loaded, it spits out an error "[an error occurred while processing this directive]". Visit http://www.softouch.on.ca/ssi/index.shtml to see what I mean. If anyone has a clue why this might be happening I would appreciate some ideas. -- Amer Neely Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
[ Amer Neely ]
> What happens is, when each page is loaded, it spits out an error "[an > error occurred while processing this directive]". Visit > http://www.softouch.on.ca/ssi/index.shtml to see what I mean. > > If anyone has a clue why this might be happening I would appreciate > some ideas. A more verbose error-message should be written to your Apache-servers error_log. You could you post the relevant entries here if they don't you along towards enlightenment. Rgds, Kenneth Svee |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
[ Amer Neely ]
> What happens is, when each page is loaded, it spits out an error "[an > error occurred while processing this directive]". Visit > http://www.softouch.on.ca/ssi/index.shtml to see what I mean. > > If anyone has a clue why this might be happening I would appreciate > some ideas. A more verbose error-message should be written to your Apache-servers error_log. You could you post the relevant entries here if they don't you along towards enlightenment. Rgds, Kenneth Svee |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Kenneth Svee wrote:
> [ Amer Neely ] > >> What happens is, when each page is loaded, it spits out an error "[an >> error occurred while processing this directive]". Visit >> http://www.softouch.on.ca/ssi/index.shtml to see what I mean. >> >> If anyone has a clue why this might be happening I would appreciate >> some ideas. > > A more verbose error-message should be written to your Apache-servers > error_log. You could you post the relevant entries here if they don't > you along towards enlightenment. > > > Rgds, > Kenneth Svee > Good idea. But here's all I found: [Mon Apr 24 09:23:16 2006] [error] [client 24.235.191.210] unknown directive "else-->" in parsed doc /home/softouch/public_html/ssi/xssi-navigation.shtml The file in question has a chain of 'if-else-endif' directives. And they all have '<--#' with no space between the octothorpe and command, and they're all spelled correctly. Which got me thinking. I checked my code and there was NO space between the command and the trailing '-->', just as the error indicates. Once that was added everything worked fine. So there's one finicky difference to remember about Windoze and Unix SSI. Thanks for pointing in the right direction ![]() Now the site below works as it should (at least the navigation panel). -- Amer Neely Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Kenneth Svee wrote:
> [ Amer Neely ] > >> What happens is, when each page is loaded, it spits out an error "[an >> error occurred while processing this directive]". Visit >> http://www.softouch.on.ca/ssi/index.shtml to see what I mean. >> >> If anyone has a clue why this might be happening I would appreciate >> some ideas. > > A more verbose error-message should be written to your Apache-servers > error_log. You could you post the relevant entries here if they don't > you along towards enlightenment. > > > Rgds, > Kenneth Svee > Good idea. But here's all I found: [Mon Apr 24 09:23:16 2006] [error] [client 24.235.191.210] unknown directive "else-->" in parsed doc /home/softouch/public_html/ssi/xssi-navigation.shtml The file in question has a chain of 'if-else-endif' directives. And they all have '<--#' with no space between the octothorpe and command, and they're all spelled correctly. Which got me thinking. I checked my code and there was NO space between the command and the trailing '-->', just as the error indicates. Once that was added everything worked fine. So there's one finicky difference to remember about Windoze and Unix SSI. Thanks for pointing in the right direction ![]() Now the site below works as it should (at least the navigation panel). -- Amer Neely Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
* Amer Neely <softouch@softouch.on.ca> wrote:
> Which got me thinking. I checked my code and there was NO space between > the command and the trailing '-->', just as the error indicates. Once > that was added everything worked fine. So there's one finicky difference > to remember about Windoze and Unix SSI. Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more lenient) parser. nd |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
|
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
* Amer Neely <softouch@softouch.on.ca> wrote:
> Which got me thinking. I checked my code and there was NO space between > the command and the trailing '-->', just as the error indicates. Once > that was added everything worked fine. So there's one finicky difference > to remember about Windoze and Unix SSI. Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more lenient) parser. nd |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
|
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
André Malo wrote:
> * Amer Neely <softouch@softouch.on.ca> wrote: > >> Which got me thinking. I checked my code and there was NO space between >> the command and the trailing '-->', just as the error indicates. Once >> that was added everything worked fine. So there's one finicky difference >> to remember about Windoze and Unix SSI. > > Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more > lenient) parser. > > nd Ah, so that's it. Good to know. Thanks for the clarification. -- Amer Neely Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
André Malo wrote:
> * Amer Neely <softouch@softouch.on.ca> wrote: > >> Which got me thinking. I checked my code and there was NO space between >> the command and the trailing '-->', just as the error indicates. Once >> that was added everything worked fine. So there's one finicky difference >> to remember about Windoze and Unix SSI. > > Nope. That's between 1.3 and 2.x. 2.x has a completely different (and more > lenient) parser. > > nd Ah, so that's it. Good to know. Thanks for the clarification. -- Amer Neely Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" |
|
![]() |
| Outils de la discussion | |
|
|