By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

OT: apache ip based virtual server example - mod_rewrite?

P: n/a
again, i know this is OT...just move along to the next post if it bugs you.
:)

i had been trying to have this:

project.66.204.32.110

from the client browser, map to a virtual host where the document root would
be:

c:/inetpub/wwwroot/project

i can't seem to get that to work and would love an example. however, in the
mean-time, is there a way to use mod_rewrite so that a client's browser
request in the form of:

www.66.204.32.110/project

would map to whatever was after the first slash? such that i'd have virtual,
ip based hosts for:

www.66.204.32.110/projectA
www.66.204.32.110/projectB
www.66.204.32.110/projectC

where the rewrite would make the document root (respectively)

c:/inetpub/wwwroot/projectA
c:/inetpub/wwwroot/projectB
c:/inetpub/wwwroot/projectC

i'm not sure which is the best approach, but i don't want to fork out $75
just to have a DNS entry that i can more easily make into name-based virtual
hosts. this is a development/prototyping server anyway...hence
"c:/<anything>". :)

tia,
me
Aug 20 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a

Dale schreef:
again, i know this is OT...just move along to the next post if it bugs you.
:)

i had been trying to have this:

project.66.204.32.110

from the client browser, map to a virtual host where the document root would
be:

c:/inetpub/wwwroot/project

i can't seem to get that to work and would love an example. however, in the
mean-time, is there a way to use mod_rewrite so that a client's browser
request in the form of:

www.66.204.32.110/project

would map to whatever was after the first slash? such that i'd have virtual,
ip based hosts for:

www.66.204.32.110/projectA
www.66.204.32.110/projectB
www.66.204.32.110/projectC

where the rewrite would make the document root (respectively)

c:/inetpub/wwwroot/projectA
c:/inetpub/wwwroot/projectB
c:/inetpub/wwwroot/projectC

i'm not sure which is the best approach, but i don't want to fork out $75
just to have a DNS entry that i can more easily make into name-based virtual
hosts. this is a development/prototyping server anyway...hence
"c:/<anything>". :)

tia,
me
Hi Dale,

I was about to tell you you should post to alt.apache.configuration if
you have a question regarding mod_rewrite, only to notice you already did...

Please, in the future, do a crossposting to both groups, not a multipost.
If you DID a crosspost we could all see you posted to the right place,
and what is more, we wouldn't waste our time answering your question.

Crosspost = posting to all the relevant newsgroups in ONE post.
Multipost = posting to different newsgroups one after the other with the
same question.

Crossposting makes your audience lifes so much easier.

Thx.

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 20 '08 #2

P: n/a
Erwin Moller wrote:
>
Dale schreef:
>again, i know this is OT...just move along to the next post if it bugs
you. :)

i had been trying to have this:

project.66.204.32.110

from the client browser, map to a virtual host where the document root
would be:

c:/inetpub/wwwroot/project

i can't seem to get that to work and would love an example. however,
in the mean-time, is there a way to use mod_rewrite so that a client's
browser request in the form of:

www.66.204.32.110/project

would map to whatever was after the first slash? such that i'd have
virtual, ip based hosts for:

www.66.204.32.110/projectA
www.66.204.32.110/projectB
www.66.204.32.110/projectC

where the rewrite would make the document root (respectively)

c:/inetpub/wwwroot/projectA
c:/inetpub/wwwroot/projectB
c:/inetpub/wwwroot/projectC

i'm not sure which is the best approach, but i don't want to fork out
$75 just to have a DNS entry that i can more easily make into
name-based virtual hosts. this is a development/prototyping server
anyway...hence "c:/<anything>". :)

tia,
me

Hi Dale,

I was about to tell you you should post to alt.apache.configuration if
you have a question regarding mod_rewrite, only to notice you already
did...

Please, in the future, do a crossposting to both groups, not a multipost.
If you DID a crosspost we could all see you posted to the right place,
and what is more, we wouldn't waste our time answering your question.

