Related Topic:







well, first, is it doable, and the second, is the way I'm doing it wont work

then show me how you're doing it.
And.. WTF is thecoolone19 doing?

RewriteEngine on
RewriteCond %{QUERY_STRING} ^(*.css|*.png|*.jpg|*.jpeg)$
RewriteRule ^/$ http://localhost:8002/wizard.html/$1 [P]
RewriteRule ^/ http://localhost:8002/blah/pathtest.php?group=$1 [P

RewriteEngine On is required if you plan to actually *use* your RewriteRules rather than collect them

im trying to redirect http://mysite.org/printstory.php?storyid=918 to http://mysite.org/story/918.
We use print CSS. so i need to redirect these printstory.php pages

that doesn't make sense.
take a look at
[p]

[p] is a proxypass. See http://rewrite.drbacchus.com/rewritewiki/Flags_2fP

I'm not quite sure if this will work out.....
Or how to acomplish it, for that matter.
We need a rewrite vizzard.
summon jink

JINK JINK JINK JINK JINK JINK JINK COME TO ME!!!!!!

im totally out of ideas

jMCg, okay then, how can I unconditionally match a filename without a dot or trailing forward slash?
anybody?

Buehler?

what's the problem?

im trying to redirect http://mysite.org/printstory.php?storyid=918 to http://mysite.org/story/918.

..as for robert_ I still don't understand exactly what his rewrite rules and conditions are trying to express.....

RewriteRule /story/([0-9]+) /printstory.php?storyid=$1
assuming storyids are numeric only

nope.. he's trying to do it *vice* *versa*

they ALWAYS SAY THAT and NEVER REALLY WANT IT viceversa
in any case viceversa is just as easy

Okay.

its Vice versa for sure

I want to proxy https://www.hpp-register.com/register.html/BLA to http://localhost:8002/register.html/blah.php?grp=BLA
and everything else goes to the filesystem

RewriteCond %{QUERY_STRING} storyid=([0-9]+) \n RewriteRule /printstory.php /story/%1
that's the viceversa one

er filesystem of the other server

if you don't mind, just for my better understanding can you explain the rule you just suggested

so nobody still knows what I need to achieve
bah

humbug

meh

Bah.

query string

query string is not matched in the Rule, you need to match %{QUERY_STRING} in a Cond

rewrite query string

The Query String (thingie going after the ? in an URL) is NOT matchable in a RewriteRule. You need to use the %{QUERY_STRING} in a RewriteCond. Check: http://wiki.apache.org/httpd/RewriteQueryString for examples and more details

can I exhibit exhaustion or frusteration without the stupid bot chiming in?

^

Nope

hardly.

grrr

Well that worked out.

that's probably the only string that ISNT mapped to some smartass remark/retort/response
heh

the \n == newline right. it shouldnt be included as is in the rule right??

\n means you press enter

okay

and put it as two lines

good, was just confirming

have some patience. We only have one RewriteWizzard here right now.

heh I know
it's just that this needed to get done two days ago
and I'm already behind on the other stuff I need to have it do
so yeah

then why hurry? you're doomed anyway

thanks

because we're screwed if I don't

yango++ # always the optimistic kind

heh
okay
is there a way to match something with one RewriteCond, and then say, "everything else..." using another?

!
Use a ! in the cond

ah
okay
so basically clone it, and use ! in the second rule

yeah

sweet

or just put [L] in the above rule

...also note, that %1..%9 is for stuff you matched in RewriteCond, $1..$9 is for stuff you matched in RewriteRule
Or that.

ah, kay

[L]

[L] is for last

ah kay

and that has stopped you for two days???

[L] being, "If I didn't match the above, then I..." ?
I've been hacking away at this from the php angle for the past two days

[L] means "this is the last rule you'll process, ignore all of the below"

PHP is always a bad idea :P

Rules are processed in appearing order

