- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- URL redirects via apache 2.2 challenge
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 05:17 PM
тАО08-24-2006 05:17 PM
URL redirects via apache 2.2 challenge
we have 10 sites that we'd like to redirect to 1 site with a directory for each of the sites.
So what l'd like to do is redirect(302) from a URL to another URL such as:
Redirect http://www.xx.com http://www.aaa.com/xx
Redirect http://www.yy.com http://www.aaa.com/yy
The redirect option however only work from a directory to a URL/dir.
Any advice on how to do this hopefully easy 302?
Thanks in advance,
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 11:40 PM
тАО08-24-2006 11:40 PM
Re: URL redirects via apache 2.2 challenge
I'd do it with 10 directives.
redirect http://www.xx.com http://www.aa.com/xx
There are options you can place directly after the redirect. This may affect whether or not the configuration works. Have you tried them?
# redirections will not work. See also the UseCanonicalName directive.
# redirections work in a sensible way.
# Redirect allows you to tell clients about documents which used to exist in
# Redirect permanent /foo http://www.example.com/bar
# 1) plain text 2) local redirects 3) external redirects
# We use Alias to redirect any /error/HTTP_
# The following directive disables redirects on non-GET requests for
# redirects for folders with DAV methods.
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2006 03:16 AM
тАО08-26-2006 03:16 AM
Re: URL redirects via apache 2.2 challenge
There are 50 name hosts under the same IP, and l have the same number of redirects.
l did try this originally thinking should work, but with no luck as yet.
So either l've placed the redirects in the wrong place in the http.conf file, or it doesn't work with "name based hosting" perhap.
Canonial name method won't work with this application l think.
Maybe l'll try it without the name based hosting (since it's redirecting at the domain name level).
If anyone knows of a way to acheive this please let me know.
Al
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2006 07:42 AM
тАО08-26-2006 07:42 AM
Re: URL redirects via apache 2.2 challenge
My business in the US does just what you are saying, named based hosting. I'm relatively certain this can be done with any version of apache.
I don't use redirect except to make my webmail work. Its www.investmenttool.com/webmail and I use redirect to make the name webmail.investmenttool.com work properly.
I also do extensive redirects on the web server for my employer. I believe your issue can be worked out, though it may take more extensive testing and work than is possible through the forums.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2006 10:22 PM
тАО08-27-2006 10:22 PM
Re: URL redirects via apache 2.2 challenge
It seems to me that you could be in need of a reverse proxy. Since you are running Apache, you might be interested in using the mod_proxy module for it. Here is a howto:
http://www.apacheweek.com/features/reverseproxies
Also, you might be interested in using Squid for the same purpose
http://www.visolve.com/squid/whitepapers/reverseproxy.php
I am running the apache revproxy module and it has been a lifesaver for me. It also enables me to access the webpages from behind the firewall that the servers live behind using the domain name and not the IP address or an internal DNS server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 03:20 AM
тАО08-31-2006 03:20 AM
Re: URL redirects via apache 2.2 challenge
l had the redirects on their own outside of the virtual host block. Once l put them into their own blocks all worked fine.
Thanks for your help.
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 03:20 AM
тАО08-31-2006 03:20 AM