Crosspost = posting to all the relevant newsgroups in ONE post.
Multipost = posting to different newsgroups one after the other with the
same question.

Crossposting makes your audience lifes so much easier.

Thx.

Regards,
Erwin Moller
Hi, Erwin,

Oh, is the stoopid troll at it again? Thinking this is his personal
support group for any question he wants to ask? And saying it's "OT"
somehow makes it OK?

The guy is a major fuckard, that's for sure. No wonder he won't use his
real name and keeps switching his aliases to get by people's filters.
Glad I found a filter which doesn't depend on his name.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 20 '08 #3

P: n/a

Jerry Stuckle schreef:
Erwin Moller wrote:
>>
Dale schreef:
>>again, i know this is OT...just move along to the next post if it
bugs you. :)

i had been trying to have this:

project.66.204.32.110

from the client browser, map to a virtual host where the document
root would be:

c:/inetpub/wwwroot/project

i can't seem to get that to work and would love an example. however,
in the mean-time, is there a way to use mod_rewrite so that a
client's browser request in the form of:

www.66.204.32.110/project

would map to whatever was after the first slash? such that i'd have
virtual, ip based hosts for:

www.66.204.32.110/projectA
www.66.204.32.110/projectB
www.66.204.32.110/projectC

where the rewrite would make the document root (respectively)

c:/inetpub/wwwroot/projectA
c:/inetpub/wwwroot/projectB
c:/inetpub/wwwroot/projectC

i'm not sure which is the best approach, but i don't want to fork out
$75 just to have a DNS entry that i can more easily make into
name-based virtual hosts. this is a development/prototyping server
anyway...hence "c:/<anything>". :)

tia,
me

Hi Dale,

I was about to tell you you should post to alt.apache.configuration if
you have a question regarding mod_rewrite, only to notice you already
did...

Please, in the future, do a crossposting to both groups, not a multipost.
If you DID a crosspost we could all see you posted to the right place,
and what is more, we wouldn't waste our time answering your question.

Crosspost = posting to all the relevant newsgroups in ONE post.
Multipost = posting to different newsgroups one after the other with
the same question.

Crossposting makes your audience lifes so much easier.

Thx.

Regards,
Erwin Moller

Hi, Erwin,

Oh, is the stoopid troll at it again? Thinking this is his personal
support group for any question he wants to ask? And saying it's "OT"
somehow makes it OK?
Hi Jerry,

Yes, the Dale of the (amongst others) $_REQUEST fanclub. ;-)
>
The guy is a major fuckard, that's for sure. No wonder he won't use his
real name and keeps switching his aliases to get by people's filters.
Glad I found a filter which doesn't depend on his name.
LOL, he wrote in the $REQUEST fanclubthread something about that
namething. He changes his name only for you personally because he thinks
your filters use his name and he wants to be sure you read his posts for
some reason beyond my understanding.

Anyway, this Dale should stop multiposting.

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 20 '08 #4

P: n/a

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:g8**********@registered.motzarella.org...
Erwin Moller wrote:
>>
Dale schreef:
>>again, i know this is OT...just move along to the next post if it bugs
you. :)

i had been trying to have this:

project.66.204.32.110

from the client browser, map to a virtual host where the document root
would be:

c:/inetpub/wwwroot/project

i can't seem to get that to work and would love an example. however, in
the mean-time, is there a way to use mod_rewrite so that a client's
browser request in the form of:

www.66.204.32.110/project

would map to whatever was after the first slash? such that i'd have
virtual, ip based hosts for:

www.66.204.32.110/projectA
www.66.204.32.110/projectB
www.66.204.32.110/projectC

where the rewrite would make the document root (respectively)

c:/inetpub/wwwroot/projectA
c:/inetpub/wwwroot/projectB
c:/inetpub/wwwroot/projectC