ooh
okay
well, I make my living churning out php hosting :P
(kidding, btw)

oh good, i was just starting to die

haha
so all I need to do is match /BLAH

Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libphp4.so: cannot open shared object file: No such file or directory -- why do i keep getting this while installing apache?

er, /wizard.html/BLA

specify what rule you want, very precisely
does /usr/lib/apache/1.3/libphp4.so exist?

no

hello all could someone point me in the direction of a good apache2 tutoral on subdomains

you want php?

yango, okay

example vhosts
sample vhosts

yes i installed php4 .. is that correct?

sample vhost
example vhost

Take a look at this for an example vhost http://wiki.apache.org/httpd/Recipes/ExampleVhosts

^

thanks you

thanks you is a crack

aloha

the fact that libphp4.so doesn't exist points to a faulty installation process... how are you doing it?

I need to match /wizard.html/file (without any dots in the name)

i installed php4 but libphp4.so still don't exist..hm
i am using apt-get install php4 apache

Can AuthLDAPURL use a standard Unix password hash (e.g. {SSHA}) ?

...

i think you need the libapache-php4 package

yeah
I was going to check on that

yay soved my problem right away

ok will try brb

Can AuthLDAPURL use a standard unix host password hash (e.g. {SSHA}) ?

yango is great isn't he

what do you mean, without any dot in the name?

libapache-mod-php4 ?

wizardhtml/file?

ok

yup
or that wizard doesn't contain dots
anything but a dot.html ?
that?

I want to match /blah, /blah2, etc.

extra info
extrainfo

er

Remember we don't see your application code, nor HTML code, nor your config (unless you paste it in a pastebin). We also can't see your thoughts! Please explain in greater detail what you want, what you tried, what didn't work (and in what way) so we can actually help you.

alright thanks! it worked

I feel like I'm turning stupid
okay
https://www.domain.ext/blah/BLA needs to be mapped somewhere

i'm with you so far
keep on going, you're doing fine

but I don't want to just stop at BLA, I need to match BLA2, BLH, FOO, BAR, and anything else without a dot in the request name
funny

Don't flatter yourself. You're not funny.

RewriteRule /blah/[^.]+ /destination
[^.]+ means 1 or more "not dot" characters

ok I still can't seem to get it to work here is my vhost site files http://pastebin.ca/617495 and you can see the result at http://www.cycleide.uni.cc htttp://cycleide.uni.cc and http://svn.cycleide.uni.cc any ideas why its not working?

ah okay

is your NameVirtualHost *:80 somewhere?

ur think so

was just going to ask that

yango, https://www.hpp-register.com/wizard.html/HPP

since it looks fine at first glance

sjorge I'll have a look

gives a 404
so?

what?

pong

yeah
RewriteRule /wizard.html/[^.]+ http://localhost:8002/wizard.html/pathtest.php?group=$1 [P]
that's what I have now

you aren't matching anything there
you may want ([^.]+)

yango means to say, you aren't grabbing anything there

probably

probably is the same as 'definitely not' when dealing with important or critical applications - if you're not sure, don't let 'probably' suffice

ah k

that fixed one address svn and www but cycleide.uni.cc still goes to the svn

still not grabbing/matching/whatever anything

did you restart after adding the NameVirtualHost
what does the log file of what's running on localhost:8002 say?
also check the
RewriteLog

RewriteLog is http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewritelog http://httpd.apache.org/docs/mod/mod_rewrite.html#rewritelog. Use this logging to help design and track rewrite; see also rewriteloglevel; and cannot be used from .htaccess

yes

leon_pegg try:

yango, the last hit on localhost:8002 was about 2 hours ago

/usr/local/apache2/htdocs/"
is this something dumb I'm doing?

client denied by server configuration

client denied by server configuration is http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration

ServerName www.cycleide.uni.cc
ServerAlias cycleide.uni.cc

all fixed

wow you're fast. thanks yango and fajita

