Directives and Virtual Host problems

"Graham White" <[email protected]>
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hi, I've tried adding these directives as below inside of an apache
1.3.27 vhost_alias config. Basically I have two virtual hosts - one that
I want to have html prepended and the other one not to have anything
added. The problem is that apache won't even start with this config
below:

 

<VirtualHost 172.16.1.175:80 172.16.0.175:80>

        ServerName 172.16.1.175

        UseCanonicalName off

        VirtualDocumentRoot /web/%0

 

LayoutMerge Off

LayoutDefaultHandlers Off

LayoutHandler text/html 

LayoutHeader /home/ header.html

 

</VirtualHost>

 

<VirtualHost 172.16.0.181:80 172.16.1.181:80>

        ServerName 172.16.1.181

        UseCanonicalName off 

        VirtualDocumentRoot /web/%0

  </VirtualHost>

 

/usr/sbin/httpd -f /etc/httpd/conf/vhost_httpd.conf

Trying to insert <body*>

ADDING LAYOUT:<body*> (1) (2)(1)

Segmentation fault

 

However if I take the layout directives and move them outside of the
virtual host then it will start fine and it prepends the html. I tried
keeping it like this and then adding LayoutHeaderOff to the second
Virtual Host in the hopes of stopping it from prepending the html but to
no avail. This happened with both the rpm version and compiling the
source to produce the DSO. Any thoughts and thanks

 

Graham White
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.