i'm not sure which is the best approach, but i don't want to fork out
$75 just to have a DNS entry that i can more easily make into name-based
virtual hosts. this is a development/prototyping server anyway...hence
"c:/<anything>". :)

tia,
me

Hi Dale,

I was about to tell you you should post to alt.apache.configuration if
you have a question regarding mod_rewrite, only to notice you already
did...

Please, in the future, do a crossposting to both groups, not a multipost.
If you DID a crosspost we could all see you posted to the right place,
and what is more, we wouldn't waste our time answering your question.

Crosspost = posting to all the relevant newsgroups in ONE post.
Multipost = posting to different newsgroups one after the other with the
same question.

Crossposting makes your audience lifes so much easier.

Thx.

Regards,
Erwin Moller

Hi, Erwin,

Oh, is the stoopid troll at it again? Thinking this is his personal
support group for any question he wants to ask? And saying it's "OT"
somehow makes it OK?

The guy is a major fuckard, that's for sure. No wonder he won't use his
real name and keeps switching his aliases to get by people's filters. Glad
I found a filter which doesn't depend on his name.
you mean you're glad you've finally figured out how the filters work...after
years of saying you could filter me at any time. LOL. you just finally
fessed up without realizing you're caught lying. i think that makes you the
major 'fuckard' [sic].
Aug 20 '08 #5

P: n/a

"Erwin Moller"
<Si******************************************@spam yourself.comwrote in
message news:48*********************@news.xs4all.nl...
>
Jerry Stuckle schreef:
>Erwin Moller wrote:
>>>
Dale schreef:
again, i know this is OT...just move along to the next post if it bugs
you. :)

i had been trying to have this:

project.66.204.32.110

from the client browser, map to a virtual host where the document root
would be:

c:/inetpub/wwwroot/project

i can't seem to get that to work and would love an example. however, in
the mean-time, is there a way to use mod_rewrite so that a client's
browser request in the form of:

www.66.204.32.110/project

would map to whatever was after the first slash? such that i'd have
virtual, ip based hosts for:

www.66.204.32.110/projectA
www.66.204.32.110/projectB
www.66.204.32.110/projectC

where the rewrite would make the document root (respectively)

c:/inetpub/wwwroot/projectA
c:/inetpub/wwwroot/projectB
c:/inetpub/wwwroot/projectC

i'm not sure which is the best approach, but i don't want to fork out
$75 just to have a DNS entry that i can more easily make into
name-based virtual hosts. this is a development/prototyping server
anyway...hence "c:/<anything>". :)

tia,
me

Hi Dale,

I was about to tell you you should post to alt.apache.configuration if
you have a question regarding mod_rewrite, only to notice you already
did...

Please, in the future, do a crossposting to both groups, not a
multipost.
If you DID a crosspost we could all see you posted to the right place,
and what is more, we wouldn't waste our time answering your question.

Crosspost = posting to all the relevant newsgroups in ONE post.
Multipost = posting to different newsgroups one after the other with the
same question.

Crossposting makes your audience lifes so much easier.

Thx.

Regards,
Erwin Moller

Hi, Erwin,

Oh, is the stoopid troll at it again? Thinking this is his personal
support group for any question he wants to ask? And saying it's "OT"
somehow makes it OK?

Hi Jerry,

Yes, the Dale of the (amongst others) $_REQUEST fanclub. ;-)
>>
The guy is a major fuckard, that's for sure. No wonder he won't use his
real name and keeps switching his aliases to get by people's filters.
Glad I found a filter which doesn't depend on his name.

LOL, he wrote in the $REQUEST fanclubthread something about that
namething. He changes his name only for you personally because he thinks
your filters use his name and he wants to be sure you read his posts for
some reason beyond my understanding.

Anyway, this Dale should stop multiposting.
nah, i don't think i will.

