Simple RewriteCond error .. i'm sure

Simple RewriteCond error .. i'm sure

Post by Eric Berthiau » Thu, 16 Jan 2003 00:44:35



Apache 1.3

Looked at the rewrite guides from apache but just can't get what I
want.

<VirtualHost xx.xx.xx.xx>

Rewri*gine  on
ServerName    www.domain.com
ServerAlias   www.domainname.com

RewriteCond %{HTTP_HOST} ^.*domainname.com\/foldername
RewriteRule ^/$ http://www.veryComputer.com/[R,L]

RewriteCond %{HTTP_HOST} ^.*domainname.com/
RewriteRule ^/$ http://www.veryComputer.com/[R,L]

</VirtualHost>

The thing is the condition that gets the rewrite is the second one ...
not the first (has I think it should be).

I tried a bunch of config ranging from REMOTE_HOST to REQUEST_URI but
all have failed to acheive what I want.  I don't need the trailing
slash anwsers has the page I want to redirect is on another server.

This is got to be simple no?

Thx for any help.

Eric

 
 
 

1. I'm sure there's a simple solution--but help!

Hi,

I've successfully compiled and installed kernel 2.4.0 except for one
thing: sound support.

I have compiled it several time with either sound modules or with sound
built into the kernel, but I get no sound.  Trying to start the mixer
brings the message that there is no mixer.

I've never had to do this before.  I had RH 6.1 which came with a huge
precompiled kernel (2.2.12-20) and preconfigured modules.

Compiling your own kernel is great.  The new kernel is half the size of
the old one, and my old P120 now seems to run like a bat out of hell.

In my last try, I compiled the sound drivers into the kernel.  At boot
up, I get the message

  localhost kernel: Soundblaster audio driver Copyright (C) by Hannu
     Savolainen 1993-1996
  localhost kernel: sb: No ISAPnP cards found, trying standard ones...
  localhost lpd: lpd startup succeeded
  localhost kernel: sb: I/O, IRQ, and DMA are mandatory
  localhost kernel: YM3812 and OPL-3 driver Copyright (C) by Hannu
     Savolainen, Rob Hooft 1993-1996

Does this mean that I have to specify io, irq, and dma when I compile?
If so how do I do it?

Or does it mean I should add a boot parameter to lilo.conf?  If so,
what is the parameter and syntax?  The HOW-TOs I've looked at say
little more than that it is more trouble than it's worth to add sound
to lilo.

Also, I get the following message when shutting down

  localhost modprobe: modprobe: Can't locate module sound-slot-0
  localhost modprobe: modprobe: Can't locate module sound-service-0-0

This is perplexing because I presently have no sound modules.  Is my
problem simply that I'm inadvertently accessing modules used by the
previous kernel?  If so, what is accessing them, and how do I stop it?

Besides upgrading modutils and all of the other stuff you're supposed
to upgrade, all I've changed is the kernel and the System-map.

As a newbie, I don't feel like tinkering too much more without expert
advice.  If you look in the book, _Recipes for Disaster_ under
"Tinkering with Linux," you'll see my picture.

Lastly, the sound card is a Soundblaster 16 PnP (no, it doesn't work
with isapnp installed either).  The old modules.conf options were

  sb dma16=5 io=0x220 mpu_io=0x330 dma=1 irq=5
  op13 io=0x330

They used to work, but not anymore, even when I boot the old kernel.

Any help greatly appreciated.

Cheers,
John Morris

2. Kill the pager - how?

3. Two simple Q's - I'm sure!!

4. SENDMAIL.CF is mine OK ?

5. Very simple I'm sure but please help...

6. Qpopper 2.5x not working on Solaris 2.4?

7. Simple Prob I'm sure (warning, newbie)

8. Elographics Touchscreen as Mouse replacement

9. really simple problem i'm sure

10. HELP: Simple question I'm sure

11. svgalib sig11 error (you've all seen this I'm sure)

12. Apache1.2.4: RewriteCond: using 'current' URL as TestString ?

13. I'm not sure what these errors mean....