You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Steve Matzura <sm...@noisynotes.com> on 2014/11/09 07:22:36 UTC

[users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Now my named virtual host is working correctly, I've another problem,
and I think this is an easy one. It's just a matter of what "flavor,"
if you will, of the directive to use.

On the site hosting the A-record for my server, the A-record address
is what shows up in the address bar of a browser when I browse to the
URL of the named virtual host--i.e., I browse to
http://www.example.com but the address that shows up in the address
bar when I get there is the one in the A-record (e.g., 11.22.33.44),
making the address bar show "http://11.22.33.44/". I'm thinking
mod_rewrite fixes this, right? If so, which of the several ways of
using it will do the substitution of 11.22.33.44 with www.example.com?
Also, how do I find out for certain if the mod_rewrite module is even
installed and loaded? I don't find a .load file for it in
mods-enabled, making me think it might not be installed.

Thanks again and as always for any and all assistance.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Posted by Steve Matzura <sm...@noisynotes.com>.
Yeah. The whole thing is a bloody mess! Will work it out later this
morning. I wonder why my FF shows the raw IP address but yours
doesn't. Strange.

On Sun, 09 Nov 2014 22:51:52 +0100, you wrote:

>On Sun, 09 Nov 2014 10:46:36 -0500, you wrote:
>
>> It changes from the very first access request. Go to
>> http://www.equaleyesradio.com and see what I am talking about. None of
>> the links work because the person who provided the HTML didn't, but
>> that's another unrelated problem.
>
>It doesn't change for me, using Firefox 33.0.3 on Windows 7.
>Some links do work (Preview / About Us), but on another domain: 
>http://equaleyesradio.gandi.ws/about-us-page-3
>
>Hope this helps...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Posted by Kees Nuyt <k....@zonnet.nl>.
On Sun, 09 Nov 2014 10:46:36 -0500, you wrote:

> It changes from the very first access request. Go to
> http://www.equaleyesradio.com and see what I am talking about. None of
> the links work because the person who provided the HTML didn't, but
> that's another unrelated problem.

It doesn't change for me, using Firefox 33.0.3 on Windows 7.
Some links do work (Preview / About Us), but on another domain: 
http://equaleyesradio.gandi.ws/about-us-page-3

Hope this helps...

-- 
Regards,

Kees Nuyt


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Posted by Steve Matzura <sm...@noisynotes.com>.
Oh how strange. In Internet Explorer, you're right, but in Firefox, it
shows the IP address. Wonder  how *THAT* is.

On Sun, 9 Nov 2014 11:09:05 -0500, you wrote:

>On Sun, Nov 9, 2014 at 10:46 AM, Steve Matzura <sm...@noisynotes.com> wrote:
>> It changes from the very first access request. Go to
>> http://www.equaleyesradio.com and see what I am talking about. None of
>> the links work because the person who provided the HTML didn't, but
>> that's another unrelated problem.
>
>The URL in my browser doesn't change when I load that page.
>
>wget is a client, you can run it anywhere that can connect to your
>server over HTTP.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Posted by Eric Covener <co...@gmail.com>.
On Sun, Nov 9, 2014 at 10:46 AM, Steve Matzura <sm...@noisynotes.com> wrote:
> It changes from the very first access request. Go to
> http://www.equaleyesradio.com and see what I am talking about. None of
> the links work because the person who provided the HTML didn't, but
> that's another unrelated problem.

The URL in my browser doesn't change when I load that page.

wget is a client, you can run it anywhere that can connect to your
server over HTTP.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Posted by Steve Matzura <sm...@noisynotes.com>.
On Sun, 9 Nov 2014 08:19:23 -0500, you wrote:

>On Sun, Nov 9, 2014 at 1:22 AM, Steve Matzura <sm...@noisynotes.com> wrote:
>> On the site hosting the A-record for my server, the A-record address
>> is what shows up in the address bar of a browser when I browse to the
>> URL of the named virtual host--i.e., I browse to
>> http://www.example.com but the address that shows up in the address
>> bar when I get there is the one in the A-record (e.g., 11.22.33.44),
>> making the address bar show "http://11.22.33.44/". I'm thinking
>> mod_rewrite fixes this, right? If so, which of the several ways of
>> using it will do the substitution of 11.22.33.44 with www.example.com?
>> Also, how do I find out for certain if the mod_rewrite module is even
>> installed and loaded? I don't find a .load file for it in
>> mods-enabled, making me think it might not be installed.
>
>What normally happens is whatever URL you type simply stays there.  It
>only changes if you redirect or click on a non-relative link.
>
>On what URL does yours change, http://www.example.com or some later request?

It changes from the very first access request. Go to
http://www.equaleyesradio.com and see what I am talking about. None of
the links work because the person who provided the HTML didn't, but
that's another unrelated problem.

>Can you capture the output with wget -S ?

I could try. I'm not familiar with using wget in this capacity,
although I do use it to capture audio streams sometimes. Is that done
on the server side or the browser side?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Posted by Eric Covener <co...@gmail.com>.
On Sun, Nov 9, 2014 at 1:22 AM, Steve Matzura <sm...@noisynotes.com> wrote:
> On the site hosting the A-record for my server, the A-record address
> is what shows up in the address bar of a browser when I browse to the
> URL of the named virtual host--i.e., I browse to
> http://www.example.com but the address that shows up in the address
> bar when I get there is the one in the A-record (e.g., 11.22.33.44),
> making the address bar show "http://11.22.33.44/". I'm thinking
> mod_rewrite fixes this, right? If so, which of the several ways of
> using it will do the substitution of 11.22.33.44 with www.example.com?
> Also, how do I find out for certain if the mod_rewrite module is even
> installed and loaded? I don't find a .load file for it in
> mods-enabled, making me think it might not be installed.

What normally happens is whatever URL you type simply stays there.  It
only changes if you redirect or click on a non-relative link.

On what URL does yours change, http://www.example.com or some later request?
Can you capture the output with wget -S ?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using mod_rewrite to control the browser address barWhat Controls What's in a Browser's Address Bar?

Posted by Kees Nuyt <k....@zonnet.nl>.
On Sun, 09 Nov 2014 01:22:36 -0500, you wrote:

> Now my named virtual host is working correctly, I've another problem,
> and I think this is an easy one. It's just a matter of what "flavor,"
> if you will, of the directive to use.
>
> On the site hosting the A-record for my server, the A-record address
> is what shows up in the address bar of a browser when I browse to the
> URL of the named virtual host--i.e., I browse to
> http://www.example.com but the address that shows up in the address
> bar when I get there is the one in the A-record (e.g., 11.22.33.44),
> making the address bar show "http://11.22.33.44/". I'm thinking
> mod_rewrite fixes this, right? If so, which of the several ways of
> using it will do the substitution of 11.22.33.44 with www.example.com?
> Also, how do I find out for certain if the mod_rewrite module is even
> installed and loaded? I don't find a .load file for it in
> mods-enabled, making me think it might not be installed.
>
> Thanks again and as always for any and all assistance.

I think Rewrite is overkill.
Perhaps something like CanonicalName is better:

http://httpd.apache.org/docs/current/mod/core.html#usecanonicalname

-- 
Regards, 

Kees Nuyt


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org