as for $_REQUEST...well, i can't help it if you don't know what
loose-coupling is. how you take input should not in any way shape how you
process it. even in cli, if you've got a solid processing engine built, you
simply have to change the caller's code...NOT how the data is processed. oh
well, you are still young and inexperienced. i'll leave it at that.

cheers.
Aug 20 '08 #6

P: n/a

Dale schreef:
"Erwin Moller"
<Si******************************************@spam yourself.comwrote in
message news:48*********************@news.xs4all.nl...
>Jerry Stuckle schreef:
>>Erwin Moller wrote:
Dale schreef:
again, i know this is OT...just move along to the next post if it bugs
you. :)
>
i had been trying to have this:
>
project.66.204.32.110
>
from the client browser, map to a virtual host where the document root
would be:
>
c:/inetpub/wwwroot/project
>
i can't seem to get that to work and would love an example. however, in
the mean-time, is there a way to use mod_rewrite so that a client's
browser request in the form of:
>
www.66.204.32.110/project
>
would map to whatever was after the first slash? such that i'd have
virtual, ip based hosts for:
>
www.66.204.32.110/projectA
www.66.204.32.110/projectB
www.66.204.32.110/projectC
>
where the rewrite would make the document root (respectively)
>
c:/inetpub/wwwroot/projectA
c:/inetpub/wwwroot/projectB
c:/inetpub/wwwroot/projectC
>
i'm not sure which is the best approach, but i don't want to fork out
$75 just to have a DNS entry that i can more easily make into
name-based virtual hosts. this is a development/prototyping server
anyway...hence "c:/<anything>". :)
>
tia,
>
>
me
Hi Dale,

I was about to tell you you should post to alt.apache.configuration if
you have a question regarding mod_rewrite, only to notice you already
did...

Please, in the future, do a crossposting to both groups, not a
multipost.
If you DID a crosspost we could all see you posted to the right place,
and what is more, we wouldn't waste our time answering your question.

Crosspost = posting to all the relevant newsgroups in ONE post.
Multipost = posting to different newsgroups one after the other with the
same question.

Crossposting makes your audience lifes so much easier.

Thx.

Regards,
Erwin Moller

Hi, Erwin,

Oh, is the stoopid troll at it again? Thinking this is his personal
support group for any question he wants to ask? And saying it's "OT"
somehow makes it OK?
Hi Jerry,

Yes, the Dale of the (amongst others) $_REQUEST fanclub. ;-)
>>The guy is a major fuckard, that's for sure. No wonder he won't use his
real name and keeps switching his aliases to get by people's filters.
Glad I found a filter which doesn't depend on his name.
LOL, he wrote in the $REQUEST fanclubthread something about that
namething. He changes his name only for you personally because he thinks
your filters use his name and he wants to be sure you read his posts for
some reason beyond my understanding.

Anyway, this Dale should stop multiposting.

nah, i don't think i will.
Hi Dale/Barry,

Are you still (s)thinking you can troll me?
I won't take the bait.

>
as for $_REQUEST...well, i can't help it if you don't know what
loose-coupling is. how you take input should not in any way shape how you
process it. even in cli, if you've got a solid processing engine built, you
simply have to change the caller's code...NOT how the data is processed. oh
well, you are still young and inexperienced. i'll leave it at that.

cheers.
Forget it, I had 1 'discussion' with you in which you showed little to
none talent for logical analysis. Nor were you able to stick to the
subject at hand.
So I gave up on you and wonder why I tried to help you anyway with
sending you to the right place for mod_rewrite.

Now go working on your simple regular expression to get your basic job
done in mod_rewrite.
Don't forget to use a few design patterns and some of your famous
business logic.

I should have listened earlier to Jerry: You are a complete retard, not
worth my attention.

Erwin

PS: Dale, please start posting via Googlegroups.
--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 21 '08 #7

P: n/a