thanks guys

np

you guys are very helpful

if that's true, you aren't applying in the right place the rule... where is it, btw?

3 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070508
what could be causing this??

apachePHP Warning: Function registration failed - duplicate name - mysql_connect in Unknown on line 0 .. is it related to mysql?

Now time to take on ssl :p

can please somebody help me with a home directory problem, i am a newbie and the docs don't get me any further. i need some hints on how to continue to solve this problem: http://rafb.net/p/LON62P77.html

it's in .htaccess of /wizard.html/

no work

so, now what?

then remove the leading /s from your rule
\o/

oh ok well guess I can do without

let me explain why...

ssl vhosts

When using SSL, each virtual host must have either its own IP address or its own port. Or both. or for details see http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts2 or http://www.onlamp.com/pub/a/apache/2005/02/17/apacheckbk.html or see SNI or consider wildcard certificates or http://wiki.cacert.org/wiki/VhostTaskForce or see ip based vhosts

^

thanks guys well time to start work

thats what i've been trying to do for the last 30min lol

what the hell
I can't restart apache with a RewriteLog in one of my config files
wtf
oops
play
okay*

hi !

hi ! is Yit possible to include a directory listing (the one generate by mod_dir) in a html hosting page ?

I was an idiot

does someone have an idea? http://rafb.net/p/LON62P77.html

forget hi !

I forgot hi

phee

i create two virtual site with apache2
DocumentRoot /mnt/var/www/espace_arts
DocumentRoot /mnt/var/www/public_html
in two differentconfiguration file
but nobody can join my site
i have this errors message :
9 2007] [error] [client 80.190.243.77] File does not exist:
0 2007] [error] [client 81.56.144.163] File does not exist:

yeah

i do chmod 755 on this two repertory
i don't understand
me to robert_
i follow this document to configure apacheé :
http://nuxwin.com/articles/view.php/18

hm

III. Hôtes Virtuels basés sur le nom on the bottom

only I don't read russian
Boris

robert_, french

er
my french left my right after summer ended
ergrfthjrs6u6y
my french left me**
why am I turning into an idiot?

i see
Please somebody can help me with my problem ?

does /mnt/var/www/espace_arts/espace_arts exists?

no

he wants /mnt/var/www/espace_arts/, and not /mnt/var/www/espace_arts/espace_arts/

all my index.html ...... are in DocumentRoot /mnt/var/www/espace_arts
but why ?
http://www.art.homeunix.org/espace_arts it'sd my address

post your config file in a pastbin i'll have a look
apc

Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'.

thanks a lot

okay
yango

annoying

http://sh.nu/p/21791

sjorge, http://apache.pastebin.ca/617523
my /etc/apache2/sites-available/espace_arts and /etc/apache2/sites-enabled

give me a few

http://apache.pastebin.ca/617528 my apache2.conf
thank you sjorge

hmmz nothing that come to my mind accept:
0 should be above the includes of the

i look

hi, is there a way to check what the current value of MinSpareServers is on my httpd server without mod_status?

sjorge, you mean in the same file (/etc/apache2/sites-available/espace_arts)
above VirtualHost 81.56.144.163:80

in the main file... place that line about the includes at the bottom

sorry i'm french
ok

don't worry. It's not your fault you were born there

lol
you got an idea yango?

what's the problem?

so my RewriteRule is falling through to my 404 handler :/

i can't access to my directory apache2 /mnt/var/www/espace_arts
but permissions are good

httpd reload is junk

any ideas why?

any ideas why is that

no idea then bronsky

ok

sorry to bug you yet again, but do you know if there is a way to check what the current value of MinSpareServers is on my httpd server without mod_status?

no idea, michelson

sjorge, what do you mean by in the main file...

how are you so fast! you're faster than google

fajita's a bot
apache2.conf

apache2.conf is Debian's name for httpd.conf

apache2.conf

ok

, you're kidding, right?

