473,385 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

OT: apache ip based virtual server example - mod_rewrite?

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
7 1715

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
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

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

"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

"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

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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Joshua | last post by:
Is there a way to set up Apache to invoke a PHP equest when a file (a image for example) is downloaded? Say, then, that http://www.foo.com/downloads/app1.zip is downloaded, Id like to have...
4
by: Phil Powell | last post by:
http://www.sitepoint.com/article/910/2] How can it be possible to use Apache's mod_rewrite module in such a way as to dynamically feed it variable information into the "RewriteRule" option? I...
3
by: Jan Bols | last post by:
I'm using PHP 4.3 and APACHE2.0. I have a website that requires people to log in before they can download files from my website. A person is logged in if there is a session-variable $logged_in set...
2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
5
by: Danilo | last post by:
Hi there, is it possible to create a rewrite rule to send every server-request to the directory /py? But only if the file does not exists on the server. This is my mod_python section of the...
3
by: Ron Garret | last post by:
I have a fairly large web app written in Python as a CGI fairly elaborate CGI. All of the requests go through a single CGI script which does authentication and session management and then...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
11
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
With Apache's mod_rewrite module I can keep *.php files and load them as *.html files: # Make http//example.com/foo/bar.html load /home/site/foo/bar.php RewriteEngine On RewriteRule...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.