"Erwin Moller"
<Si******************************************@spam yourself.comwrote in
message news:48*********************@news.xs4all.nl...
>
Dale schreef:
>"Erwin Moller"
<Si******************************************@spa myourself.comwrote in
message news:48*********************@news.xs4all.nl...
>>Jerry Stuckle schreef:
Erwin Moller wrote:
Dale schreef:
>again, i know this is OT...just move along to the next post if it
>bugs you. :)
>>
>i had been trying to have this:
>>
>project.66.204.32.110
>>
>from the client browser, map to a virtual host where the document
>root would be:
>>
>c:/inetpub/wwwroot/project
>>
>i can't seem to get that to work and would love an example. however,
>in the mean-time, is there a way to use mod_rewrite so that a
>client's browser request in the form of:
>>
>www.66.204.32.110/project
>>
>would map to whatever was after the first slash? such that i'd have
>virtual, ip based hosts for:
>>
>www.66.204.32.110/projectA
>www.66.204.32.110/projectB
>www.66.204.32.110/projectC
>>
>where the rewrite would make the document root (respectively)
>>
>c:/inetpub/wwwroot/projectA
>c:/inetpub/wwwroot/projectB
>c:/inetpub/wwwroot/projectC
>>
>i'm not sure which is the best approach, but i don't want to fork out
>$75 just to have a DNS entry that i can more easily make into
>name-based virtual hosts. this is a development/prototyping server
>anyway...hence "c:/<anything>". :)
>>
>tia,
>>
>>
>me
Hi Dale,
>
I was about to tell you you should post to alt.apache.configuration if
you have a question regarding mod_rewrite, only to notice you already
did...
>
Please, in the future, do a crossposting to both groups, not a
multipost.
If you DID a crosspost we could all see you posted to the right place,
and what is more, we wouldn't waste our time answering your question.
>
Crosspost = posting to all the relevant newsgroups in ONE post.
Multipost = posting to different newsgroups one after the other with
the same question.
>
Crossposting makes your audience lifes so much easier.
>
Thx.
>
Regards,
Erwin Moller
>
Hi, Erwin,

Oh, is the stoopid troll at it again? Thinking this is his personal
support group for any question he wants to ask? And saying it's "OT"
somehow makes it OK?
Hi Jerry,

Yes, the Dale of the (amongst others) $_REQUEST fanclub. ;-)

The guy is a major fuckard, that's for sure. No wonder he won't use
his real name and keeps switching his aliases to get by people's
filters. Glad I found a filter which doesn't depend on his name.
LOL, he wrote in the $REQUEST fanclubthread something about that
namething. He changes his name only for you personally because he thinks
your filters use his name and he wants to be sure you read his posts for
some reason beyond my understanding.

Anyway, this Dale should stop multiposting.

nah, i don't think i will.

Hi Dale/Barry,

Are you still (s)thinking you can troll me?
I won't take the bait.
who's trolling? you keep coming with the insults...not me.
>as for $_REQUEST...well, i can't help it if you don't know what
loose-coupling is. how you take input should not in any way shape how you
process it. even in cli, if you've got a solid processing engine built,
you simply have to change the caller's code...NOT how the data is
processed. oh well, you are still young and inexperienced. i'll leave it
at that.

cheers.

Forget it, I had 1 'discussion' with you in which you showed little to
none talent for logical analysis. Nor were you able to stick to the
subject at hand.
So I gave up on you and wonder why I tried to help you anyway with sending
you to the right place for mod_rewrite.
are you kidding or just projecting?!!! for every accusation you just made,
provide a quote that supports it! as it is, you won't be able to do
so...proving you're a liar.

Now go working on your simple regular expression to get your basic job
done in mod_rewrite.
the regex is not the problem. but, you're an inexperienced idiot, so what
should i expect.
Don't forget to use a few design patterns and some of your famous business
logic.
and you keep on avoiding reading anything related to design patterns or just
plain ol' loose-coupling.
I should have listened earlier to Jerry: You are a complete retard, not
worth my attention.
yes, yes you are.
Aug 21 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.