Web Hosting Talk







View Full Version : Using Apache's mod_rewrite...


mas3000
06-25-2002, 05:24 PM
Any ideas on how I could use mod_rewrite to display popups on all of my pages?

Thanks,
Mike

Host Ultra
06-25-2002, 05:38 PM
mod_rewrite doesnt do that
i think you need mod_layout : http://software.tangent.org/projects.pl?view=mod_layout

mas3000
06-25-2002, 05:43 PM
And how would I use it to display popups?

Host Ultra
06-25-2002, 05:47 PM
Oh lol your the guy who was asking me about that in email right?

LayoutMerge on
LayoutIgnoreTag "</frameset>"
LayoutHeader /header.html
LayoutFooter /footer.html

in .htaccess or virtualhost

mas3000
06-25-2002, 05:51 PM
Originally posted by Host Ultra
Oh lol your the guy who was asking me about that in email right?

LayoutMerge on
LayoutIgnoreTag "</frameset>"
LayoutHeader /header.html
LayoutFooter /footer.html

in .htaccess or virtualhost
Yes, I am - and I replied back too.:D

YunitY
12-10-2004, 01:59 AM
Hello. I have the following problem. I compiled Apache with mod_layout. Configtest was positive.

217:/usr/src/mod_layout-3.2.1# apachectl configtest
Syntax OK
217:/usr/src/mod_layout-3.2.1#

As "httpd Special" in Confixx I enter the following:

LayoutFooter /var/www/default/footer.html

In "vhost.conf" is this entry:

# Domain ID: 37 - CustomerID: 16 - CustomerLogin: web10
<VirtualHost xxx.xx.xxx.xxx>
ServerName wolltasse.yuco.de
ServerAdmin webmaster@wolltasse.yuco.de
DocumentRoot /var/kunden/webs/web10/
ErrorLog /var/kunden/logs/web10-error.log
CustomLog /var/kunden/logs/web10-access.log combined
LayoutFooter /var/www/default/footer.html

</VirtualHost>

If the entry is present in "vhost.conf" and Apache is started again, I receive the following error message:

217:/usr/src/mod_layout-3.2.1# apachectl configtest
Trying to insert </body>
ADDING LAYOUT:</body> (3) (4)(1)
/usr/sbin/apachectl: line 171: 8287 Speicherzugriffsfehler $HTTPD -t
---------------------------------------------------------------------------
217:/usr/src/mod_layout-3.2.1# /etc/init.d/apache restart
Reloading apache modulesNo process in pidfile `/var/run/apache.pid' found running; none killed.
Trying to insert </body>
ADDING LAYOUT:</body> (3) (4)(1)
/etc/init.d/apache: line 65: 9892 Segmentation fault start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON
failed

What wrong do I make? I have Debian woody with Apache 1.3.26

Host Ultra
12-10-2004, 10:32 AM
mod_layout does not work with php above 4.3.4

YunitY
12-11-2004, 01:15 AM
I use Apache 1.3.26 with "PHP 4.1.2". I think, which should actually function