Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

url redirect in Apache

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Want to create an images directory for my cgi-bin..  
Author Message
user2807

External


Since: Jun 03, 2004
Posts: 1



(Msg. 1) Posted: Thu Jun 03, 2004 7:24 pm
Post subject: url redirect in Apache
Archived from groups: alt>apache>configuration (more info?)

Hi there

I have a problem when trying to redirect an URL. So please help me if
you can, because I am going crazy on this....

The platform is an IBM Apache HTTP Server V. 1.3 and an IBM Application
Server V. 4.x running a Devine solution.

Now my problem is that we have two URL's how should be showing the same
site.

Exampel:
We have already a site called www.a-a.com. But now we have included the
URL www.aa.com to oure litle firm. So now we would like the two URL's
to point to the same instance of the WAS.

I am already having this listed in my httpd.conf file:

<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName www.a-a.com
CustomLog "| ......
...
...
</VirtualHost>
And that work fine - we can see the site and so on.

Now I have tryed doing like this/adding this to the httpd.conf file:
<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName aa.com
ServerAlias www.aa.com a-a.com www.a-a.com
</VirtualHost>

The total is now:

<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName www.a-a.com
CustomLog "| ......
...
...
</VirtualHost>

<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName aa.com
ServerAlias www.aa.com a-a.com www.a-a.com
</VirtualHost>

But this does not work !??? I can reach the default errorpage of the
HTTP-server - but not get into the WAS or even the requested(redirected
URL).

There is a DNS server in oure enviroment, so we do not have to change
any windows HOSTS files.

I hope someone can help - and understand my english

Regards
Brian Tolstrup



--
Tolstrup
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message249739.html

 >> Stay informed about: url redirect in Apache 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Fri Jun 04, 2004 9:16 am
Post subject: Re: url redirect in Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tolstrup <Tolstrup.17aoaz RemoveThis @mail.webservertalk.com> wrote:
 > We have already a site called <a style='text-decoration: underline;' href="http://www.a-a.com." target="_blank">www.a-a.com.</a> But now we have included the
 > URL <a style='text-decoration: underline;' href="http://www.aa.com" target="_blank">www.aa.com</a> to oure litle firm. So now we would like the two URL's
 > to point to the same instance of the WAS.

If you already have a VirtualHost, use the ServerAlias directive to
have both URL handled by the same VHost.

Davide

--
| A language that doesn't have everything is actually easier to program
| in than some that do. -- Dennis M. Ritchie
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: url redirect in Apache 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
apache 2 redirect - I had to add this my apache 2 configuration: RewriteRule ^(.*)/$ $1/index.html to avoid permission errors. Now my problems is, there is one instance where I would like direct a url of a certain form to two other url's based on the url. I would like t...

configuration apache about redirect. - Hello, sorry for my english. what mode i need to configure apache, for to redirect all page from subdomain at default domain? For example: main domain: www.pippo.it all domain from *.pippo.it should be redirected at: www.pippo.it example: ..

Apache redirect problem with Internet Explorer - Apache 2.0.48 PHP 4.3.4 We've got a single server with multiple virtual IP addresses pointing to it and separate domains assigned to each IP. The problem we are having only occurs with Internet Explorer 6.0 and not Mozilla or Netscape. When you hit on...

URL Redirect - Thanks in advance for reading. I have a question about redirecting URLs on an Apache system. (I am running 1.3.26.) I have multiple URLs that are resolving to one IP address. I would like to have Apache redirect all of these URLs to another URL that....

redirect.pl - help - Greetings, I have apache 1.3 installed on FreeBSD 4.7. I'm trying to find a redirect.pl for my cgi-bin (need it for a web page). where is this located ? Or, where can I get it ? thanks, -D
   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 ]