nope

are you a bot?

Is michelson a hippo?

i am!

humm..... i modify this
The server said '404 Not found'. same problem

'RewriteRule wizard.html/([^.]+) http://localhost:8002/wizard.html/pathtest.php?group=$1 [P]' falls through to my default 404 handler :/

i'm loosed

i'm so confused

sry I that all I could think of

thanks

apache performance tuning

excuse me?

4 2007] [error] [client 81.56.144.163] File does not exist:

apache2.conf

apache2.conf is Debian's name for httpd.conf

that's creepy

performance

performance is http://httpd.apache.org/docs/misc/perf-tuning.html or http://httpd.apache.org/docs-2.0/misc/perf-tuning.html

it's like apache2 don't find the good diectory

why is the room bot called 'fajita'?

bot

Danger Will Robinson!

hmm, changed

bot

I am a bot. I am not a sentient being. I cannot hold intelligent conversations.

can anyone help me with my RewriteRule problem?
'RewriteRule wizard.html/([^.]+) http://localhost:8002/wizard.html/pathtest.php?group=$1 [P]' falls through to 404, and never gets matched -- why?

i'm so disappointed fajita is a bot

heh

once you accept the fact, life gets a little easier

it's embarassing. i've had full conversations with that bot in this room before !

so nobody can help right now? heh
if not, I'm gonna pass out

who wrote the bot?
who wrote you?

michelson I told you she was pctony wrote her

wish i knew

iirc

why doesn't every room have a fajita?

nope

the rails room could useone

she only provides support

use one

because fajita is special!

you did, thanks
but last week I kept thanking the bot and asking it quesitons like it was a real person
i'm a dope

yeah pctony and the others did a good job on her
fajita sleep

That magical wonderful place that's always unobtainable

^^
sjorge

you are a cylon agent

haha

she picks up stuff from in here too
so she keps on learning

that's amazing
does she roam any other channels?

well it give odd results sometimes, do a whois on her

does mod_status cause any performance issues?
will mod_status slow apache down?

no idea, michelson

darn

mod_status

mod_status is http://httpd.apache.org/docs-2.0/mod/mod_status.html or http://httpd.apache.org/docs/mod/mod_status.html

haha, thanks
is fajita open-source?
are you open source?

i don't know, michelson

now michelson's trying to steal fajita's soul :o

haha
i wonder what language she's written in

in WEIRD.

I think michelson's in love with her now

haha

perl
perl is what fajita is written in

cool, thanks. you did an amazing job with fajita
i was totally fooled for a long time

excuse me?

heh, was nto me. I just manage her

oops ok lol I knew you where involved haha
drb then?

no, no one here has written her
not from the ground up

ah :p

i even pm'ed fajita last week asking if he/she did independent apache consulting work. my company needs some help with some configuration issues our site is having

we have added plenty of non standard functionality

now that's somewhat amusing :P

flooterbuck

flooterbuck is the program you're talking to right now! See http://flooterbuck.sourceforge.net/

^^

yeah I'm a dope : )
cool, thanks a lot for the link

no probs
or this week

this week is going to be the one that gets me

but the project seems to be dormant/dead now

Hey, I sent you a pm

what is the name of that third party tool in fedora that config apache? thank you.

hi, i'm running Apache under linux where can i see the configurations of the server, in wich directory?

this is OT, but does someone know a way to keeping a process, spawned through ssh, alive after you disconnect, and restore in another ssh session?
i've got this rather large number crunching job i started running last night ... but need to go work and keep an eye on it

screen

screen is good for those things

or nohup

nohup is part of the command

^

any of those work if the process is already running?

dunno... check the manual

will do
thanks for the input
hahaha, while reading ... the job finished ...
8 hours later!

well, now you don't need to read, just remember to screen before running it
:P

nohup seems simple enough ...
nohup command
logout .. login ... tail -f nohup.out


Related Topic: