Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Editing the Host Header

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Host Header Name - Hello, I'm not too familiar with web servers. Is it possible to configure Apache not respond to requests without the host header name? I.E. Get's for (FQDN) will be responded too. for 1.2.3.4 (IP address) do not..

many redirects / unavailable Host: header - Hello I need to configure Apache to handle around 1000 redirects in around 30 virtual hosts, with one of them handling the vast majority of around 700. I wanted to use mod_alias Redirect but I can't: I receive the

Server-side image editing - Hi, I want to have .gif images that are asked from my apache server to have their color palette modified (as the whole site's color palette modifies itself now) before they are sent as an answer. How can I do this? I there are things like gdm..

Odd apache header (~~~~~~~~~~~~~~:) - Anyone know what this header is? My copy of apache returns it, and I've seen others do it too. Richard.

HTTP Response header - Hello everybody I have a problem to set HTTP response header. I'm using apache httpd as a frontend of my server. My server send some http headers, that have to be to modified. I could not use because can only..
Next:  Apache: access.log Interpreter?  
Author Message
tfrank

External


Since: Aug 23, 2004
Posts: 5



(Msg. 1) Posted: Mon Aug 23, 2004 4:34 pm
Post subject: Editing the Host Header
Archived from groups: alt>apache>configuration (more info?)

I am running Apache 1.3.29 on a Redhat AS 2.1 box. I have an entry in
my httpd.conf that resembles the following:

<VirtualHost 192.168.0.36:8085>
ServerAdmin webmaster DeleteThis @xyz.com
DocumentRoot /www/servers/xyz.com/yuriy
ServerName yuriy3.xyz.com
ServerAlias yuriy3.xyz.com
ErrorLog /www/logs/xyz.com/error_log
CustomLog /www/logs/xyz.com/access_log combined
</VirtualHost>


I use redirection so that when a user accesses http://yuriy.xyz.com,
they get directed to http://yuriy3.xyz.com:8085. Upon redirection, a
user's browser shows http://yuriy3.xyz.com:8085 in both the address
bar and the header at the top of the web browser. Is there any way I
can make the header display http://yuriy.xyz.com ? Any help would be
greatly appreciated. Thank-you in advance.

~Theodore

 >> Stay informed about: Editing the Host Header 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Aug 23, 2004 4:36 pm
Post subject: Re: Editing the Host Header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-08-23, Theodore Frank <tfrank DeleteThis @dodgeit.com> wrote:
<font color=purple> > I use redirection so that when a user accesses <a style='text-decoration: underline;' href="http://yuriy.xyz.com,</font" target="_blank">http://yuriy.xyz.com,</font</a>>
 > they get directed to <a style='text-decoration: underline;' href="http://yuriy3.xyz.com:8085." target="_blank">http://yuriy3.xyz.com:8085.</a> Upon redirection, a
 > can make the header display <a style='text-decoration: underline;' href="http://yuriy.xyz.com" target="_blank">http://yuriy.xyz.com</a> ?

Use mod_proxy.
Davide

--
.... Had this been an actual emergency, we would have fled in terror,
and you would not have been informed.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Editing the Host Header 
Back to top
Login to vote
tfrank

External


Since: Aug 23, 2004
Posts: 5



(Msg. 3) Posted: Mon Aug 23, 2004 5:02 pm
Post subject: Re: Editing the Host Header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank-you Davide. I looked up some info on mod_proxy, but I am not
experienced at all with proxy. What exactly would I need in my
httpd.conf file to do what I am looking for?
Thanks again,

Theodore

On 23 Aug 2004 13:36:18 GMT, Davide Bianchi
<davideyeahsure RemoveThis @onlyforfun.net> wrote:

 >On 2004-08-23, Theodore Frank <tfrank RemoveThis @dodgeit.com> wrote:
<font color=green>  >> I use redirection so that when a user accesses <a style='text-decoration: underline;' href="http://yuriy.xyz.com,</font" target="_blank">http://yuriy.xyz.com,</font</a>>
  >> they get directed to <a style='text-decoration: underline;' href="http://yuriy3.xyz.com:8085." target="_blank">http://yuriy3.xyz.com:8085.</a> Upon redirection, a
  >> can make the header display <a style='text-decoration: underline;' href="http://yuriy.xyz.com" target="_blank">http://yuriy.xyz.com</a> ?
 >
 >Use mod_proxy.
 >Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Editing the Host Header 
Back to top
Login to vote
tfrank

External


Since: Aug 23, 2004
Posts: 5



(Msg. 4) Posted: Mon Aug 23, 2004 5:06 pm
Post subject: Re: Editing the Host Header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I looked over mod_proxy, but I am unfamiliar with proxies. Which
directive would I need to accomplish what I am trying to do? What
should my httpd.conf entry look like? I am sorry for asking such
basic questions, but I am new to this.
Thank-you,

Theodore

On 23 Aug 2004 13:36:18 GMT, Davide Bianchi
<davideyeahsure.TakeThisOut@onlyforfun.net> wrote:

 >On 2004-08-23, Theodore Frank <tfrank.TakeThisOut@dodgeit.com> wrote:
<font color=green>  >> I use redirection so that when a user accesses <a style='text-decoration: underline;' href="http://yuriy.xyz.com,</font" target="_blank">http://yuriy.xyz.com,</font</a>>
  >> they get directed to <a style='text-decoration: underline;' href="http://yuriy3.xyz.com:8085." target="_blank">http://yuriy3.xyz.com:8085.</a> Upon redirection, a
  >> can make the header display <a style='text-decoration: underline;' href="http://yuriy.xyz.com" target="_blank">http://yuriy.xyz.com</a> ?
 >
 >Use mod_proxy.
 >Davide

I am running Apache 1.3.29 on a Redhat AS 2.1 box. I have an entry in
my httpd.conf that resembles the following:

<VirtualHost 192.168.0.36:8085>
ServerAdmin webmaster.TakeThisOut@xyz.com
DocumentRoot /www/servers/xyz.com/yuriy
ServerName yuriy3.xyz.com
ServerAlias yuriy3.xyz.com
ErrorLog /www/logs/xyz.com/error_log
CustomLog /www/logs/xyz.com/access_log combined
</VirtualHost>


I use redirection so that when a user accesses <a style='text-decoration: underline;' href="http://yuriy.xyz.com," target="_blank">http://yuriy.xyz.com,</a>
they get directed to <a style='text-decoration: underline;' href="http://yuriy3.xyz.com:8085." target="_blank">http://yuriy3.xyz.com:8085.</a> Upon redirection, a
user's browser shows <a style='text-decoration: underline;' href="http://yuriy3.xyz.com:8085" target="_blank">http://yuriy3.xyz.com:8085</a> in both the address
bar and the header at the top of the web browser. Is there any way I
can make the header display <a style='text-decoration: underline;' href="http://yuriy.xyz.com" target="_blank">http://yuriy.xyz.com</a> ? Any help would be
greatly appreciated. Thank-you in advance.

~Theodore<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Editing the Host Header 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 5) Posted: Mon Aug 23, 2004 5:10 pm
Post subject: Re: Editing the Host Header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-08-23, Theodore Frank <tfrank.TakeThisOut@dodgeit.com> wrote:
 >
 > I looked over mod_proxy, but I am unfamiliar with proxies. Which
 > directive would I need to accomplish what I am trying to do?

ProxyPass and ProxyPassReverse.
ProxyPass / <a style='text-decoration: underline;' href="http://.....:8085" target="_blank">http://.....:8085</a>
ProxyPassReverse / <a style='text-decoration: underline;' href="http://....:8085" target="_blank">http://....:8085</a>

Davide

--
Know thyself. If you need help, call the C.I.A.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Editing the Host Header 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]